mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +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
|
# 0.X.Y - DD/MM/2023
|
||||||
### Changes:
|
### 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:
|
### Breaking:
|
||||||
None.
|
None.
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,9 @@ readme = "README.md"
|
||||||
keywords = ["server", "query", "game", "check", "status"]
|
keywords = ["server", "query", "game", "check", "status"]
|
||||||
rust-version = "1.56.1"
|
rust-version = "1.56.1"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
no_games = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bzip2-rs = "0.1.2" # for compression
|
bzip2-rs = "0.1.2" # for compression
|
||||||
crc32fast = "1.3.2"
|
crc32fast = "1.3.2"
|
||||||
|
|
|
||||||
10
src/lib.rs
10
src/lib.rs
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
//! Query many servers
|
//! Game Server Query Library.
|
||||||
//!
|
//!
|
||||||
//! # Example
|
//! # Example
|
||||||
//!
|
//!
|
||||||
|
|
@ -14,13 +14,21 @@
|
||||||
//! }
|
//! }
|
||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
|
//!
|
||||||
|
//! # Features:
|
||||||
|
//! Enabled by default: None
|
||||||
|
//!
|
||||||
|
//! `no_games` - disables the included games support.
|
||||||
|
|
||||||
pub mod errors;
|
pub mod errors;
|
||||||
pub mod protocols;
|
pub mod protocols;
|
||||||
|
#[cfg(not(feature = "no_games"))]
|
||||||
pub mod games;
|
pub mod games;
|
||||||
|
|
||||||
mod utils;
|
mod utils;
|
||||||
mod socket;
|
mod socket;
|
||||||
mod bufferer;
|
mod bufferer;
|
||||||
|
|
||||||
pub use errors::*;
|
pub use errors::*;
|
||||||
|
#[cfg(not(feature = "no_games"))]
|
||||||
pub use games::*;
|
pub use games::*;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue