From 538031a526df3d7541adf5b5a84bed6c818752e4 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski Date: Mon, 11 Mar 2024 00:47:38 +0000 Subject: [PATCH] Update cargo and toml-related dependencies. --- Cargo.lock | 81 ++++++++++++---------------------------------- Cargo.toml | 8 ++--- src/rustdoc_cmd.rs | 2 +- 3 files changed, 26 insertions(+), 65 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index baac87a48..1fd600674 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -289,7 +289,7 @@ dependencies = [ "assert_cmd", "atty", "bugreport", - "cargo_metadata 0.17.0", + "cargo_metadata", "cargo_toml", "clap", "clap-cargo", @@ -313,30 +313,16 @@ dependencies = [ "tame-index", "termcolor", "termcolor_output", - "toml 0.7.8", + "toml", "trustfall", "trustfall_rustdoc", ] [[package]] name = "cargo_metadata" -version = "0.15.4" +version = "0.18.1" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "eee4243f1f26fc7a42710e7439c149e2b10b05472f88090acce52632f231a73a" -dependencies = [ - "camino", - "cargo-platform", - "semver", - "serde", - "serde_json", - "thiserror", -] - -[[package]] -name = "cargo_metadata" -version = "0.17.0" -source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "e7daec1a2a2129eeba1644b220b4647ec537b0b5d4bfd6876fcc5a540056b592" +checksum = "2d886547e41f740c616ae73108f6eb70afe6d940c7bc697cb30f13daec073037" dependencies = [ "camino", "cargo-platform", @@ -348,12 +334,12 @@ dependencies = [ [[package]] name = "cargo_toml" -version = "0.15.3" +version = "0.19.2" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "599aa35200ffff8f04c1925aa1acc92fa2e08874379ef42e210a80e527e60838" +checksum = "a98356df42a2eb1bd8f1793ae4ee4de48e384dd974ce5eac8eee802edb7492be" dependencies = [ "serde", - "toml 0.7.8", + "toml", ] [[package]] @@ -380,13 +366,13 @@ dependencies = [ [[package]] name = "clap-cargo" -version = "0.10.0" +version = "0.14.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "eca953650a7350560b61db95a0ab1d9c6f7b74d146a9e08fb258b834f3cf7e2c" +checksum = "f6e2fd20c8f8c7cc395f69a86a61eb9d93e1de8fadc00338508cde2ffc656388" dependencies = [ - "cargo_metadata 0.15.4", + "anstyle", + "cargo_metadata", "clap", - "doc-comment", ] [[package]] @@ -1663,7 +1649,7 @@ dependencies = [ "os_info", "serde", "serde_derive", - "toml 0.8.10", + "toml", "uuid", ] @@ -2199,9 +2185,9 @@ checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" [[package]] name = "reqwest" -version = "0.11.24" +version = "0.11.25" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "c6920094eb85afde5e4a138be3f2de8bbdf28000f0029e72c45025a56b042251" +checksum = "0eea5a9eb898d3783f17c6407670e3592fd174cb81a10e51d4c37f49450b9946" dependencies = [ "async-compression", "base64", @@ -2585,20 +2571,20 @@ dependencies = [ [[package]] name = "system-configuration" -version = "0.5.1" +version = "0.6.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" +checksum = "658bc6ee10a9b4fcf576e9b0819d95ec16f4d2c02d39fd83ac1c8789785c4a42" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.4.2", "core-foundation", "system-configuration-sys", ] [[package]] name = "system-configuration-sys" -version = "0.5.0" +version = "0.6.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" dependencies = [ "core-foundation-sys", "libc", @@ -2625,7 +2611,7 @@ dependencies = [ "smol_str", "thiserror", "tokio", - "toml 0.8.10", + "toml", "twox-hash", "windows-targets 0.48.5", ] @@ -2781,18 +2767,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "toml" -version = "0.7.8" -source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "dd79e69d3b627db300ff956027cc6c3798cef26d22526befdfcd12feeb6d2257" -dependencies = [ - "serde", - "serde_spanned", - "toml_datetime", - "toml_edit 0.19.15", -] - [[package]] name = "toml" version = "0.8.10" @@ -2802,7 +2776,7 @@ dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.22.6", + "toml_edit", ] [[package]] @@ -2814,19 +2788,6 @@ dependencies = [ "serde", ] -[[package]] -name = "toml_edit" -version = "0.19.15" -source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" -dependencies = [ - "indexmap", - "serde", - "serde_spanned", - "toml_datetime", - "winnow 0.5.40", -] - [[package]] name = "toml_edit" version = "0.22.6" diff --git a/Cargo.toml b/Cargo.toml index f584afd43..360cf2e4a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,8 +26,8 @@ handlebars = "4.3.1" atty = "0.2.14" termcolor = "1.1.3" termcolor_output = "1.0.1" -cargo_metadata = "0.17.0" -clap-cargo = { version = "0.10.0", features = ["cargo_metadata"] } +cargo_metadata = "0.18.1" +clap-cargo = { version = "0.14.0", features = ["cargo_metadata"] } ignore = "0.4.18" clap-verbosity-flag = "2.0.0" log = "0.4.17" @@ -39,8 +39,8 @@ tame-index = { version = "0.8", features = ["git", "sparse"] } human-panic = "1.0.3" bugreport = "0.5.0" itertools = "0.11.0" -cargo_toml = "0.15.2" -toml = "0.7.6" +cargo_toml = "0.19.2" +toml = "0.8.10" directories = "5.0.1" sha2 = "0.10.6" rustc_version = "0.4.0" diff --git a/src/rustdoc_cmd.rs b/src/rustdoc_cmd.rs index 1101577da..3930c32dd 100644 --- a/src/rustdoc_cmd.rs +++ b/src/rustdoc_cmd.rs @@ -408,7 +408,7 @@ fn create_placeholder_rustdoc_manifest( let mut deps = DepsSet::new(); deps.insert( crate_source.name()?.to_string(), - Dependency::Detailed(project_with_features), + Dependency::Detailed(Box::new(project_with_features)), ); deps },