2 stable releases

Uses old Rust 2015

1.0.1 Mar 18, 2019
1.0.0 May 10, 2017

#916 in Text processing

Download history 2984592/week @ 2025-08-27 2600509/week @ 2025-09-03 2583798/week @ 2025-09-10 2514261/week @ 2025-09-17 2666481/week @ 2025-09-24 2672935/week @ 2025-10-01 2591019/week @ 2025-10-08 2648838/week @ 2025-10-15 2832871/week @ 2025-10-22 2851145/week @ 2025-10-29 2846462/week @ 2025-11-05 2886819/week @ 2025-11-12 3109605/week @ 2025-11-19 2516938/week @ 2025-11-26 3089000/week @ 2025-12-03 2614121/week @ 2025-12-10

11,841,453 downloads per month
Used in 16,682 crates (21 directly)

MIT/Apache

9KB
122 lines

Crate for changing case of Rust identifiers.

Features

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

Examples

use ident_case::RenameRule;

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

assert_eq!("i_love_serde", RenameRule::SnakeCase.apply_to_variant("ILoveSerde"));

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"));

No runtime deps