Expand description
Shared case-conversion helpers for the umbral workspace.
This crate is intentionally dependency-free so it can be used from
umbral-macros (a proc-macro crate), umbral-core, umbral-cli, and
plugin crates without introducing a dependency cycle.
§Functions
| Function | Canonical call site | Notes |
|---|---|---|
to_snake_case | umbral-macros (table-name derivation) | Full acronym-aware algorithm |
pascal_case_from_table | umbral-core/inspect.rs | SQL table → struct name; lowercases segments |
pascal_case_from_ident | umbral-cli/scaffold.rs, umbral-openapi | Ident / name → PascalCase; no lowercasing |
Functions§
- pascal_
case_ from_ ident - Convert a kebab/snake-case identifier or user-provided name into
PascalCasefor use as a Rust type name or plugin struct name. - pascal_
case_ from_ table - Convert a SQL table name (typically
snake_case) intoPascalCasefor use as a Rust struct name. - to_
snake_ case - Convert a
PascalCaseorcamelCaseRust identifier intosnake_case.