num-format
num-format copied to clipboard
A Rust crate for producing string representations of numbers, formatted according to international standards
I'd like "pretty" / human type numbers, where I can specify the number of significant digits, and it will output it in SI. Examples num | output --- | ---...
Fixes https://github.com/bcmyers/num-format/issues/40. The culprit was `deserialize_bytes()` which was changed to `deserialize_seq()`. Previously working serde operations (JSON, TOML) seem to work fine, and now binary formats work as well. A test...
The [`Buffer`](https://github.com/bcmyers/num-format/blob/81f934ad7ee6351d7318896f6bafccb1136dc695/num-format/src/buffer.rs) type will always fail to deserialize when using it with `serde` and binary formats, the ones I've tested: - [`bincode`](https://docs.rs/bincode) - [`messagepack`](https://docs.rs/rmp-serde) - [`BSON`](https://docs.rs/bson) - [`postcard`](https://docs.rs/postcard) To reproduce...
Updates the requirements on [bindgen](https://github.com/rust-lang/rust-bindgen) to permit the latest version. Changelog Sourced from bindgen's changelog. 0.65.1 Fixed The Builder::rustfmt_bindings method was added back and tagged as deprecated instead of being...
It would be convenient to be able to call println with formatted numbers without pre-serializing them. Might some sort of type wrapper implementing the Display trait work well? Then we...
I am not sure if this is intended behavior. When I try to use the locale, I am idendifying it automatically like `let current_locale = sys_locale::get_locale().unwrap_or_else(|| String::from("en-US"));` This produces de-DE...
By using windows-sys we can entirely remove the need for bindgen, and Windows.h enabling cross compilation to Windows. Additionally we relax the use of the Format trait to be ?Sized...
What should i use for Brazilian? (pt-BR)? let iso_361_lang = fetch_from_provider_json(user.id).await?; //it will be "pt-BR" On my use case, i will need to use from_name(iso_361_lang). How should i do it?