diff options
author | Dimitris Iliopoulos <diliopoulos@meta.com> | 2023-05-17 18:52:14 -0700 |
---|---|---|
committer | Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> | 2023-05-17 18:52:14 -0700 |
commit | 0fc04c3edc2a099d2bf8d9980b99be2b4b03c4db (patch) | |
tree | 6a1aa74ee7a545ac9d9ff9452a1849a29999c1ee | |
parent | 747223e9c1a73712f5e57631b81206e6c8143f92 (diff) |
upgrade packages from toml-5 (0.5.8 fork) -> toml (0.7.3)
Summary:
The fixes bellow are because of one of 4 reasons:
1. [`toml::from_slice`](https://docs.rs/toml/0.5.8/toml/de/fn.from_slice.html) and [`toml::to_vec`](https://docs.rs/toml/0.5.8/toml/ser/fn.to_vec.html) have been removed and replaced in the current version by [`toml::from_str`](https://docs.rs/toml/0.7.3/toml/fn.from_str.html) and [`toml::to_string`](https://docs.rs/toml/0.7.3/toml/fn.to_string.html)
2. [`toml::Spanned::span`](https://docs.rs/toml/0.7.3/toml/struct.Spanned.html#method.span) now returns a `Range<usize>` and not a `(usize, usize)` like it used to ([here](https://docs.rs/toml/0.5.8/toml/struct.Spanned.html#method.span))
3. The internal representation for parsed TOML via [`toml_edit`](https://docs.rs/toml_edit/latest/toml_edit/) uses `"` instead of `'` for representing string values
4. TOML parsing errors are now multi-line errors and need to be accounted for in tests
Reviewed By: zertosh, shayne-fletcher
Differential Revision: D45896591
fbshipit-source-id: 403790674c7449da9f7322d69ec3030369310aab
-rw-r--r-- | below/config/Cargo.toml | 2 | ||||
-rw-r--r-- | below/dump/Cargo.toml | 2 | ||||
-rw-r--r-- | below/view/Cargo.toml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/below/config/Cargo.toml b/below/config/Cargo.toml index 64b24fa9..ee89b608 100644 --- a/below/config/Cargo.toml +++ b/below/config/Cargo.toml @@ -15,7 +15,7 @@ btrfs = { package = "below-btrfs", version = "0.6.3", path = "../btrfs" } cgroupfs = { version = "0.6.3", path = "../cgroupfs" } once_cell = "1.12" serde = { version = "1.0.136", features = ["derive", "rc"] } -toml = "=0.5.8" +toml = "0.7.3" [dev-dependencies] tempdir = "0.3" diff --git a/below/dump/Cargo.toml b/below/dump/Cargo.toml index 99ea41af..58bc6c73 100644 --- a/below/dump/Cargo.toml +++ b/below/dump/Cargo.toml @@ -23,4 +23,4 @@ slog = { version = "2.7", features = ["max_level_trace", "nested-values"] } store = { package = "below-store", version = "0.6.3", path = "../store" } tar = "0.4.38" tempdir = "0.3" -toml = "=0.5.8" +toml = "0.7.3" diff --git a/below/view/Cargo.toml b/below/view/Cargo.toml index b9c94f5e..28685201 100644 --- a/below/view/Cargo.toml +++ b/below/view/Cargo.toml @@ -25,7 +25,7 @@ render = { package = "below-render", version = "0.6.3", path = "../render" } serde = { version = "1.0.136", features = ["derive", "rc"] } slog = { version = "2.7", features = ["max_level_trace", "nested-values"] } store = { package = "below-store", version = "0.6.3", path = "../store" } -toml = "=0.5.8" +toml = "0.7.3" [dev-dependencies] tempdir = "0.3" |