Sunbeam Studios

Our open-source projects, here for you!

ident_case (1.0.1)

Published 2026-03-26 10:59:23 +00:00 by siennathesane

Installation

[registry]
default = "gitea"

[registries.gitea]
index = "sparse+" # Sparse index
# index = "" # Git

[net]
git-fetch-with-cli = true
cargo add ident_case@1.0.1

About this package

Utility for applying case rules to Rust identifiers.

Build Status

Crate for manipulating case of identifiers in Rust programs.

Features

  • Supports snake_case, lowercase, camelCase, PascalCase, SCREAMING_SNAKE_CASE, and kebab-case
  • Rename variants, and fields

Examples

assert_eq!("helloWorld", RenameRule::CamelCase.apply_to_field("hello_world"));

assert_eq!("i_love_serde", RenameRule::SnakeCase.apply_to_variant("ILoveSerde"));
Details
Cargo
2026-03-26 10:59:23 +00:00
0
Ted Driggs <ted.driggs@outlook.com>
MIT/Apache-2.0
3.4 KiB
Assets (1)
Versions (1) View all
1.0.1 2026-03-26