diff options
| author | Zeyla Hellyer <[email protected]> | 2017-03-15 21:46:20 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-03-17 15:24:01 -0700 |
| commit | 5830d88e35c8da774067154e31c42b0b7b553451 (patch) | |
| tree | bf87d024efd3cee2877af6b11d0d87ce5db0c135 | |
| parent | Re-work the changelog (diff) | |
| download | serenity-5830d88e35c8da774067154e31c42b0b7b553451.tar.xz serenity-5830d88e35c8da774067154e31c42b0b7b553451.zip | |
Fix Cargo.toml requirements in examples
In the examples, always use the latest git master revision.
Additionally, fix the stated required features for each example.
| -rw-r--r-- | examples/03_struct_utilities/src/main.rs | 9 | ||||
| -rw-r--r-- | examples/06_command_framework/src/main.rs | 5 | ||||
| -rw-r--r-- | examples/07_voice/src/main.rs | 2 | ||||
| -rw-r--r-- | examples/08_search/src/main.rs | 6 |
4 files changed, 7 insertions, 15 deletions
diff --git a/examples/03_struct_utilities/src/main.rs b/examples/03_struct_utilities/src/main.rs index 4c3a0bb..76ff75d 100644 --- a/examples/03_struct_utilities/src/main.rs +++ b/examples/03_struct_utilities/src/main.rs @@ -1,12 +1,3 @@ -//! Requires the 'methods' feature flag be enabled in your project's Cargo.toml. -//! -//! This can be activated by specifying the feature in the dependency section: -//! -//! ```toml -//! [dependencies.serenity] -//! git = "https://github.com/zeyla/serenity.git" -//! ``` - extern crate serenity; use serenity::Client; diff --git a/examples/06_command_framework/src/main.rs b/examples/06_command_framework/src/main.rs index 1eb1b05..071ecdc 100644 --- a/examples/06_command_framework/src/main.rs +++ b/examples/06_command_framework/src/main.rs @@ -1,6 +1,7 @@ -//! Requires the 'methods' feature flag be enabled in your project's Cargo.toml. +//! Requires the 'framework' feature flag be enabled in your project's +//! `Cargo.toml`. //! -//! This can be activated by specifying the feature in the dependency section: +//! This can be enabled by specifying the feature in the dependency section: //! //! ```toml //! [dependencies.serenity] diff --git a/examples/07_voice/src/main.rs b/examples/07_voice/src/main.rs index 834cb13..57293f8 100644 --- a/examples/07_voice/src/main.rs +++ b/examples/07_voice/src/main.rs @@ -3,7 +3,7 @@ //! //! ```toml //! [dependencies.serenity] -//! version = "*" +//! git = "https://github.com/zeyla/serenity.git" //! features = ["cache", "framework", "voice"] //! ``` diff --git a/examples/08_search/src/main.rs b/examples/08_search/src/main.rs index 72059f6..a7a68b5 100644 --- a/examples/08_search/src/main.rs +++ b/examples/08_search/src/main.rs @@ -1,9 +1,9 @@ -//! Requires the "cache", "methods", and "voice" features be enabled in your -//! Cargo.toml, like so: +//! Requires the "cache" and "framework" features be enabled in your +//! `Cargo.toml`, like so: //! //! ```toml //! [dependencies.serenity] -//! version = "*" +//! git = "https://github.com/zeyla/serenity.git" //! features = ["cache", "framework"] //! ``` //! |