Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Apply cargo autoinherit #8902

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 106 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,111 @@ members = [
"crates/swc_xml",
]
resolver = "2"

[workspace.dependencies]
# bytecheck version should be in sync with rkyv version. Do not bump individually.
bytecheck = "0.6.10"
rkyv = "=0.7.44"


Inflector = "0.11.4"
ahash = "0.8.8"
ansi_term = "0.12.1"
anyhow = "1.0.81"
arbitrary = "1"
arrayvec = "0.7.4"
assert_cmd = "2.0.12"
assert_fs = "1.0.13"
atty = "0.2.14"
auto_impl = "1.2.0"
backtrace = "0.3.61"
base64 = "0.21.0"
bitflags = "2.5.0"
browserslist-rs = "0.15.0"
cfg-if = "1.0.0"
chrono = "0.4.31"
console_error_panic_hook = "0.1.7"
copyless = "0.1.5"
crc = "2.1.0"
criterion = "0.5.1"
dashmap = "5.5.3"
dialoguer = "0.10.2"
difference = "2"
either = "1.10.0"
enumset = "1.1.2"
flate2 = "1.0"
futures = "0.3"
glob = "0.3.0"
hex = "0.4.3"
hstr = "0.2.8"
indexmap = "2.0.0"
is-macro = "0.3.5"
js-sys = "0.3.59"
jsonc-parser = "0.21.0"
lazy_static = "1.4.0"
lexical = "6.1.0"
lru = "0.10.0"
memchr = "2.6.1"
miette = "4.2.1"
napi = { version = "2.0.0", default-features = false }
napi-derive = { version = "2.0.0", default-features = false }
new_debug_unreachable = "1.0.4"
nom = "7.1.3"
ntest = "0.7.2"
num-bigint = "0.4.3"
num-traits = "0.2.15"
num_cpus = "1.13.1"
once_cell = "1.19.0"
parking_lot = "0.12.1"
path-absolutize = "3.0.11"
pathdiff = "0.2.1"
petgraph = "0.6.0"
phf = "0.11.2"
pretty_assertions = "1.3"
proc-macro2 = "1.0.24"
quote = "1.0.7"
rayon = "1.7.0"
regex = "1.5.4"
relative-path = "1.6.1"
reqwest = "0.11.14"
rustc-hash = "1.1.0"
ryu-js = "1.0.0"
scoped-tls = "1.0.1"
semver = "1.0.20"
serde = "1.0.197"
serde-wasm-bindgen = "0.4.5"
serde_derive = "1.0.197"
serde_json = "1.0.115"
sha1 = "0.10.5"
sha2 = "0.10.8"
siphasher = "0.3.9"
smallvec = "1.8.0"
smartstring = "1"
sourcemap = "8.0.0"
st-map = "0.2.0"
syn = "2"
tempfile = "3.6.0"
termcolor = "1.0"
thiserror = "1.0.30"
tokio = { version = "1", default-features = false }
toml = "0.8.2"
tracing = "0.1.40"
tracing-chrome = "0.5.0"
tracing-futures = "0.2.5"
tracing-subscriber = "0.3.18"
typed-arena = "2.0.1"
unicode-id = "0.3"
unicode-id-start = "1.1.2"
unicode-width = "0.1.4"
url = "2.4.0"
vergen = { version = "8.0.0", default-features = false }
virtual-fs = { version = "=0.11.1", default-features = false }
walkdir = "2.4.0"
wasm-bindgen = "0.2.91"
wasm-bindgen-futures = "0.4.41"
wasmer = { version = "4.2.5", default-features = false }
wasmer-wasix = { version = "0.18.0", default-features = false }

[profile.release]
# lto = true

Expand All @@ -41,4 +146,4 @@ debug = true
opt-level = 3

[profile.dev.package."*"]
opt-level = 3
opt-level = 3
9 changes: 4 additions & 5 deletions crates/ast_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ bench = false
proc-macro = true

[dependencies]
proc-macro2 = "1"
quote = "1"
proc-macro2 = { workspace = true }
quote = { workspace = true }

swc_macros_common = { version = "0.3.9", path = "../swc_macros_common" }

[dependencies.syn]
features = ["derive", "fold", "parsing", "printing", "visit-mut"]
version = "2"
features = ["derive", "fold", "parsing", "printing", "visit-mut"]
workspace = true
16 changes: 8 additions & 8 deletions crates/better_scoped_tls/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
authors = ["강동윤 <[email protected]>"]
description = "scoped-tls, but with good error message"
authors = ["강동윤 <[email protected]>"]
description = "scoped-tls, but with good error message"
documentation = "https://rustdoc.swc.rs/better_scoped_tls/"
edition = "2021"
license = "Apache-2.0"
name = "better_scoped_tls"
repository = "https://github.com/swc-project/swc.git"
version = "0.1.1"
edition = "2021"
license = "Apache-2.0"
name = "better_scoped_tls"
repository = "https://github.com/swc-project/swc.git"
version = "0.1.1"

[lib]
bench = false

[dependencies]
scoped-tls = "1.0.1"
scoped-tls = { workspace = true }
26 changes: 16 additions & 10 deletions crates/binding_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,19 @@ swc_ecma_transforms = { optional = true, version = "0.230.0", path = "../swc_ecm
swc_ecma_visit = { optional = true, version = "0.99.0", path = "../swc_ecma_visit" }

# Optional deps for the wasm binding macro
anyhow = { optional = true, version = "1.0.81" }
console_error_panic_hook = { optional = true, version = "0.1.7" }
js-sys = { optional = true, version = "0.3.59" }
once_cell = { optional = true, version = "1.19.0" }
serde = { optional = true, version = "1", features = ["derive"] }
serde-wasm-bindgen = { optional = true, version = "0.4.5" }
wasm-bindgen = { optional = true, version = "0.2.91", features = [
"enable-interning",
] }
wasm-bindgen-futures = { optional = true, version = "0.4.41" }
anyhow = { workspace = true, optional = true }
console_error_panic_hook = { workspace = true, optional = true }
js-sys = { workspace = true, optional = true }
once_cell = { workspace = true, optional = true }
serde = { workspace = true, features = ["derive"], optional = true }
serde-wasm-bindgen = { workspace = true, optional = true }


[dependencies.wasm-bindgen]
features = ["enable-interning"]
optional = true
workspace = true

[dependencies.wasm-bindgen-futures]
optional = true
workspace = true
23 changes: 12 additions & 11 deletions crates/dbg-swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@ bench = false
name = "dbg-swc"

[dependencies]
anyhow = "1.0.81"
anyhow = { workspace = true }
dialoguer = { workspace = true }
flate2 = { workspace = true }
rayon = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
sha1 = { workspace = true }
tempfile = { workspace = true }
tracing = { workspace = true }
url = { workspace = true }

clap = { version = "3", features = ["derive"] }
dialoguer = "0.10.2"
flate2 = "1.0"
rayon = "1.7.0"
serde = "1"
serde_json = "1"
sha1 = "0.10.5"
tempfile = "3.6.0"
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["fmt", "env-filter"] }
url = "2"
tracing-subscriber = { workspace = true, features = ["fmt", "env-filter"] }

swc_atoms = { version = "0.6.5", path = "../swc_atoms" }
swc_common = { version = "0.33.20", features = [
Expand Down
9 changes: 4 additions & 5 deletions crates/from_variant/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ bench = false
proc-macro = true

[dependencies]
proc-macro2 = "1"
proc-macro2 = { workspace = true }

swc_macros_common = { version = "0.3.9", path = "../swc_macros_common" }

[dependencies.syn]
features = ["derive", "fold", "parsing", "printing"]
version = "2"
[dependencies.syn]
features = ["derive", "fold", "parsing", "printing"]
workspace = true
8 changes: 4 additions & 4 deletions crates/jsdoc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ bench = false
serde-impl = ["serde"]

[dependencies]
nom = "7.1.3"
serde = { version = "1", features = ["derive"], optional = true }
nom = { workspace = true }
serde = { workspace = true, features = ["derive"], optional = true }

swc_atoms = { version = "0.6.5", path = "../swc_atoms" }
swc_common = { version = "0.33.20", path = "../swc_common" }

[dev-dependencies]
anyhow = "1"
dashmap = "5.5.3"
anyhow = { workspace = true }
dashmap = { workspace = true }

swc_ecma_ast = { version = "0.113.0", path = "../swc_ecma_ast" }
swc_ecma_parser = { version = "0.144.0", path = "../swc_ecma_parser" }
Expand Down
18 changes: 9 additions & 9 deletions crates/preset_env_base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ version = "0.4.12"
bench = false

[dependencies]
ahash = "0.8.8"
anyhow = "1"
browserslist-rs = "0.15.0"
dashmap = "5.5.3"
once_cell = "1.19.0"
semver = { version = "1.0.17", features = ["serde"] }
serde = { version = "1", features = ["derive"] }
st-map = "0.2.0"
tracing = { version = "0.1.40" }
ahash = { workspace = true }
anyhow = { workspace = true }
browserslist-rs = { workspace = true }
dashmap = { workspace = true }
once_cell = { workspace = true }
semver = { workspace = true, features = ["serde"] }
serde = { workspace = true, features = ["derive"] }
st-map = { workspace = true }
tracing = { workspace = true }

from_variant = { version = "0.1.7", path = "../from_variant" }
13 changes: 6 additions & 7 deletions crates/string_enum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ bench = false
proc-macro = true

[dependencies]
proc-macro2 = "1"
quote = "1"
proc-macro2 = { workspace = true }
quote = { workspace = true }
swc_macros_common = { version = "0.3.9", path = "../swc_macros_common" }

[dependencies.syn]
features = ["full", "parsing", "printing", "extra-traits"]
version = "2"
[dependencies.syn]
features = ["full", "parsing", "printing", "extra-traits"]
workspace = true

[dev-dependencies]
serde = "1"
serde = { workspace = true }
65 changes: 34 additions & 31 deletions crates/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,23 @@ plugin_transform_host_native = [
]

[dependencies]
anyhow = "1"
base64 = "0.21.0"
dashmap = "5.5.3"
either = "1"
indexmap = { version = "2.0.0", features = ["serde"] }
jsonc-parser = { version = "0.21.0", features = ["serde"] }
lru = "0.10.0"
once_cell = "1.19.0"
parking_lot = "0.12.1"
pathdiff = "0.2.0"
regex = "1"
rustc-hash = "1.1.0"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sourcemap = "8.0"
tracing = "0.1.40"
url = "2.4.0"
anyhow = { workspace = true }
base64 = { workspace = true }
dashmap = { workspace = true }
either = { workspace = true }
indexmap = { workspace = true, features = ["serde"] }
jsonc-parser = { workspace = true, features = ["serde"] }
lru = { workspace = true }
once_cell = { workspace = true }
parking_lot = { workspace = true }
pathdiff = { workspace = true }
regex = { workspace = true }
rustc-hash = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
sourcemap = { workspace = true }
tracing = { workspace = true }
url = { workspace = true }

swc_atoms = { version = "0.6.5", path = "../swc_atoms" }
swc_cached = { version = "0.3.19", path = "../swc_cached" }
Expand Down Expand Up @@ -107,25 +107,29 @@ swc_plugin_proxy = { version = "0.42.0", path = "../swc_plugin_proxy", optional
swc_plugin_runner = { version = "0.107.0", path = "../swc_plugin_runner", optional = true, default-features = false }
swc_timer = { version = "0.21.21", path = "../swc_timer" }
swc_visit = { version = "0.5.10", path = "../swc_visit" }
tokio = { version = "1", optional = true, features = ["rt", "rt-multi-thread"] }

[dependencies.tokio]
features = ["rt", "rt-multi-thread"]
optional = true
workspace = true

[dependencies.napi-derive]
default-features = false
features = ["type-def"]
optional = true
version = "2.0.0"

[dependencies.napi]
default-features = false
features = ["napi3"]
optional = true
version = "2.0.0"
features = ["napi3"]
optional = true
workspace = true

[dependencies.napi-derive]
features = ["type-def"]
optional = true
workspace = true

[dev-dependencies]
ansi_term = "0.12"
criterion = "0.5"
rayon = "1.7.0"
ansi_term = { workspace = true }
criterion = { workspace = true }
rayon = { workspace = true }
walkdir = { workspace = true }

swc_ecma_ast = { version = "0.113.0", path = "../swc_ecma_ast", features = [
"serde-impl",
] }
Expand All @@ -135,7 +139,6 @@ swc_ecma_lints = { version = "0.93.0", path = "../swc_ecma_lints", features = [
swc_ecma_testing = { version = "0.22.22", path = "../swc_ecma_testing" }
swc_malloc = { version = "0.5.10", path = "../swc_malloc" }
testing = { version = "0.35.21", path = "../testing" }
walkdir = "2"

[[example]]
name = "transform"
Expand Down
Loading
Loading