diff options
| author | Austin Hellyer <[email protected]> | 2016-11-15 11:36:53 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-15 11:36:53 -0800 |
| commit | 5ccfaaa3b1a030b1fd0dcd364bdae001347d36e4 (patch) | |
| tree | 7cf531e4790109d6d7edd26bc5b483378d5ba5ac /src/model/mod.rs | |
| parent | Embed Author: everything but 'name' is optional (diff) | |
| download | serenity-5ccfaaa3b1a030b1fd0dcd364bdae001347d36e4.tar.xz serenity-5ccfaaa3b1a030b1fd0dcd364bdae001347d36e4.zip | |
Add state/framework/etc. conditional compile flags
This adds conditional compilation for the following features, in
addition to the voice conditional compilation flag:
- extras (message builder)
- framework
- methods
- state
These 4 are enabled _by default_, while the `voice` feature flag is
disabled.
Disabling the state will allow incredibly low-memory bots.
Diffstat (limited to 'src/model/mod.rs')
| -rw-r--r-- | src/model/mod.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/model/mod.rs b/src/model/mod.rs index f21da09..f00dffb 100644 --- a/src/model/mod.rs +++ b/src/model/mod.rs @@ -7,21 +7,27 @@ mod channel; mod gateway; mod guild; mod id; -mod invite; mod misc; mod user; mod voice; + +#[cfg(feature = "methods")] +mod invite; +#[cfg(feature = "methods")] mod webhook; pub use self::channel::*; pub use self::gateway::*; pub use self::guild::*; pub use self::id::*; -pub use self::invite::*; pub use self::misc::*; pub use self::permissions::Permissions; pub use self::user::*; pub use self::voice::*; + +#[cfg(feature = "methods")] +pub use self::invite::*; +#[cfg(feature = "methods")] pub use self::webhook::*; use self::utils::*; |