From 5ccfaaa3b1a030b1fd0dcd364bdae001347d36e4 Mon Sep 17 00:00:00 2001 From: Austin Hellyer Date: Tue, 15 Nov 2016 11:36:53 -0800 Subject: 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. --- src/model/misc.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/model/misc.rs') diff --git a/src/model/misc.rs b/src/model/misc.rs index 16cc7fe..3a17d96 100644 --- a/src/model/misc.rs +++ b/src/model/misc.rs @@ -89,6 +89,7 @@ impl fmt::Display for Mention { } impl IncidentStatus { + #[doc(hidden)] pub fn decode(value: Value) -> Result { Self::decode_str(value) } -- cgit v1.2.3