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
20 lines
374 B
Rust
20 lines
374 B
Rust
use base64::prelude::*;
|
|
use clap::Parser;
|
|
use tsproto::license::*;
|
|
|
|
#[derive(Parser, Debug)]
|
|
#[command(author, about)]
|
|
struct Args {
|
|
/// The license data (base64)
|
|
#[arg()]
|
|
license: String,
|
|
}
|
|
|
|
fn main() {
|
|
// Parse command line options
|
|
let args = Args::parse();
|
|
|
|
let l = Licenses::parse(BASE64_STANDARD.decode(&args.license).unwrap()).unwrap();
|
|
println!("{:#?}", l);
|
|
}
|