| Crates.io | rico |
| lib.rs | rico |
| version | 0.1.7 |
| created_at | 2024-12-27 05:31:39.247101+00 |
| updated_at | 2025-01-05 09:43:36.646797+00 |
| description | A high-performance Apache Thrift IDL parser that converts Thrift IDL files to JSON AST |
| homepage | |
| repository | https://github.com/xnmeet/rico |
| max_upload_size | |
| id | 1496208 |
| size | 98,344 |
A high-performance Apache Thrift IDL parser written in Rust that converts Thrift IDL files to JSON AST.
[dependencies]
rico = { version = "*" }
use rico::Parser;
fn main() {
let input = r#"
namespace rs demo
struct User {
1: string name
2: i32 age
}
"#;
let mut parser = Parser::new(input);
match parser.parse() {
Ok(ast) => println!("{}", serde_json::to_string_pretty(&ast).unwrap()),
Err(e) => eprintln!("Error: {}", e),
}
}
cargo build --workspace
cargo test --workspace
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.