From 536cdb13d65a55c47b1a8b8d22501f55f8d6346e Mon Sep 17 00:00:00 2001 From: IWANABETHATGUY Date: Tue, 10 Jan 2023 12:01:55 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20init?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 4 ++++ Cargo.lock | 18 +++++++++++++++--- crates/swc_atoms/Cargo.toml | 2 +- crates/swc_common/Cargo.toml | 2 +- 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 206e9cbd61d2..bad58b6a9e85 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -31,6 +31,10 @@ "debug" ], "rust-analyzer.cargo.features": [ + "cSpell.allowCompoundWords": true, + "cSpell.caseSensitive": true, + // "rust-analyzer.checkOnSave.command": "clippy", + "rust-analyzer.checkOnSave.features": [ // We use this to make IDE faster "rust-analyzer", "rkyv-impl", 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" }