4 releases

0.2.2 Jul 26, 2024
0.2.1 Jan 7, 2024
0.2.0 Jan 7, 2024
0.1.0 May 11, 2023

#973 in Text processing

Download history 40/week @ 2024-07-17 158/week @ 2024-07-24 14/week @ 2024-07-31 1/week @ 2024-08-14 7/week @ 2024-08-21 3/week @ 2024-08-28 12/week @ 2024-09-04 12/week @ 2024-09-11 16/week @ 2024-09-18 199/week @ 2024-09-25 119/week @ 2024-10-02 112/week @ 2024-10-09 84/week @ 2024-10-16 89/week @ 2024-10-23 59/week @ 2024-10-30

357 downloads per month
Used in xpg

MIT license

4KB

This is the long-awaited Rust crate that solves the problem of uppercasing the first letter of a string in Rust.

Full disclosure: this solution was shamelessly lifted from the leading response over on StackOverflow by Shepmaster.

use ucfirst::ucfirst;

assert_eq!(ucfirst("apple"), "Apple");

See also the ccase CLI utility and convert_case library crates.

No runtime deps