Registry / utility / heck
library0.5.0rscratesunverified

A case conversion library for Rust, supporting conversions like camelCase, snake_case, and kebab-case.

# Cargo.toml [dependencies] heck = "0.5.0"
INSTALL
IMPORT
SIG · HECK
H
heck
utilityrustv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ToSnakeCase
use heck::ToSnakeCase;

Converts a string to snake_case using the ToSnakeCase trait.

use heck::ToSnakeCase; fn main() { let s = "HelloWorld".to_snake_case(); println!("{}", s); // hello_world }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
heck — cargo add heck · libregistry