mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 07:17:27 +00:00
[Crate] Add no_services feature flag
This commit is contained in:
parent
4c4b9d6b45
commit
9f22a4eadf
3 changed files with 7 additions and 2 deletions
|
|
@ -17,6 +17,7 @@ Games:
|
|||
|
||||
Services:
|
||||
- [Valve Master Server Query](https://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol) support.
|
||||
- Added feature `no_services` which disables the supported services.
|
||||
|
||||
### Breaking:
|
||||
Protocols:
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ rust-version = "1.56.1"
|
|||
[features]
|
||||
default = []
|
||||
no_games = []
|
||||
no_services = []
|
||||
serde = ["dep:serde", "serde/derive"]
|
||||
|
||||
[dependencies]
|
||||
|
|
|
|||
|
|
@ -15,13 +15,15 @@
|
|||
//! # Crate features:
|
||||
//! Enabled by default: None
|
||||
//!
|
||||
//! `no_games` - disables the included games support.
|
||||
//! `serde` - enables json serialization/deserialization for all response types
|
||||
//! `serde` - enables json serialization/deserialization for all response types. <br>
|
||||
//! `no_games` - disables the included games support. <br>
|
||||
//! `no_services` - disables the included services support.
|
||||
|
||||
pub mod errors;
|
||||
#[cfg(not(feature = "no_games"))]
|
||||
pub mod games;
|
||||
pub mod protocols;
|
||||
#[cfg(not(feature = "no_services"))]
|
||||
pub mod services;
|
||||
|
||||
mod bufferer;
|
||||
|
|
@ -31,4 +33,5 @@ mod utils;
|
|||
pub use errors::*;
|
||||
#[cfg(not(feature = "no_games"))]
|
||||
pub use games::*;
|
||||
#[cfg(not(feature = "no_services"))]
|
||||
pub use services::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue