5 unstable releases

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

#2109 in Text processing

Download history 79/week @ 2024-11-20 39/week @ 2024-11-27 173/week @ 2024-12-04 79/week @ 2024-12-11 9/week @ 2024-12-18 2/week @ 2025-01-01 11/week @ 2025-01-08 7/week @ 2025-01-15 16/week @ 2025-01-22 30/week @ 2025-01-29 112/week @ 2025-02-05 22/week @ 2025-02-12 96/week @ 2025-02-19 57/week @ 2025-02-26 85/week @ 2025-03-05

297 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