| Crates.io | baobao-core |
| lib.rs | baobao-core |
| version | 0.5.0 |
| created_at | 2025-12-07 15:21:09.198896+00 |
| updated_at | 2025-12-24 15:35:06.505601+00 |
| description | Core utilities for Bao CLI generator |
| homepage | https://github.com/roushou/bao |
| repository | https://github.com/roushou/bao |
| max_upload_size | |
| id | 1971769 |
| size | 26,012 |
Core utilities and types for Bao CLI generator.
This crate provides fundamental types and utilities used across the Bao ecosystem.
File, GeneratedFile, WriteResult)ArgType)ContextFieldType, DatabaseType)to_camel_case, to_kebab_case, to_pascal_case, to_snake_case)Version)This crate is used internally by other baobao-* crates. You typically don't need to use it directly.
use baobao_core::{to_snake_case, to_pascal_case, ArgType, Version};
// Case conversion
assert_eq!(to_snake_case("helloWorld"), "hello_world");
assert_eq!(to_pascal_case("hello_world"), "HelloWorld");
// Version parsing
let version = Version::parse("1.2.3").unwrap();
This project is licensed under the MIT license.