Skip to content

Upgrading convert_case 0.7 to 0.8

Breaking0.7.1 → 0.8.0Breaking3New5

BreakingUpgrade verdict

3 breaking changes.

  • The way you pick a word pattern changed from an enum value to a plain function you call directly.
  • Converter pattern attribute is now of type Pattern instead of Option<Pattern> due to the new pattern::noop function.
  • Case::deterministic_cases, Case::all_cases, and Case::random_cases now return static arrays instead of vecs.
3 items need code or config changes

Drops strum.

Installs 15 packages in all (was 19).

Breaking3
Pattern is no longer an enum but a type alias for fn(&[&str]) -> Vec<String>, with variants now functions in the pattern module.
Patternpattern::lowercasemutate
Converter pattern attribute is now of type Pattern instead of Option<Pattern> due to the new pattern::noop function.
Converterpatternpattern::noopPattern
Case::deterministic_cases, Case::all_cases, and Case::random_cases now return static arrays instead of vecs.
Case::deterministic_casesCase::all_casesCase::random_cases