Crates.io | csgo-gsi |
lib.rs | csgo-gsi |
version | 0.3.0 |
source | src |
created_at | 2020-09-15 19:21:39.266208 |
updated_at | 2020-09-21 04:17:02.24133 |
description | rust library for CS:GO's Game State Integration API |
homepage | https://sr.ht/~boringcactus/csgo-gsi/ |
repository | https://git.sr.ht/~boringcactus/csgo-gsi |
max_upload_size | |
id | 289136 |
size | 98,415 |
Helper library for the CS:GO Game State Integration (GSI) API.
Best used with the tokio async ecosystem.
Add this to your Cargo.toml
:
[dependencies]
csgo-gsi = "0.3.0"
use csgo_gsi::{GSIConfigBuilder, GSIServer, Subscription};
#[tokio::main]
async fn main() {
let config = GSIConfigBuilder::new("csgo-gsi Example")
.subscribe_multiple(Subscription::UNRESTRICTED)
.build();
let mut server = GSIServer::new(config, 31337);
server.add_listener(|update| println!("Got an update {:#?}", update));
server
.run()
.await
.expect("server didn't start");
}
Licensed under the Anti-Capitalist Software License version 1.4.
Unless you explicitly state otherwise, any contribution you submit shall be also under the Anti-Capitalist Software License version 1.4, without any additional terms or conditions.
v0.3.0 - 2020-09-20
rhai
featurev0.2.0 - 2020-09-20
Update
be Clone
v0.1.0 - 2020-09-15