$ convert_case
v0.11.0Convert strings into any case
Latest Update Summary
Crate
Name: convert_case New version: 0.9.0 Release date: 2025-11-06T12:32:42.145656Z
Crate readme
Short description Converts to and from various cases.
Long description
Convert case is written in Rust and is ready to be used inline with your rust code as a library. It provides a macro ccase! for easy case conversion. The crate also offers a command line utility ccase to expose its tools. The library is no_std compatible and provides various case formats including snake, title, camel, and more.
Features
• no_std compatibility
• ccase! macro for case conversion
• Supports multiple cases: snake, title, camel, etc.
• Command line utility for case conversion
• Custom boundary conditions
Code Examples Basic usage
use convert_case::ccase;
assert_eq!(
ccase!(camel, "My_Var_Name"),
"myVarName",
);
assert_eq!(
ccase!(snake, "IOStream"),
"io_stream",
);
Command Line Usage
$ ccase -t title super_mario_64
Super Mario 64
Links • https://github.com/rutrum/convert-case • https://crates.io/crates/convert_case • https://docs.rs/convert_case • https://github.com/rutrum/ccase • https://crates.io/crates/ccase
Release info
Release version: N/A
Release description N/A
Code Examples N/A
Minor update: 0.10.0 → 0.11.0
$ DOWNLOADS TREND
$ VERSION HISTORY
$ LINKS
$ INSTALL
cargo add convert_caseOr add to Cargo.toml: convert_case = "0.11.0"