Skip to content

Commit

Permalink
[num-format] 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bcmyers committed Oct 9, 2022
1 parent 0a38301 commit 51f2ff1
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 40 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
0.4.2 (2022-10-09)
==================

* Bump 3rd party dependencies
* Update [cldr-numbers-full](https://github.com/unicode-cldr/cldr-numbers-full)
git submodule to commit [b52a87048985d3052f12d30d05cfe5423ad92709](https://github.com/unicode-cldr/cldr-numbers-full/commit/b52a87048985d3052f12d30d05cfe5423ad92709)
* `Locale::from_str` now supports underscore-delimited locales, e.g. "de_DE",
in addition to previously supported dash-delimiated locales, e.g "de-DE"

0.4.0 (2019-02-19)
==================
**Breaking changes:**
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ OS's locale information. It has a very similar API to [`Locale`] and should work
operating systems (i.e. macOS, linux, the BSDs, and Windows).

<i>Since this type requires several dependencies (especially on Windows), it is behind a feature
flag. To use it, include `num-format = { version = "0.4", features = ["with-system-locale"] }`
flag. To use it, include `num-format = { version = "0.4.2", features = ["with-system-locale"] }`
in your `Cargo.toml`. Additionally, on Windows (but **only** on Windows), using `SystemLocale`
requires Clang 3.9 or higher.</i>

Expand Down Expand Up @@ -180,10 +180,10 @@ fn main() -> Result<(), Error> {

| Available features | What to put in your `Cargo.toml` |
| :------------------- | :-------------------------------------------------------------------- |
| `no_std` | `num-format = { version = "0.4", default-features = false }` |
| `with-num-bigint` | `num-format = { version = "0.4", features = ["with-num-bigint"] }` |
| `with-serde` | `num-format = { version = "0.4", features = ["with-serde"] }` |
| `with-system-locale` | `num-format = { version = "0.4", features = ["with-system-locale"] }` |
| `no_std` | `num-format = { version = "0.4.2", default-features = false }` |
| `with-num-bigint` | `num-format = { version = "0.4.2", features = ["with-num-bigint"] }` |
| `with-serde` | `num-format = { version = "0.4.2", features = ["with-serde"] }` |
| `with-system-locale` | `num-format = { version = "0.4.2", features = ["with-system-locale"] }` |

## License

Expand All @@ -195,21 +195,21 @@ fn main() -> Result<(), Error> {
at your option.

[bindgen]: https://crates.io/crates/bindgen
[`Buffer`]: https://docs.rs/num-format/0.4.0/num_format/struct.Buffer.html
[`Buffer`]: https://docs.rs/num-format/0.4.2/num_format/struct.Buffer.html
[Common Locale Data Repository]: https://en.wikipedia.org/wiki/Common_Locale_Data_Repository
[`CustomFormat`]: https://docs.rs/num-format/0.4.0/num_format/struct.CustomFormat.html
[`CustomFormat`]: https://docs.rs/num-format/0.4.2/num_format/struct.CustomFormat.html
[`File`]: https://doc.rust-lang.org/std/fs/struct.File.html
[`fmt::Write`]: https://doc.rust-lang.org/std/fmt/fn.write.html
[`Format`]: https://docs.rs/num-format/0.4.0/num_format/trait.Format.html
[`Format`]: https://docs.rs/num-format/0.4.2/num_format/trait.Format.html
[`io::Write`]: https://doc.rust-lang.org/std/io/trait.Write.html
[`Locale`]: https://docs.rs/num-format/0.4.0/num_format/enum.Locale.html
[`Locale`]: https://docs.rs/num-format/0.4.2/num_format/enum.Locale.html
[`num_bigint::BigInt`]: https://docs.rs/num-bigint/0.2.2/num_bigint/struct.BigInt.html
[picking a format]: #picking-a-format
[`String`]: https://doc.rust-lang.org/std/string/struct.String.html
[The Apache License, Version 2.0]: http://www.apache.org/licenses/LICENSE-2.0
[The MIT license]: http://opensource.org/licenses/MIT
[`ToFormattedString`]: https://docs.rs/num-format/0.4.0/num_format/trait.ToFormattedString.html
[`to_formatted_string`]: https://docs.rs/num-format/0.4.0/num_format/trait.ToFormattedString.html#method.to_formatted_string
[`ToFormattedString`]: https://docs.rs/num-format/0.4.2/num_format/trait.ToFormattedString.html
[`to_formatted_string`]: https://docs.rs/num-format/0.4.2/num_format/trait.ToFormattedString.html#method.to_formatted_string
[Unicode Consortium]: https://en.wikipedia.org/wiki/Unicode_Consortium
[`Vec`]: https://doc.rust-lang.org/std/vec/struct.Vec.html
[`WriteFormatted`]: https://docs.rs/num-format/0.4.0/num_format/trait.WriteFormatted.html
[`WriteFormatted`]: https://docs.rs/num-format/0.4.2/num_format/trait.WriteFormatted.html
2 changes: 1 addition & 1 deletion num-format-windows/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "num-format-windows"
version = "0.4.1" # Remember to keep html_root_url in lib.rs in sync!
version = "0.4.2" # Remember to keep html_root_url in lib.rs in sync!

authors = ["Brian Myers <[email protected]>"]
categories = []
Expand Down
2 changes: 1 addition & 1 deletion num-format-windows/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![doc(html_root_url = "https://docs.rs/num-format-windows/0.4.1")]
#![doc(html_root_url = "https://docs.rs/num-format-windows/0.4.2")]

#[cfg(windows)]
include!(concat!(env!("OUT_DIR"), "\\bindings.rs"));
2 changes: 1 addition & 1 deletion num-format/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "num-format"
version = "0.4.1" # Remember to keep html_root_url in lib.rs in sync!
version = "0.4.2" # Remember to keep html_root_url in lib.rs in sync!

authors = ["Brian Myers <[email protected]>"]
categories = ["encoding", "internationalization", "localization", "no-std", "value-formatting"]
Expand Down
24 changes: 12 additions & 12 deletions num-format/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ OS's locale information. It has a very similar API to [`Locale`] and should work
operating systems (i.e. macOS, linux, the BSDs, and Windows).

<i>Since this type requires several dependencies (especially on Windows), it is behind a feature
flag. To use it, include `num-format = { version = "0.4", features = ["with-system-locale"] }`
flag. To use it, include `num-format = { version = "0.4.2", features = ["with-system-locale"] }`
in your `Cargo.toml`. Additionally, on Windows (but **only** on Windows), using `SystemLocale`
requires Clang 3.9 or higher.</i>

Expand Down Expand Up @@ -180,10 +180,10 @@ fn main() -> Result<(), Error> {

| Available features | What to put in your `Cargo.toml` |
| :------------------- | :-------------------------------------------------------------------- |
| `no_std` | `num-format = { version = "0.4", default-features = false }` |
| `with-num-bigint` | `num-format = { version = "0.4", features = ["with-num-bigint"] }` |
| `with-serde` | `num-format = { version = "0.4", features = ["with-serde"] }` |
| `with-system-locale` | `num-format = { version = "0.4", features = ["with-system-locale"] }` |
| `no_std` | `num-format = { version = "0.4.2", default-features = false }` |
| `with-num-bigint` | `num-format = { version = "0.4.2", features = ["with-num-bigint"] }` |
| `with-serde` | `num-format = { version = "0.4.2", features = ["with-serde"] }` |
| `with-system-locale` | `num-format = { version = "0.4.2", features = ["with-system-locale"] }` |

## License

Expand All @@ -195,21 +195,21 @@ fn main() -> Result<(), Error> {
at your option.

[bindgen]: https://crates.io/crates/bindgen
[`Buffer`]: https://docs.rs/num-format/0.4.0/num_format/struct.Buffer.html
[`Buffer`]: https://docs.rs/num-format/0.4.2/num_format/struct.Buffer.html
[Common Locale Data Repository]: https://en.wikipedia.org/wiki/Common_Locale_Data_Repository
[`CustomFormat`]: https://docs.rs/num-format/0.4.0/num_format/struct.CustomFormat.html
[`CustomFormat`]: https://docs.rs/num-format/0.4.2/num_format/struct.CustomFormat.html
[`File`]: https://doc.rust-lang.org/std/fs/struct.File.html
[`fmt::Write`]: https://doc.rust-lang.org/std/fmt/fn.write.html
[`Format`]: https://docs.rs/num-format/0.4.0/num_format/trait.Format.html
[`Format`]: https://docs.rs/num-format/0.4.2/num_format/trait.Format.html
[`io::Write`]: https://doc.rust-lang.org/std/io/trait.Write.html
[`Locale`]: https://docs.rs/num-format/0.4.0/num_format/enum.Locale.html
[`Locale`]: https://docs.rs/num-format/0.4.2/num_format/enum.Locale.html
[`num_bigint::BigInt`]: https://docs.rs/num-bigint/0.2.2/num_bigint/struct.BigInt.html
[picking a format]: #picking-a-format
[`String`]: https://doc.rust-lang.org/std/string/struct.String.html
[The Apache License, Version 2.0]: http://www.apache.org/licenses/LICENSE-2.0
[The MIT license]: http://opensource.org/licenses/MIT
[`ToFormattedString`]: https://docs.rs/num-format/0.4.0/num_format/trait.ToFormattedString.html
[`to_formatted_string`]: https://docs.rs/num-format/0.4.0/num_format/trait.ToFormattedString.html#method.to_formatted_string
[`ToFormattedString`]: https://docs.rs/num-format/0.4.2/num_format/trait.ToFormattedString.html
[`to_formatted_string`]: https://docs.rs/num-format/0.4.2/num_format/trait.ToFormattedString.html#method.to_formatted_string
[Unicode Consortium]: https://en.wikipedia.org/wiki/Unicode_Consortium
[`Vec`]: https://doc.rust-lang.org/std/vec/struct.Vec.html
[`WriteFormatted`]: https://docs.rs/num-format/0.4.0/num_format/trait.WriteFormatted.html
[`WriteFormatted`]: https://docs.rs/num-format/0.4.2/num_format/trait.WriteFormatted.html
26 changes: 13 additions & 13 deletions num-format/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ OS's locale information. It has a very similar API to [`Locale`] and should work
operating systems (i.e. macOS, linux, the BSDs, and Windows).
<i>Since this type requires several dependencies (especially on Windows), it is behind a feature
flag. To use it, include `num-format = { version = "0.4", features = ["with-system-locale"] }`
flag. To use it, include `num-format = { version = "0.4.2", features = ["with-system-locale"] }`
in your `Cargo.toml`. Additionally, on Windows (but **only** on Windows), using `SystemLocale`
requires Clang 3.9 or higher.</i>
Expand Down Expand Up @@ -187,10 +187,10 @@ fn main() -> Result<(), Error> {
| Available features | What to put in your `Cargo.toml` |
| :------------------- | :-------------------------------------------------------------------- |
| `no_std` | `num-format = { version = "0.4", default-features = false }` |
| `with-num-bigint` | `num-format = { version = "0.4", features = ["with-num-bigint"] }` |
| `with-serde` | `num-format = { version = "0.4", features = ["with-serde"] }` |
| `with-system-locale` | `num-format = { version = "0.4", features = ["with-system-locale"] }` |
| `no_std` | `num-format = { version = "0.4.2", default-features = false }` |
| `with-num-bigint` | `num-format = { version = "0.4.2", features = ["with-num-bigint"] }` |
| `with-serde` | `num-format = { version = "0.4.2", features = ["with-serde"] }` |
| `with-system-locale` | `num-format = { version = "0.4.2", features = ["with-system-locale"] }` |
# License
Expand All @@ -202,24 +202,24 @@ fn main() -> Result<(), Error> {
at your option.
[bindgen]: https://crates.io/crates/bindgen
[`Buffer`]: https://docs.rs/num-format/0.4.0/num_format/struct.Buffer.html
[`Buffer`]: https://docs.rs/num-format/0.4.2/num_format/struct.Buffer.html
[Common Locale Data Repository]: https://en.wikipedia.org/wiki/Common_Locale_Data_Repository
[`CustomFormat`]: https://docs.rs/num-format/0.4.0/num_format/struct.CustomFormat.html
[`CustomFormat`]: https://docs.rs/num-format/0.4.2/num_format/struct.CustomFormat.html
[`File`]: https://doc.rust-lang.org/std/fs/struct.File.html
[`fmt::Write`]: https://doc.rust-lang.org/std/fmt/fn.write.html
[`Format`]: https://docs.rs/num-format/0.4.0/num_format/trait.Format.html
[`Format`]: https://docs.rs/num-format/0.4.2/num_format/trait.Format.html
[`io::Write`]: https://doc.rust-lang.org/std/io/trait.Write.html
[`Locale`]: https://docs.rs/num-format/0.4.0/num_format/enum.Locale.html
[`Locale`]: https://docs.rs/num-format/0.4.2/num_format/enum.Locale.html
[`num_bigint::BigInt`]: https://docs.rs/num-bigint/0.2.2/num_bigint/struct.BigInt.html
[picking a format]: #picking-a-format
[`String`]: https://doc.rust-lang.org/std/string/struct.String.html
[The Apache License, Version 2.0]: http://www.apache.org/licenses/LICENSE-2.0
[The MIT license]: http://opensource.org/licenses/MIT
[`ToFormattedString`]: https://docs.rs/num-format/0.4.0/num_format/trait.ToFormattedString.html
[`to_formatted_string`]: https://docs.rs/num-format/0.4.0/num_format/trait.ToFormattedString.html#method.to_formatted_string
[`ToFormattedString`]: https://docs.rs/num-format/0.4.2/num_format/trait.ToFormattedString.html
[`to_formatted_string`]: https://docs.rs/num-format/0.4.2/num_format/trait.ToFormattedString.html#method.to_formatted_string
[Unicode Consortium]: https://en.wikipedia.org/wiki/Unicode_Consortium
[`Vec`]: https://doc.rust-lang.org/std/vec/struct.Vec.html
[`WriteFormatted`]: https://docs.rs/num-format/0.4.0/num_format/trait.WriteFormatted.html
[`WriteFormatted`]: https://docs.rs/num-format/0.4.2/num_format/trait.WriteFormatted.html
*/

#![cfg_attr(not(feature = "std"), no_std)]
Expand All @@ -237,7 +237,7 @@ at your option.
trivial_numeric_casts,
unused
)]
#![doc(html_root_url = "https://docs.rs/num-format/0.4.1")]
#![doc(html_root_url = "https://docs.rs/num-format/0.4.2")]

#[cfg(all(feature = "with-system-locale", unix))]
#[macro_use]
Expand Down

0 comments on commit 51f2ff1

Please sign in to comment.