diff --git a/CHANGELOG.md b/CHANGELOG.md index d6985f4..83965ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,9 @@ Who knows what the future holds... # 0.X.Y - DD/MM/2023 ### Changes: -None. +Crate: +- Added feature `no_games` which disables the supported games (useful when you are only using +the protocols/services, also saves storage space). ### Breaking: None. diff --git a/Cargo.toml b/Cargo.toml index 584416a..4cf2e6d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,9 @@ readme = "README.md" keywords = ["server", "query", "game", "check", "status"] rust-version = "1.56.1" +[features] +no_games = [] + [dependencies] bzip2-rs = "0.1.2" # for compression crc32fast = "1.3.2" diff --git a/src/lib.rs b/src/lib.rs index 3b53070..493f4cb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,5 @@ -//! Query many servers +//! Game Server Query Library. //! //! # Example //! @@ -14,13 +14,21 @@ //! } //! } //! ``` +//! +//! # Features: +//! Enabled by default: None +//! +//! `no_games` - disables the included games support. pub mod errors; pub mod protocols; +#[cfg(not(feature = "no_games"))] pub mod games; + mod utils; mod socket; mod bufferer; pub use errors::*; +#[cfg(not(feature = "no_games"))] pub use games::*;