Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 51f2ff1

Browse files
committed
[num-format] 0.4.2
1 parent 0a38301 commit 51f2ff1

File tree

7 files changed

+49
-40
lines changed

7 files changed

+49
-40
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
0.4.2 (2022-10-09)
2+
==================
3+
4+
* Bump 3rd party dependencies
5+
* Update [cldr-numbers-full](https://github.com/unicode-cldr/cldr-numbers-full)
6+
git submodule to commit [b52a87048985d3052f12d30d05cfe5423ad92709](https://github.com/unicode-cldr/cldr-numbers-full/commit/b52a87048985d3052f12d30d05cfe5423ad92709)
7+
* `Locale::from_str` now supports underscore-delimited locales, e.g. "de_DE",
8+
in addition to previously supported dash-delimiated locales, e.g "de-DE"
9+
110
0.4.0 (2019-02-19)
211
==================
312
**Breaking changes:**

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ OS's locale information. It has a very similar API to [`Locale`] and should work
123123
operating systems (i.e. macOS, linux, the BSDs, and Windows).
124124

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

@@ -180,10 +180,10 @@ fn main() -> Result<(), Error> {
180180

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

188188
## License
189189

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

197197
[bindgen]: https://crates.io/crates/bindgen
198-
[`Buffer`]: https://docs.rs/num-format/0.4.0/num_format/struct.Buffer.html
198+
[`Buffer`]: https://docs.rs/num-format/0.4.2/num_format/struct.Buffer.html
199199
[Common Locale Data Repository]: https://en.wikipedia.org/wiki/Common_Locale_Data_Repository
200-
[`CustomFormat`]: https://docs.rs/num-format/0.4.0/num_format/struct.CustomFormat.html
200+
[`CustomFormat`]: https://docs.rs/num-format/0.4.2/num_format/struct.CustomFormat.html
201201
[`File`]: https://doc.rust-lang.org/std/fs/struct.File.html
202202
[`fmt::Write`]: https://doc.rust-lang.org/std/fmt/fn.write.html
203-
[`Format`]: https://docs.rs/num-format/0.4.0/num_format/trait.Format.html
203+
[`Format`]: https://docs.rs/num-format/0.4.2/num_format/trait.Format.html
204204
[`io::Write`]: https://doc.rust-lang.org/std/io/trait.Write.html
205-
[`Locale`]: https://docs.rs/num-format/0.4.0/num_format/enum.Locale.html
205+
[`Locale`]: https://docs.rs/num-format/0.4.2/num_format/enum.Locale.html
206206
[`num_bigint::BigInt`]: https://docs.rs/num-bigint/0.2.2/num_bigint/struct.BigInt.html
207207
[picking a format]: #picking-a-format
208208
[`String`]: https://doc.rust-lang.org/std/string/struct.String.html
209209
[The Apache License, Version 2.0]: http://www.apache.org/licenses/LICENSE-2.0
210210
[The MIT license]: http://opensource.org/licenses/MIT
211-
[`ToFormattedString`]: https://docs.rs/num-format/0.4.0/num_format/trait.ToFormattedString.html
212-
[`to_formatted_string`]: https://docs.rs/num-format/0.4.0/num_format/trait.ToFormattedString.html#method.to_formatted_string
211+
[`ToFormattedString`]: https://docs.rs/num-format/0.4.2/num_format/trait.ToFormattedString.html
212+
[`to_formatted_string`]: https://docs.rs/num-format/0.4.2/num_format/trait.ToFormattedString.html#method.to_formatted_string
213213
[Unicode Consortium]: https://en.wikipedia.org/wiki/Unicode_Consortium
214214
[`Vec`]: https://doc.rust-lang.org/std/vec/struct.Vec.html
215-
[`WriteFormatted`]: https://docs.rs/num-format/0.4.0/num_format/trait.WriteFormatted.html
215+
[`WriteFormatted`]: https://docs.rs/num-format/0.4.2/num_format/trait.WriteFormatted.html

num-format-windows/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "num-format-windows"
3-
version = "0.4.1" # Remember to keep html_root_url in lib.rs in sync!
3+
version = "0.4.2" # Remember to keep html_root_url in lib.rs in sync!
44

55
authors = ["Brian Myers <[email protected]>"]
66
categories = []

num-format-windows/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#![allow(non_camel_case_types)]
1212
#![allow(non_snake_case)]
1313
#![allow(non_upper_case_globals)]
14-
#![doc(html_root_url = "https://docs.rs/num-format-windows/0.4.1")]
14+
#![doc(html_root_url = "https://docs.rs/num-format-windows/0.4.2")]
1515

1616
#[cfg(windows)]
1717
include!(concat!(env!("OUT_DIR"), "\\bindings.rs"));

num-format/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "num-format"
3-
version = "0.4.1" # Remember to keep html_root_url in lib.rs in sync!
3+
version = "0.4.2" # Remember to keep html_root_url in lib.rs in sync!
44

55
authors = ["Brian Myers <[email protected]>"]
66
categories = ["encoding", "internationalization", "localization", "no-std", "value-formatting"]

num-format/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ OS's locale information. It has a very similar API to [`Locale`] and should work
123123
operating systems (i.e. macOS, linux, the BSDs, and Windows).
124124

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

@@ -180,10 +180,10 @@ fn main() -> Result<(), Error> {
180180

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

188188
## License
189189

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

197197
[bindgen]: https://crates.io/crates/bindgen
198-
[`Buffer`]: https://docs.rs/num-format/0.4.0/num_format/struct.Buffer.html
198+
[`Buffer`]: https://docs.rs/num-format/0.4.2/num_format/struct.Buffer.html
199199
[Common Locale Data Repository]: https://en.wikipedia.org/wiki/Common_Locale_Data_Repository
200-
[`CustomFormat`]: https://docs.rs/num-format/0.4.0/num_format/struct.CustomFormat.html
200+
[`CustomFormat`]: https://docs.rs/num-format/0.4.2/num_format/struct.CustomFormat.html
201201
[`File`]: https://doc.rust-lang.org/std/fs/struct.File.html
202202
[`fmt::Write`]: https://doc.rust-lang.org/std/fmt/fn.write.html
203-
[`Format`]: https://docs.rs/num-format/0.4.0/num_format/trait.Format.html
203+
[`Format`]: https://docs.rs/num-format/0.4.2/num_format/trait.Format.html
204204
[`io::Write`]: https://doc.rust-lang.org/std/io/trait.Write.html
205-
[`Locale`]: https://docs.rs/num-format/0.4.0/num_format/enum.Locale.html
205+
[`Locale`]: https://docs.rs/num-format/0.4.2/num_format/enum.Locale.html
206206
[`num_bigint::BigInt`]: https://docs.rs/num-bigint/0.2.2/num_bigint/struct.BigInt.html
207207
[picking a format]: #picking-a-format
208208
[`String`]: https://doc.rust-lang.org/std/string/struct.String.html
209209
[The Apache License, Version 2.0]: http://www.apache.org/licenses/LICENSE-2.0
210210
[The MIT license]: http://opensource.org/licenses/MIT
211-
[`ToFormattedString`]: https://docs.rs/num-format/0.4.0/num_format/trait.ToFormattedString.html
212-
[`to_formatted_string`]: https://docs.rs/num-format/0.4.0/num_format/trait.ToFormattedString.html#method.to_formatted_string
211+
[`ToFormattedString`]: https://docs.rs/num-format/0.4.2/num_format/trait.ToFormattedString.html
212+
[`to_formatted_string`]: https://docs.rs/num-format/0.4.2/num_format/trait.ToFormattedString.html#method.to_formatted_string
213213
[Unicode Consortium]: https://en.wikipedia.org/wiki/Unicode_Consortium
214214
[`Vec`]: https://doc.rust-lang.org/std/vec/struct.Vec.html
215-
[`WriteFormatted`]: https://docs.rs/num-format/0.4.0/num_format/trait.WriteFormatted.html
215+
[`WriteFormatted`]: https://docs.rs/num-format/0.4.2/num_format/trait.WriteFormatted.html

num-format/src/lib.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ OS's locale information. It has a very similar API to [`Locale`] and should work
126126
operating systems (i.e. macOS, linux, the BSDs, and Windows).
127127
128128
<i>Since this type requires several dependencies (especially on Windows), it is behind a feature
129-
flag. To use it, include `num-format = { version = "0.4", features = ["with-system-locale"] }`
129+
flag. To use it, include `num-format = { version = "0.4.2", features = ["with-system-locale"] }`
130130
in your `Cargo.toml`. Additionally, on Windows (but **only** on Windows), using `SystemLocale`
131131
requires Clang 3.9 or higher.</i>
132132
@@ -187,10 +187,10 @@ fn main() -> Result<(), Error> {
187187
188188
| Available features | What to put in your `Cargo.toml` |
189189
| :------------------- | :-------------------------------------------------------------------- |
190-
| `no_std` | `num-format = { version = "0.4", default-features = false }` |
191-
| `with-num-bigint` | `num-format = { version = "0.4", features = ["with-num-bigint"] }` |
192-
| `with-serde` | `num-format = { version = "0.4", features = ["with-serde"] }` |
193-
| `with-system-locale` | `num-format = { version = "0.4", features = ["with-system-locale"] }` |
190+
| `no_std` | `num-format = { version = "0.4.2", default-features = false }` |
191+
| `with-num-bigint` | `num-format = { version = "0.4.2", features = ["with-num-bigint"] }` |
192+
| `with-serde` | `num-format = { version = "0.4.2", features = ["with-serde"] }` |
193+
| `with-system-locale` | `num-format = { version = "0.4.2", features = ["with-system-locale"] }` |
194194
195195
# License
196196
@@ -202,24 +202,24 @@ fn main() -> Result<(), Error> {
202202
at your option.
203203
204204
[bindgen]: https://crates.io/crates/bindgen
205-
[`Buffer`]: https://docs.rs/num-format/0.4.0/num_format/struct.Buffer.html
205+
[`Buffer`]: https://docs.rs/num-format/0.4.2/num_format/struct.Buffer.html
206206
[Common Locale Data Repository]: https://en.wikipedia.org/wiki/Common_Locale_Data_Repository
207-
[`CustomFormat`]: https://docs.rs/num-format/0.4.0/num_format/struct.CustomFormat.html
207+
[`CustomFormat`]: https://docs.rs/num-format/0.4.2/num_format/struct.CustomFormat.html
208208
[`File`]: https://doc.rust-lang.org/std/fs/struct.File.html
209209
[`fmt::Write`]: https://doc.rust-lang.org/std/fmt/fn.write.html
210-
[`Format`]: https://docs.rs/num-format/0.4.0/num_format/trait.Format.html
210+
[`Format`]: https://docs.rs/num-format/0.4.2/num_format/trait.Format.html
211211
[`io::Write`]: https://doc.rust-lang.org/std/io/trait.Write.html
212-
[`Locale`]: https://docs.rs/num-format/0.4.0/num_format/enum.Locale.html
212+
[`Locale`]: https://docs.rs/num-format/0.4.2/num_format/enum.Locale.html
213213
[`num_bigint::BigInt`]: https://docs.rs/num-bigint/0.2.2/num_bigint/struct.BigInt.html
214214
[picking a format]: #picking-a-format
215215
[`String`]: https://doc.rust-lang.org/std/string/struct.String.html
216216
[The Apache License, Version 2.0]: http://www.apache.org/licenses/LICENSE-2.0
217217
[The MIT license]: http://opensource.org/licenses/MIT
218-
[`ToFormattedString`]: https://docs.rs/num-format/0.4.0/num_format/trait.ToFormattedString.html
219-
[`to_formatted_string`]: https://docs.rs/num-format/0.4.0/num_format/trait.ToFormattedString.html#method.to_formatted_string
218+
[`ToFormattedString`]: https://docs.rs/num-format/0.4.2/num_format/trait.ToFormattedString.html
219+
[`to_formatted_string`]: https://docs.rs/num-format/0.4.2/num_format/trait.ToFormattedString.html#method.to_formatted_string
220220
[Unicode Consortium]: https://en.wikipedia.org/wiki/Unicode_Consortium
221221
[`Vec`]: https://doc.rust-lang.org/std/vec/struct.Vec.html
222-
[`WriteFormatted`]: https://docs.rs/num-format/0.4.0/num_format/trait.WriteFormatted.html
222+
[`WriteFormatted`]: https://docs.rs/num-format/0.4.2/num_format/trait.WriteFormatted.html
223223
*/
224224

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

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

0 commit comments

Comments
 (0)