diff --git a/Cargo.lock b/Cargo.lock index 886f314b6194..5bdaed13303f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -497,15 +497,6 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" -[[package]] -name = "castaway" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0abae9be0aaf9ea96a3b1b8b1b55c602ca751eba1b1500220cea4ecbafe7c0d5" -dependencies = [ - "rustversion", -] - [[package]] name = "cc" version = "1.2.5" @@ -690,20 +681,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "compact_str" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b79c4069c6cad78e2e0cdfcbd26275770669fb39fd308a752dc110e83b9af32" -dependencies = [ - "castaway", - "cfg-if", - "itoa", - "rustversion", - "ryu", - "static_assertions", -] - [[package]] name = "concurrent-queue" version = "2.5.0" @@ -3312,12 +3289,6 @@ dependencies = [ "untrusted", ] -[[package]] -name = "rustversion" -version = "1.0.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" - [[package]] name = "rustybuzz" version = "0.7.0" @@ -3667,12 +3638,6 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" -[[package]] -name = "static_assertions" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" - [[package]] name = "strict-num" version = "0.1.1" @@ -5301,7 +5266,6 @@ name = "uv-pep508" version = "0.6.0" dependencies = [ "boxcar", - "compact_str", "indexmap", "insta", "itertools 0.14.0", @@ -5342,7 +5306,6 @@ dependencies = [ name = "uv-platform-tags" version = "0.0.1" dependencies = [ - "compact_str", "insta", "rustc-hash", "serde", diff --git a/crates/uv-pep508/Cargo.toml b/crates/uv-pep508/Cargo.toml index 35dfd73d7657..912a226f7c0d 100644 --- a/crates/uv-pep508/Cargo.toml +++ b/crates/uv-pep508/Cargo.toml @@ -36,7 +36,6 @@ tracing = { workspace = true, optional = true } unicode-width = { workspace = true } url = { workspace = true, features = ["serde"] } version-ranges = { workspace = true } -compact_str = { version = "0.8.1" } [dev-dependencies] insta = { version = "1.40.0" } diff --git a/crates/uv-pep508/src/lib.rs b/crates/uv-pep508/src/lib.rs index 95f4a4774c4e..17233c137d86 100644 --- a/crates/uv-pep508/src/lib.rs +++ b/crates/uv-pep508/src/lib.rs @@ -963,10 +963,10 @@ fn parse_pep508_requirement( mod tests { //! Half of these tests are copied from + use insta::assert_snapshot; use std::env; use std::str::FromStr; - - use insta::assert_snapshot; + use std::sync::Arc; use url::Url; use uv_normalize::{ExtraName, InvalidNameError, PackageName}; @@ -1339,17 +1339,17 @@ mod tests { let mut b = MarkerTree::expression(MarkerExpression::String { key: MarkerValueString::SysPlatform, operator: MarkerOperator::Equal, - value: "win32".to_string(), + value: Arc::from("win32"), }); let mut c = MarkerTree::expression(MarkerExpression::String { key: MarkerValueString::OsName, operator: MarkerOperator::Equal, - value: "linux".to_string(), + value: Arc::from("linux"), }); let d = MarkerTree::expression(MarkerExpression::String { key: MarkerValueString::ImplementationName, operator: MarkerOperator::Equal, - value: "cpython".to_string(), + value: Arc::from("cpython"), }); c.and(d); diff --git a/crates/uv-platform-tags/Cargo.toml b/crates/uv-platform-tags/Cargo.toml index a0138f3a55dd..add9e485634b 100644 --- a/crates/uv-platform-tags/Cargo.toml +++ b/crates/uv-platform-tags/Cargo.toml @@ -16,7 +16,6 @@ doctest = false workspace = true [dependencies] -compact_str = { version = "0.8.1" } rustc-hash = { workspace = true } serde = { workspace = true } thiserror = { workspace = true }