mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 13:51:19 +03:00
feat(atoms): Introduce bytecheck-ed rkyv version (#5686)
This commit is contained in:
parent
bb5fcdbb4d
commit
d6e67b5944
29
Cargo.lock
generated
29
Cargo.lock
generated
@ -2429,6 +2429,20 @@ dependencies = [
|
||||
"seahash",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rkyv-test"
|
||||
version = "0.7.38-test.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6c920f62b6e022ed303a3cafbad393dbb5dd40e05f555f489f69ca9fb61efff1"
|
||||
dependencies = [
|
||||
"bytecheck",
|
||||
"hashbrown 0.12.0",
|
||||
"ptr_meta",
|
||||
"rend",
|
||||
"rkyv_derive_test",
|
||||
"seahash",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rkyv_derive"
|
||||
version = "0.7.37"
|
||||
@ -2440,6 +2454,17 @@ dependencies = [
|
||||
"syn",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rkyv_derive_test"
|
||||
version = "0.7.38"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "70a0d3a9b62c4666451f35d96f5e5f5f44340673459a1cbf9e77e7140af68813"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rustc-demangle"
|
||||
version = "0.1.21"
|
||||
@ -2954,11 +2979,12 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "swc_atoms"
|
||||
version = "0.4.9"
|
||||
version = "0.4.10"
|
||||
dependencies = [
|
||||
"bytecheck",
|
||||
"once_cell",
|
||||
"rkyv",
|
||||
"rkyv-test",
|
||||
"rustc-hash",
|
||||
"serde",
|
||||
"string_cache",
|
||||
@ -4123,7 +4149,6 @@ name = "swc_plugin_proxy"
|
||||
version = "0.18.13"
|
||||
dependencies = [
|
||||
"better_scoped_tls",
|
||||
"bytecheck",
|
||||
"rkyv",
|
||||
"swc_common",
|
||||
"swc_ecma_ast",
|
||||
|
@ -17,7 +17,7 @@ clap = { version = "3", features = ["derive"] }
|
||||
flate2 = "1.0"
|
||||
rayon = "1.5.2"
|
||||
sha1 = "0.10.1"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", features = [
|
||||
"concurrent",
|
||||
"tty-emitter",
|
||||
|
@ -14,7 +14,7 @@ bench = false
|
||||
[dependencies]
|
||||
nom = "7.1.0"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
|
||||
[dev-dependencies]
|
||||
|
@ -55,7 +55,7 @@ rustc-hash = "1.1.0"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
sourcemap = "6"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_cached = { version = "0.3.5", path = "../swc_cached" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common", features = [
|
||||
"sourcemap",
|
||||
|
@ -7,18 +7,25 @@ edition = "2021"
|
||||
license = "Apache-2.0"
|
||||
name = "swc_atoms"
|
||||
repository = "https://github.com/swc-project/swc.git"
|
||||
version = "0.4.9"
|
||||
version = "0.4.10"
|
||||
|
||||
[lib]
|
||||
bench = false
|
||||
|
||||
[features]
|
||||
rkyv-impl = ["rkyv", "bytecheck"]
|
||||
__rkyv = []
|
||||
# Enably rkyv serialization with stable version of rkyv.
|
||||
rkyv-impl = ["__rkyv", "rkyv-stable"]
|
||||
# Enable rkyv serialization with updated version of rkyv, along with bytecheck.
|
||||
rkyv-bytecheck-impl = ["__rkyv", "rkyv-latest"]
|
||||
|
||||
[dependencies]
|
||||
bytecheck = { version = "0.6.9", optional = true }
|
||||
once_cell = "1"
|
||||
rkyv = { version = "=0.7.37", optional = true }
|
||||
rkyv-stable = { package = "rkyv", version = "=0.7.37", optional = true }
|
||||
# This is to avoid cargo version selection conflict between rkyv=0.7.37 and other versions, as it is strictly pinned
|
||||
# cannot be merged.
|
||||
rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.1", optional = true }
|
||||
rustc-hash = "1.1.0"
|
||||
serde = "1"
|
||||
string_cache = "0.8.4"
|
||||
|
@ -23,6 +23,10 @@ use std::{
|
||||
sync::Arc,
|
||||
};
|
||||
|
||||
#[cfg(feature = "rkyv-bytecheck-impl")]
|
||||
use rkyv_latest as rkyv;
|
||||
#[cfg(feature = "rkyv-impl")]
|
||||
use rkyv_stable as rkyv;
|
||||
use rustc_hash::FxHashSet;
|
||||
use serde::Serializer;
|
||||
|
||||
@ -228,7 +232,7 @@ impl PartialEq<Atom> for str {
|
||||
}
|
||||
|
||||
/// NOT A PUBLIC API
|
||||
#[cfg(feature = "rkyv")]
|
||||
#[cfg(feature = "__rkyv")]
|
||||
impl rkyv::Archive for Atom {
|
||||
type Archived = rkyv::string::ArchivedString;
|
||||
type Resolver = rkyv::string::StringResolver;
|
||||
@ -240,7 +244,7 @@ impl rkyv::Archive for Atom {
|
||||
}
|
||||
|
||||
/// NOT A PUBLIC API
|
||||
#[cfg(feature = "rkyv")]
|
||||
#[cfg(feature = "__rkyv")]
|
||||
impl<S: rkyv::ser::Serializer + ?Sized> rkyv::Serialize<S> for Atom {
|
||||
fn serialize(&self, serializer: &mut S) -> Result<Self::Resolver, S::Error> {
|
||||
String::serialize(&self.0.to_string(), serializer)
|
||||
@ -248,7 +252,7 @@ impl<S: rkyv::ser::Serializer + ?Sized> rkyv::Serialize<S> for Atom {
|
||||
}
|
||||
|
||||
/// NOT A PUBLIC API
|
||||
#[cfg(feature = "rkyv")]
|
||||
#[cfg(feature = "__rkyv")]
|
||||
impl<D> rkyv::Deserialize<Atom, D> for rkyv::string::ArchivedString
|
||||
where
|
||||
D: ?Sized + rkyv::Fallible,
|
||||
@ -263,11 +267,11 @@ where
|
||||
/// NOT A PUBLIC API.
|
||||
///
|
||||
/// This type exists to allow serializing [JsWord] using `rkyv`.
|
||||
#[cfg(feature = "rkyv")]
|
||||
#[cfg(feature = "__rkyv")]
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct EncodeJsWord;
|
||||
|
||||
#[cfg(feature = "rkyv")]
|
||||
#[cfg(feature = "__rkyv")]
|
||||
impl rkyv::with::ArchiveWith<crate::JsWord> for EncodeJsWord {
|
||||
type Archived = rkyv::Archived<String>;
|
||||
type Resolver = rkyv::Resolver<String>;
|
||||
@ -285,7 +289,7 @@ impl rkyv::with::ArchiveWith<crate::JsWord> for EncodeJsWord {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "rkyv")]
|
||||
#[cfg(feature = "__rkyv")]
|
||||
impl<S> rkyv::with::SerializeWith<crate::JsWord, S> for EncodeJsWord
|
||||
where
|
||||
S: ?Sized + rkyv::ser::Serializer,
|
||||
@ -298,7 +302,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "rkyv")]
|
||||
#[cfg(feature = "__rkyv")]
|
||||
impl<D> rkyv::with::DeserializeWith<rkyv::Archived<String>, crate::JsWord, D> for EncodeJsWord
|
||||
where
|
||||
D: ?Sized + rkyv::Fallible,
|
||||
@ -315,7 +319,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "rkyv")]
|
||||
#[cfg(feature = "__rkyv")]
|
||||
impl rkyv::with::ArchiveWith<Option<crate::JsWord>> for EncodeJsWord {
|
||||
type Archived = rkyv::Archived<Option<String>>;
|
||||
type Resolver = rkyv::Resolver<Option<String>>;
|
||||
@ -333,7 +337,7 @@ impl rkyv::with::ArchiveWith<Option<crate::JsWord>> for EncodeJsWord {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "rkyv")]
|
||||
#[cfg(feature = "__rkyv")]
|
||||
impl<S> rkyv::with::SerializeWith<Option<crate::JsWord>, S> for EncodeJsWord
|
||||
where
|
||||
S: ?Sized + rkyv::ser::Serializer,
|
||||
@ -349,7 +353,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "rkyv")]
|
||||
#[cfg(feature = "__rkyv")]
|
||||
impl<D> rkyv::with::DeserializeWith<rkyv::Archived<Option<String>>, Option<crate::JsWord>, D>
|
||||
for EncodeJsWord
|
||||
where
|
||||
|
@ -37,7 +37,7 @@ radix_fmt = "1"
|
||||
rayon = { version = "1", optional = true }
|
||||
relative-path = "1.2"
|
||||
retain_mut = "0.1.2"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_codegen = { version = "0.123.0", path = "../swc_ecma_codegen" }
|
||||
|
@ -19,4 +19,4 @@ dashmap = "5.1.0"
|
||||
once_cell = "1.10.0"
|
||||
regex = "1.5.4"
|
||||
serde = "1.0.136"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
|
@ -26,7 +26,7 @@ plugin-mode = ["plugin-base"]
|
||||
plugin-rt = ["plugin-base"]
|
||||
plugin_transform_schema_v1 = ["plugin-base"]
|
||||
plugin_transform_schema_vtest = ["plugin-base"]
|
||||
rkyv-impl = ["rkyv", "bytecheck", "swc_atoms/rkyv-impl"]
|
||||
rkyv-impl = ["rkyv", "swc_atoms/rkyv-impl"]
|
||||
tty-emitter = ["atty", "termcolor"]
|
||||
|
||||
[dependencies]
|
||||
@ -50,7 +50,7 @@ serde = { version = "1.0.119", features = ["derive"] }
|
||||
siphasher = "0.3.9"
|
||||
sourcemap = { version = "6", optional = true }
|
||||
string_cache = "0.8.4"
|
||||
swc_atoms = { version = "0.4.6", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_eq_ignore_macros = { version = "0.1.1", path = "../swc_eq_ignore_macros" }
|
||||
swc_visit = { version = "0.5.2", path = "../swc_visit" }
|
||||
termcolor = { version = "1.0", optional = true }
|
||||
|
@ -285,7 +285,7 @@ wasmer-wasi = { optional = true, version = "2.3.0", default-features = false }
|
||||
# swc_* dependencies
|
||||
binding_macros = { optional = true, version = "0.12.0", path = "../binding_macros" }
|
||||
swc = { optional = true, version = "0.224.0", path = "../swc" }
|
||||
swc_atoms = { optional = true, version = "0.4.8", path = "../swc_atoms" }
|
||||
swc_atoms = { optional = true, version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_bundler = { optional = true, version = "0.185.0", path = "../swc_bundler" }
|
||||
swc_cached = { optional = true, version = "0.3.5", path = "../swc_cached" }
|
||||
swc_common = { optional = true, version = "0.27.12", path = "../swc_common" }
|
||||
|
@ -13,7 +13,7 @@ bench = false
|
||||
|
||||
[features]
|
||||
default = []
|
||||
rkyv-impl = ["rkyv", "bytecheck", "swc_atoms/rkyv-impl", "swc_common/rkyv-impl"]
|
||||
rkyv-impl = ["rkyv", "swc_atoms/rkyv-impl", "swc_common/rkyv-impl"]
|
||||
|
||||
|
||||
[dependencies]
|
||||
@ -22,5 +22,5 @@ is-macro = "0.2.0"
|
||||
rkyv = { version = "=0.7.37", optional = true }
|
||||
serde = { version = "1.0.127", features = ["derive"] }
|
||||
string_enum = { version = "0.3.1", path = "../string_enum/" }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
|
@ -17,7 +17,7 @@ auto_impl = "0.5.0"
|
||||
bitflags = "1.3.2"
|
||||
rustc-hash = "1.1.0"
|
||||
serde = "1.0.127"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_css_ast = { version = "0.110.0", path = "../swc_css_ast" }
|
||||
swc_css_codegen_macros = { version = "0.2.0", path = "../swc_css_codegen_macros" }
|
||||
|
@ -17,7 +17,7 @@ auto_impl = "0.5.0"
|
||||
parking_lot = "0.12.0"
|
||||
rayon = "1.5.1"
|
||||
serde = { version = "1.0.133", features = ["derive"] }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_cached = { version = "0.3.5", path = "../swc_cached" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_css_ast = { version = "0.110.0", path = "../swc_css_ast" }
|
||||
|
@ -14,7 +14,7 @@ bench = false
|
||||
|
||||
[dependencies]
|
||||
serde = "1.0.118"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_css_ast = { version = "0.110.0", path = "../swc_css_ast" }
|
||||
swc_css_utils = { version = "0.107.0", path = "../swc_css_utils/" }
|
||||
|
@ -19,7 +19,7 @@ debug = []
|
||||
bitflags = "1.2.1"
|
||||
lexical = "6.1.0"
|
||||
serde = "1.0.127"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_css_ast = { version = "0.110.0", path = "../swc_css_ast" }
|
||||
|
||||
|
@ -17,7 +17,7 @@ once_cell = "1.10.0"
|
||||
preset_env_base = { version = "0.3.0", path = "../preset_env_base" }
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
serde_json = "1.0.61"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_css_ast = { version = "0.110.0", path = "../swc_css_ast" }
|
||||
swc_css_utils = { version = "0.107.0", path = "../swc_css_utils/" }
|
||||
|
@ -16,7 +16,7 @@ bench = false
|
||||
once_cell = "1.10.0"
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
serde_json = "1.0.61"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_css_ast = { version = "0.110.0", path = "../swc_css_ast" }
|
||||
swc_css_visit = { version = "0.109.0", path = "../swc_css_visit" }
|
||||
|
@ -21,7 +21,7 @@ path = []
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1", optional = true }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_css_ast = { version = "0.110.0", path = "../swc_css_ast" }
|
||||
swc_visit = { version = "0.5.2", path = "../swc_visit" }
|
||||
|
@ -18,7 +18,7 @@ bench = false
|
||||
[features]
|
||||
default = []
|
||||
fuzzing = ["arbitrary", "swc_common/arbitrary"]
|
||||
rkyv-impl = ["rkyv", "bytecheck", "swc_atoms/rkyv-impl", "swc_common/rkyv-impl"]
|
||||
rkyv-impl = ["rkyv", "swc_atoms/rkyv-impl", "swc_common/rkyv-impl"]
|
||||
|
||||
[dependencies]
|
||||
arbitrary = { version = "1", optional = true, features = ["derive"] }
|
||||
@ -30,7 +30,7 @@ rkyv = { version = "=0.7.37", optional = true }
|
||||
scoped-tls = "1.0.0"
|
||||
serde = { version = "1.0.133", features = ["derive"] }
|
||||
string_enum = { version = "0.3.1", path = "../string_enum" }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
unicode-id = "0.3"
|
||||
|
||||
|
@ -19,7 +19,7 @@ once_cell = "1.10.0"
|
||||
rustc-hash = "1.1.0"
|
||||
serde = "1.0.127"
|
||||
sourcemap = "6"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_codegen_macros = { version = "0.7.1", path = "../swc_ecma_codegen_macros" }
|
||||
|
@ -12,7 +12,7 @@ version = "0.90.0"
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_visit = { version = "0.76.6", path = "../swc_ecma_visit" }
|
||||
|
@ -12,7 +12,7 @@ bench = false
|
||||
|
||||
[dependencies]
|
||||
phf = { version = "0.10", features = ["macros"] }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_utils = { version = "0.101.0", path = "../swc_ecma_utils" }
|
||||
|
@ -20,7 +20,7 @@ parking_lot = "0.12.0"
|
||||
rayon = "1.5.1"
|
||||
regex = "1"
|
||||
serde = { version = "1.0.133", features = ["derive"] }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common", features = [
|
||||
"concurrent",
|
||||
] }
|
||||
|
@ -44,7 +44,7 @@ retain_mut = "0.1.2"
|
||||
rustc-hash = "1.1.0"
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
serde_json = "1.0.61"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_cached = { version = "0.3.5", path = "../swc_cached" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_config = { version = "0.1.0", path = "../swc_config" }
|
||||
|
@ -30,7 +30,7 @@ lexical = { version = "6.1.0", features = ["power-of-two"] }
|
||||
num-bigint = "0.4"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
smallvec = "1.8.0"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_visit = { version = "0.76.6", path = "../swc_ecma_visit", optional = true }
|
||||
|
@ -23,7 +23,7 @@ serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
st-map = "0.1.2"
|
||||
string_enum = { version = "0.3.1", path = "../string_enum" }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_transforms = { version = "0.191.0", path = "../swc_ecma_transforms", features = [
|
||||
|
@ -12,7 +12,7 @@ version = "0.34.0"
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_quote_macros = { version = "0.29.0", path = "../swc_ecma_quote_macros" }
|
||||
|
@ -17,7 +17,7 @@ anyhow = "1"
|
||||
pmutil = "0.5.1"
|
||||
proc-macro2 = "1"
|
||||
quote = "1"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_parser = { version = "0.118.0", path = "../swc_ecma_parser" }
|
||||
|
@ -15,7 +15,7 @@ bench = false
|
||||
anyhow = "1"
|
||||
hex = "0.4"
|
||||
sha-1 = "0.10"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_codegen = { version = "0.123.0", path = "../swc_ecma_codegen" }
|
||||
|
@ -31,7 +31,7 @@ react = ["swc_ecma_transforms_react"]
|
||||
typescript = ["swc_ecma_transforms_typescript"]
|
||||
|
||||
[dependencies]
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_transforms_base = { version = "0.106.0", path = "../swc_ecma_transforms_base" }
|
||||
|
@ -26,7 +26,7 @@ rayon = { version = "1", optional = true }
|
||||
rustc-hash = "1.1.0"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
smallvec = "1.8.0"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_parser = { version = "0.118.0", path = "../swc_ecma_parser" }
|
||||
|
@ -12,7 +12,7 @@ version = "0.95.0"
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_transforms_base = { version = "0.106.0", path = "../swc_ecma_transforms_base" }
|
||||
|
@ -29,7 +29,7 @@ ordered-float = "2.0.1"
|
||||
rayon = { version = "1.5.1", optional = true }
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
smallvec = "1.8.0"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_config = { version = "0.1.0", path = "../swc_config" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
|
@ -23,7 +23,7 @@ path-clean = "0.1.0"
|
||||
pathdiff = "0.2.0"
|
||||
regex = "1"
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_cached = { version = "0.3.5", path = "../swc_cached" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
|
@ -30,7 +30,7 @@ petgraph = "0.6"
|
||||
rayon = { version = "1.5.1", optional = true }
|
||||
rustc-hash = "1.1.0"
|
||||
serde_json = "1.0.61"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_parser = { version = "0.118.0", path = "../swc_ecma_parser" }
|
||||
|
@ -20,7 +20,7 @@ multi-module = ["swc_ecma_loader"]
|
||||
either = "1.6.1"
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
smallvec = "1.8.0"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_loader = { version = "0.39.4", path = "../swc_ecma_loader", optional = true }
|
||||
|
@ -26,7 +26,7 @@ regex = "1.4.2"
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
sha-1 = "0.10.0"
|
||||
string_enum = { version = "0.3.1", path = "../string_enum" }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_config = { version = "0.1.0", path = "../swc_config" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
|
@ -14,7 +14,7 @@ bench = false
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_transforms_base = { version = "0.106.0", path = "../swc_ecma_transforms_base" }
|
||||
|
@ -23,7 +23,7 @@ concurrent = ["swc_common/concurrent", "rayon"]
|
||||
indexmap = "1"
|
||||
once_cell = "1.10.0"
|
||||
rayon = { version = "1.5.1", optional = true }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_ecma_visit = { version = "0.76.6", path = "../swc_ecma_visit" }
|
||||
|
@ -23,7 +23,7 @@ path = []
|
||||
[dependencies]
|
||||
num-bigint = { version = "0.4", features = ["serde"] }
|
||||
serde = { version = "1", optional = true }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_ecma_ast = { version = "0.90.15", path = "../swc_ecma_ast" }
|
||||
swc_visit = { version = "0.5.2", path = "../swc_visit" }
|
||||
|
@ -21,5 +21,5 @@ bench = false
|
||||
better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
|
@ -22,7 +22,7 @@ copyless = "0.1.5"
|
||||
rayon = "1.5.0"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1.0.62"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common", features = [
|
||||
"concurrent",
|
||||
"sourcemap",
|
||||
|
@ -15,7 +15,7 @@ version = "0.24.7"
|
||||
bench = false
|
||||
|
||||
[features]
|
||||
rkyv-impl = ["rkyv", "bytecheck", "swc_atoms/rkyv-impl", "swc_common/rkyv-impl"]
|
||||
rkyv-impl = ["rkyv", "swc_atoms/rkyv-impl", "swc_common/rkyv-impl"]
|
||||
|
||||
[dependencies]
|
||||
bytecheck = { version = "0.6.9", optional = true }
|
||||
@ -23,5 +23,5 @@ is-macro = "0.2.0"
|
||||
rkyv = { version = "=0.7.37", optional = true }
|
||||
serde = { version = "1.0.127", features = ["derive"] }
|
||||
string_enum = { version = "0.3.1", path = "../string_enum/" }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
|
@ -19,7 +19,7 @@ bench = false
|
||||
auto_impl = "0.5.0"
|
||||
bitflags = "1.3.2"
|
||||
rustc-hash = "1.1.0"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_html_ast = { version = "0.24.4", path = "../swc_html_ast" }
|
||||
swc_html_codegen_macros = { version = "0.2.0", path = "../swc_html_codegen_macros" }
|
||||
|
@ -19,7 +19,7 @@ bench = false
|
||||
once_cell = "1.10.0"
|
||||
serde = { version = "1.0.118", features = ["derive"] }
|
||||
serde_json = "1.0.61"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_cached = { version = "0.3.5", path = "../swc_cached" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_css_ast = { version = "0.110.0", path = "../swc_css_ast" }
|
||||
|
@ -19,7 +19,7 @@ bench = false
|
||||
debug = []
|
||||
|
||||
[dependencies]
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_html_ast = { version = "0.24.4", path = "../swc_html_ast" }
|
||||
swc_html_utils = { version = "0.12.5", path = "../swc_html_utils" }
|
||||
|
@ -24,7 +24,7 @@ path = []
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1", optional = true }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_html_ast = { version = "0.24.4", path = "../swc_html_ast" }
|
||||
swc_visit = { version = "0.5.2", path = "../swc_visit" }
|
||||
|
@ -27,7 +27,7 @@ serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
string_enum = { version = "0.3", path = "../string_enum" }
|
||||
swc = { version = "0.224.0", path = "../swc" }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_bundler = { version = "0.185.0", path = "../swc_bundler", features = [
|
||||
"concurrent",
|
||||
] }
|
||||
|
@ -17,5 +17,5 @@ bench = false
|
||||
[dependencies]
|
||||
ahash = "0.7.6"
|
||||
dashmap = "5.1.0"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
|
@ -18,7 +18,6 @@ plugin-mode = []
|
||||
|
||||
[dependencies]
|
||||
better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" }
|
||||
bytecheck = "0.6.9"
|
||||
rkyv = "=0.7.37"
|
||||
swc_common = { version = "0.27.13", path = "../swc_common", features = [
|
||||
"plugin-base",
|
||||
|
@ -47,7 +47,7 @@ wasmer-cache = { version = "2.3.0", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = "0.3"
|
||||
swc_atoms = { version = "0.4.5", path = '../swc_atoms' }
|
||||
swc_atoms = { version = "0.4.10", path = '../swc_atoms' }
|
||||
swc_ecma_loader = { version = "0.39.4", path = "../swc_ecma_loader" }
|
||||
swc_ecma_parser = { version = "0.118.0", path = "../swc_ecma_parser" }
|
||||
swc_ecma_visit = { version = "0.76.6", path = "../swc_ecma_visit" }
|
||||
|
@ -18,5 +18,5 @@ bench = false
|
||||
is-macro = "0.2.0"
|
||||
serde = { version = "1.0.127", features = ["derive"] }
|
||||
string_enum = { version = "0.3.1", path = "../string_enum/" }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
|
@ -19,7 +19,7 @@ bench = false
|
||||
auto_impl = "0.5.0"
|
||||
bitflags = "1.3.2"
|
||||
rustc-hash = "1.1.0"
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_xml_ast = { version = "0.2.4", path = "../swc_xml_ast" }
|
||||
swc_xml_codegen_macros = { version = "0.1.0", path = "../swc_xml_codegen_macros" }
|
||||
|
@ -19,7 +19,7 @@ bench = false
|
||||
debug = []
|
||||
|
||||
[dependencies]
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_xml_ast = { version = "0.2.4", path = "../swc_xml_ast" }
|
||||
|
||||
|
@ -24,7 +24,7 @@ path = []
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1", optional = true }
|
||||
swc_atoms = { version = "0.4.5", path = "../swc_atoms" }
|
||||
swc_atoms = { version = "0.4.10", path = "../swc_atoms" }
|
||||
swc_common = { version = "0.27.13", path = "../swc_common" }
|
||||
swc_visit = { version = "0.5.2", path = "../swc_visit" }
|
||||
swc_xml_ast = { version = "0.2.4", path = "../swc_xml_ast" }
|
||||
|
Loading…
Reference in New Issue
Block a user