diff options
| author | Austin Hellyer <[email protected]> | 2016-12-05 07:46:22 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-12-05 07:46:22 -0800 |
| commit | ccb9d16e5dbe965e5a604e1cb402cd3bc7de0df5 (patch) | |
| tree | b7eed1952ae14f215074452c3e3d1bc081a89b0a /examples/06_command_framework/Cargo.toml | |
| parent | Add more Context docs+permission requirements (diff) | |
| download | serenity-ccb9d16e5dbe965e5a604e1cb402cd3bc7de0df5.tar.xz serenity-ccb9d16e5dbe965e5a604e1cb402cd3bc7de0df5.zip | |
Add a ShareMap across contexts
The context now exposes, through the Client, a `data` field, which can
be accessed safely across contexts. This allows for a custom "shared
state" without the need for (ab)using lazy-static.rs.
Refer to example 06 for an example on how to use shared data.
Diffstat (limited to 'examples/06_command_framework/Cargo.toml')
| -rw-r--r-- | examples/06_command_framework/Cargo.toml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/06_command_framework/Cargo.toml b/examples/06_command_framework/Cargo.toml index 481dd6f..a73f940 100644 --- a/examples/06_command_framework/Cargo.toml +++ b/examples/06_command_framework/Cargo.toml @@ -3,6 +3,9 @@ name = "06_command_framework" version = "0.1.0" authors = ["my name <[email protected]>"] +[dependencies] +typemap = "0.3" + [dependencies.serenity] features = ["framework", "methods"] version = "0.1" |