mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 15:27:28 +00:00
[Crate] Add feature 'no_games'
This commit is contained in:
parent
150bc1762e
commit
ab43675ae5
3 changed files with 15 additions and 2 deletions
10
src/lib.rs
10
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::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue