mirror of
https://github.com/Tribufu/rust-gamedig
synced 2026-08-07 22:26:22 +00:00
* [Service] Add initial files * [Service] Add initial request packet * [Service] Add filters * [Service] Some clippy improvements * [Service] Make query a vector of ipv4addr and port * [Service] Add complete and singular query * [Crate] Update md files * [Service] Add docs and clippy adjustments * [Service] Add hasTags and fix filters * [Service] Use let some instead of match * [Service] Add other filters * [Service] Add nor and nand filters * [Service] Remove 0.0.0.0:0 from query * [Service] Remove dev testing test * [Service] Add valve_master_server_query example
34 lines
823 B
Rust
34 lines
823 B
Rust
//! Game Server Query Library.
|
|
//!
|
|
//! # Usage example:
|
|
//!
|
|
//! ```
|
|
//! use gamedig::games::tf2;
|
|
//!
|
|
//! let response = tf2::query("127.0.0.1", None); // None is the default port (which is 27015), could also be Some(27015)
|
|
//! match response { // Result type, must check what it is...
|
|
//! Err(error) => println!("Couldn't query, error: {}", error),
|
|
//! Ok(r) => println!("{:#?}", r)
|
|
//! }
|
|
//! ```
|
|
//!
|
|
//! # Crate features:
|
|
//! Enabled by default: None
|
|
//!
|
|
//! `no_games` - disables the included games support.
|
|
//! `serde` - enables json serialization/deserialization for all types
|
|
|
|
pub mod errors;
|
|
#[cfg(not(feature = "no_games"))]
|
|
pub mod games;
|
|
pub mod protocols;
|
|
pub mod services;
|
|
|
|
mod bufferer;
|
|
mod socket;
|
|
mod utils;
|
|
|
|
pub use errors::*;
|
|
#[cfg(not(feature = "no_games"))]
|
|
pub use games::*;
|
|
pub use services::*;
|