Skip to content

Commit

Permalink
Modify examples to point to current repo
Browse files Browse the repository at this point in the history
Instead of pointing to the current minor version, the examples'
`Cargo.toml`s should be a relative path to the current cloned repo. This
improves the examples by:

1. always being up-to-date if major or minor version updates occur;
2. being more up-to-standard with the examples' readme;
3. making debugging the library locally easier (not having to constantly
modify the version to a path).
  • Loading branch information
Austin Hellyer committed Dec 16, 2016
1 parent fb07751 commit 8e4b57c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/01_basic_ping_bot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ version = "0.1.0"
authors = ["my name <my@email.address>"]

[dependencies.serenity]
version = "0.1"
path = "../../"
2 changes: 1 addition & 1 deletion examples/02_transparent_guild_sharding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ version = "0.1.0"
authors = ["my name <my@email.address>"]

[dependencies.serenity]
version = "0.1"
path = "../../"
2 changes: 1 addition & 1 deletion examples/03_struct_utilities/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ authors = ["my name <my@email.address>"]

[dependencies.serenity]
features = ["methods"]
version = "0.1"
path = "../../"
2 changes: 1 addition & 1 deletion examples/04_message_builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ version = "0.1.0"
authors = ["my name <my@email.address>"]

[dependencies.serenity]
version = "0.1"
path = "../../"
2 changes: 1 addition & 1 deletion examples/05_user_login/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ version = "0.1.0"
authors = ["my name <my@email.address>"]

[dependencies.serenity]
version = "0.1"
path = "../../"
2 changes: 1 addition & 1 deletion examples/06_command_framework/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ typemap = "0.3"

[dependencies.serenity]
features = ["framework", "methods"]
version = "0.1"
path = "../../"
2 changes: 1 addition & 1 deletion examples/07_voice/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ authors = ["my name <my@email.address>"]

[dependencies.serenity]
features = ["cache", "framework", "methods", "voice"]
version = "0.1"
path = "../../"

0 comments on commit 8e4b57c

Please sign in to comment.