[Crate] Add feature 'no_games'

This commit is contained in:
CosminPerRam 2023-02-18 22:13:25 +02:00
parent 150bc1762e
commit ab43675ae5
3 changed files with 15 additions and 2 deletions

View file

@ -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::*;