Skip to main content

Crate umbral_casing

Crate umbral_casing 

Source
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

FunctionCanonical call siteNotes
to_snake_caseumbral-macros (table-name derivation)Full acronym-aware algorithm
pascal_case_from_tableumbral-core/inspect.rsSQL table → struct name; lowercases segments
pascal_case_from_identumbral-cli/scaffold.rs, umbral-openapiIdent / name → PascalCase; no lowercasing

Functions§

pascal_case_from_ident
Convert a kebab/snake-case identifier or user-provided name into PascalCase for use as a Rust type name or plugin struct name.
pascal_case_from_table
Convert a SQL table name (typically snake_case) into PascalCase for use as a Rust struct name.
to_snake_case
Convert a PascalCase or camelCase Rust identifier into snake_case.