| Crates.io | baobao-manifest |
| lib.rs | baobao-manifest |
| version | 0.5.0 |
| created_at | 2025-12-08 17:49:12.783909+00 |
| updated_at | 2025-12-24 15:35:09.165853+00 |
| description | TOML manifest parsing and validation for Bao CLI generator |
| homepage | https://github.com/roushou/bao |
| repository | https://github.com/roushou/bao |
| max_upload_size | |
| id | 1974131 |
| size | 130,684 |
TOML manifest parsing and validation for Bao CLI generator.
This crate handles parsing and validation of bao.toml configuration files that define CLI structure.
bao.toml files into structured typesThis crate is used internally by the baobao CLI tool. You typically don't need to use it directly.
use baobao_manifest::Manifest;
// Parse a bao.toml file
let manifest = Manifest::from_file("bao.toml")?;
// Access CLI configuration
println!("CLI name: {}", manifest.cli.name);
println!("Version: {}", manifest.cli.version);
// Iterate over commands
for (name, command) in &manifest.commands {
println!("Command: {} - {}", name, command.description);
}
A bao.toml file defines:
[cli]
name = "myapp"
version = "0.1.0"
[commands.hello]
description = "Say hello"
args = ["name"]
flags = ["loud"]
[context.db]
type = "sqlite"
path = "app.db"
This project is licensed under the MIT license.