mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-04 02:24:12 +02:00
schemars
This commit is contained in:
parent
43b7270fcd
commit
93b51bff70
29 changed files with 15360 additions and 2187 deletions
7
src/bin/schema.rs
Normal file
7
src/bin/schema.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
use schemars::schema_for;
|
||||
use tf_demo_parser::demo::packet::Packet;
|
||||
|
||||
fn main() {
|
||||
let schema = schema_for!(Packet);
|
||||
println!("{}", serde_json::to_string_pretty(&schema).unwrap());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue