| Crates.io | ucfirst |
| lib.rs | ucfirst |
| version | 0.4.1 |
| created_at | 2023-05-11 16:39:07.380923+00 |
| updated_at | 2025-11-13 18:42:49.329474+00 |
| description | Uppercase the first letter of a string |
| homepage | |
| repository | https://github.com/qtfkwk/ucfirst |
| max_upload_size | |
| id | 862265 |
| size | 6,609 |
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.