diff --git a/Cargo.lock b/Cargo.lock index 333bdb8d9ad1..b8b191fd383d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -241,7 +241,7 @@ dependencies = [ "serde", "serde-wasm-bindgen", "serde_json", - "string_cache", + "string_cache 0.8.4 (registry+https://github.com/rust-lang/crates.io-index)", "string_cache_codegen", "thiserror", "wasm-bindgen", @@ -3026,6 +3026,18 @@ dependencies = [ "serde", ] +[[package]] +name = "string_cache" +version = "0.8.4" +source = "git+https://github.com/swc-project/string-cache?branch=swc#db382616e9a1bf71bff2004853c3ab88f85a2235" +dependencies = [ + "new_debug_unreachable", + "once_cell", + "phf_shared", + "precomputed-hash", + "serde", +] + [[package]] name = "string_cache_codegen" version = "0.5.2" @@ -3157,7 +3169,7 @@ dependencies = [ "rkyv-test", "rustc-hash", "serde", - "string_cache", + "string_cache 0.8.4 (git+https://github.com/swc-project/string-cache?branch=swc)", "string_cache_codegen", "triomphe", ] @@ -3245,7 +3257,7 @@ dependencies = [ "serde_json", "siphasher", "sourcemap", - "string_cache", + "string_cache 0.8.4 (git+https://github.com/swc-project/string-cache?branch=swc)", "swc_atoms", "swc_eq_ignore_macros", "swc_visit", diff --git a/crates/swc_atoms/Cargo.toml b/crates/swc_atoms/Cargo.toml index 71fa20efb5d7..81f0ecab7aab 100644 --- a/crates/swc_atoms/Cargo.toml +++ b/crates/swc_atoms/Cargo.toml @@ -28,7 +28,7 @@ rkyv = { package = "rkyv", version = "=0.7.37", optional = true } rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.2", optional = true } rustc-hash = "1.1.0" serde = "1" -string_cache = "0.8.4" +string_cache = { git = "https://github.com/swc-project/string-cache", branch = "swc" } triomphe = "0.1.8" [build-dependencies] diff --git a/crates/swc_common/Cargo.toml b/crates/swc_common/Cargo.toml index f5b123a77050..5f315691d05c 100644 --- a/crates/swc_common/Cargo.toml +++ b/crates/swc_common/Cargo.toml @@ -71,7 +71,7 @@ rustc-hash = "1.1.0" serde = { version = "1.0.119", features = ["derive"] } siphasher = "0.3.9" sourcemap = { version = "6", optional = true } -string_cache = "0.8.4" +string_cache = { git = "https://github.com/swc-project/string-cache", branch = "swc" } swc_atoms = { version = "0.4.32", path = "../swc_atoms" } swc_eq_ignore_macros = { version = "0.1.1", path = "../swc_eq_ignore_macros" } swc_visit = { version = "0.5.4", path = "../swc_visit" }