16 releases

0.4.1 May 1, 2023
0.3.3 Mar 18, 2023
0.3.2 Sep 14, 2021
0.3.1 May 21, 2021
0.2.5 Mar 31, 2021

#2 in #team-speak3

25 downloads per month

MIT/Apache

61KB
1.5K SLoC

TS3

Crates.io Docs.rs

A fully asynchronous library to interact with the TeamSpeak 3 Server query interface. See the docs here.

Usage

Add ts3 to your Cargo.toml:

ts3 = "0.3.1"

Basic example usage:

use ts3::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
    // Create a new client
    let client = Client::new("127.0.0.1:10011").await?;

    // Connect to virtualserver 1
    client.use_sid(1).await?;

    // Use whoami to fetch info about the query client
    let data = client.whoami().await?;

    println!("{}", data);
}

Documentation and more examples can be found on docs.rs.

License

Licensed under either

Dependencies

~4–12MB
~131K SLoC