mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 07:17:27 +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
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
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