diff --git a/CHANGELOG.md b/CHANGELOG.md index 4275f3f..60886b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ Games: Services: - [Valve Master Server Query](https://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol) support. +- Added feature `no_services` which disables the supported services. ### Breaking: Protocols: diff --git a/Cargo.toml b/Cargo.toml index 88a247c..9e531c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,7 @@ rust-version = "1.56.1" [features] default = [] no_games = [] +no_services = [] serde = ["dep:serde", "serde/derive"] [dependencies] diff --git a/src/lib.rs b/src/lib.rs index 87d573b..1ac2932 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,13 +15,15 @@ //! # Crate features: //! Enabled by default: None //! -//! `no_games` - disables the included games support. -//! `serde` - enables json serialization/deserialization for all response types +//! `serde` - enables json serialization/deserialization for all response types.
+//! `no_games` - disables the included games support.
+//! `no_services` - disables the included services support. pub mod errors; #[cfg(not(feature = "no_games"))] pub mod games; pub mod protocols; +#[cfg(not(feature = "no_services"))] pub mod services; mod bufferer; @@ -31,4 +33,5 @@ mod utils; pub use errors::*; #[cfg(not(feature = "no_games"))] pub use games::*; +#[cfg(not(feature = "no_services"))] pub use services::*;