5 unstable releases

new 0.3.0 Dec 5, 2024
0.2.2 Jul 26, 2024
0.2.1 Jan 7, 2024
0.2.0 Jan 7, 2024
0.1.0 May 11, 2023

#915 in Text processing

Download history 4/week @ 2024-08-17 4/week @ 2024-08-24 13/week @ 2024-08-31 3/week @ 2024-09-07 14/week @ 2024-09-14 125/week @ 2024-09-21 160/week @ 2024-09-28 120/week @ 2024-10-05 84/week @ 2024-10-12 79/week @ 2024-10-19 84/week @ 2024-10-26 74/week @ 2024-11-02 42/week @ 2024-11-09 85/week @ 2024-11-16 61/week @ 2024-11-23 94/week @ 2024-11-30

289 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