baobao-core
Core utilities and types for Bao CLI generator.
This crate provides fundamental types and utilities used across the Bao ecosystem.
Features
- File Operations - Types for managing generated files (
File,GeneratedFile,WriteResult) - Type Mapping - Argument type definitions (
ArgType) - Context Types - Database and context field types (
ContextFieldType,DatabaseType) - String Utilities - Case conversion functions (
to_camel_case,to_kebab_case,to_pascal_case,to_snake_case) - Version Handling - Semantic version parsing and manipulation (
Version)
Usage
This crate is used internally by other baobao-* crates. You typically don't need to use it directly.
use ;
// Case conversion
assert_eq!;
assert_eq!;
// Version parsing
let version = parse.unwrap;
License
This project is licensed under the MIT license.