casespaetzle

This package introduces common identifier case traits and a macro for case trait generation

4 releases

0.1.4 Oct 9, 2024
0.1.3 Oct 9, 2024
0.1.1 Oct 8, 2024
0.1.0 Oct 8, 2024

#562 in HTTP server

Download history 382/week @ 2024-10-07 68/week @ 2024-10-14

450 downloads per month

Apache-2.0

15KB
181 lines

Casespaetzle

This crate implements a utility trait that converts any string to a case. The case names are majorly named after the answers to the StackOverflow question What are the different kinds of cases?. An identifier is a string consisting of (mostly) alphanumeric characters and a few separation markers, like the dash and the underscore, with a word being defined as a lexicographical atomic component of the identifier.

For a list of supported cases, see the main README.

This package re-exports the macro add_case, for its' documentation, refer to the crate on github.


lib.rs:

This crate implements a utility trait that converts any string to a particular case style. The case names are majorly named after the answer to the StackOverflow question [What are the different kinds of cases?] (https://stackoverflow.com/questions/17326185/what-are-the-different-kinds-of-cases). An identifier is a string consisting of alphanumeric characters and a few separation markers, like the dash and the underscore, with a word being defined as a lexicographical atomic component of the identifier.

Dependencies

~0.7–1.4MB
~27K SLoC