tsproto 0.2.0

An implementation of the TeamSpeak3 protocol as a library for use in clients and bots.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use structopt::StructOpt;
use tsproto::license::*;

#[derive(StructOpt, Debug)]
#[structopt(author, about)]
struct Args {
	/// The license data (base64)
	#[structopt()]
	license: String,
}

fn main() {
	// Parse command line options
	let args = Args::from_args();

	let l = Licenses::parse(&base64::decode(&args.license).unwrap()).unwrap();
	println!("{:#?}", l);
}