diff options
author | Bruno Bigras <bigras.bruno@gmail.com> | 2019-08-26 14:09:39 -0400 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-08-26 14:09:39 -0400 |
commit | 0fa862a2e9b2e41656265dfaa0a4c57a2ab36180 (patch) | |
tree | ce6351ac2f36f0dfb7a1c70edaa1af5f3c200054 /src/module.rs | |
parent | f7754455e67ad6790792bfbe825ad33944df3ddc (diff) |
make the battery module optional for now (#234)
The 'battery' crate doesn't support Termux, so we are temporarily making the battery module optional.
Diffstat (limited to 'src/module.rs')
-rw-r--r-- | src/module.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/module.rs b/src/module.rs index fcb1ea361..55a8199ca 100644 --- a/src/module.rs +++ b/src/module.rs @@ -6,6 +6,7 @@ use std::fmt; // List of all modules pub const ALL_MODULES: &[&str] = &[ + #[cfg(feature = "battery")] "battery", "character", "cmd_duration", |