mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +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:
|
Services:
|
||||||
- [Valve Master Server Query](https://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol) support.
|
- [Valve Master Server Query](https://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol) support.
|
||||||
|
- Added feature `no_services` which disables the supported services.
|
||||||
|
|
||||||
### Breaking:
|
### Breaking:
|
||||||
Protocols:
|
Protocols:
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ rust-version = "1.56.1"
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
no_games = []
|
no_games = []
|
||||||
|
no_services = []
|
||||||
serde = ["dep:serde", "serde/derive"]
|
serde = ["dep:serde", "serde/derive"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
|
||||||
|
|
@ -15,13 +15,15 @@
|
||||||
//! # Crate features:
|
//! # Crate features:
|
||||||
//! Enabled by default: None
|
//! Enabled by default: None
|
||||||
//!
|
//!
|
||||||
//! `no_games` - disables the included games support.
|
//! `serde` - enables json serialization/deserialization for all response types. <br>
|
||||||
//! `serde` - enables json serialization/deserialization for all response types
|
//! `no_games` - disables the included games support. <br>
|
||||||
|
//! `no_services` - disables the included services support.
|
||||||
|
|
||||||
pub mod errors;
|
pub mod errors;
|
||||||
#[cfg(not(feature = "no_games"))]
|
#[cfg(not(feature = "no_games"))]
|
||||||
pub mod games;
|
pub mod games;
|
||||||
pub mod protocols;
|
pub mod protocols;
|
||||||
|
#[cfg(not(feature = "no_services"))]
|
||||||
pub mod services;
|
pub mod services;
|
||||||
|
|
||||||
mod bufferer;
|
mod bufferer;
|
||||||
|
|
@ -31,4 +33,5 @@ mod utils;
|
||||||
pub use errors::*;
|
pub use errors::*;
|
||||||
#[cfg(not(feature = "no_games"))]
|
#[cfg(not(feature = "no_games"))]
|
||||||
pub use games::*;
|
pub use games::*;
|
||||||
|
#[cfg(not(feature = "no_services"))]
|
||||||
pub use services::*;
|
pub use services::*;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue