1 unstable release
|0.0.1||Jul 25, 2016|
#83 in Value formatting
Dual licensed under the MIT and Apache 2 licenses.
This crate works with Cargo and is on
Add it to your
Cargo.toml like so:
[dependencies] humanize = "0.0.1"
Things are under active development.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Make your user interface more human friendly!
This library provides functionality for both formatting values into human friendly forms as well as parsing human input to get back likely values.
Actually, the formatting isn't implemented yet. Contributions are welcome!
This library is inspired by many other things, including:
Contributions extending our functionality are welcome, as are contributions that add support for additional languages.
When dealing with humans, you often want them to be able to
input values in a flexible manner. For example, you might want
to be able to input a
bool using text like
"no" or perhaps even
let enabled = humanize::parse::<bool>("on").unwrap_or(false); assert_eq!(enabled, true);
- Actually implement formatting.