Unmodified copy of the tsclientlib workspace crates (MIT OR Apache-2.0) with the tsdeclarations submodule (83cb8a9) flattened into plain files. See crates/proto/UPSTREAM.md for the path mapping. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
22 lines
429 B
Rust
22 lines
429 B
Rust
use std::io::{Cursor, Write};
|
|
|
|
use clap::Parser;
|
|
use tsproto::utils;
|
|
|
|
#[derive(Parser, Debug)]
|
|
#[command(author, about)]
|
|
struct Args {
|
|
/// Data (hex)
|
|
#[arg()]
|
|
data: String,
|
|
}
|
|
|
|
fn main() {
|
|
// Parse command line options
|
|
let args = Args::parse();
|
|
|
|
let data = utils::read_hex(&args.data).unwrap();
|
|
let data = quicklz::decompress(&mut Cursor::new(data), std::u32::MAX).unwrap();
|
|
std::io::stdout().write_all(&data).unwrap();
|
|
}
|