Skip to content

Commit

Permalink
chore: change all
Browse files Browse the repository at this point in the history
  • Loading branch information
hardfist committed Nov 29, 2024
1 parent 20198e0 commit 105a654
Show file tree
Hide file tree
Showing 55 changed files with 283 additions and 270 deletions.
47 changes: 29 additions & 18 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,20 @@ license = "MIT"
repository = "https://github.com/web-infra-dev/rspack"

[workspace.metadata.cargo-shear]
ignored = ["swc"]
ignored = [
"swc",
"rspack_plugin_dynamic",
"rspack_builtin",
"rspack_loader",
"rspack_identifier",
"rspack_testing",
"rspack_plugin_emit",
"rspack_collection",
"rspack_deps_graph",
"rspack_plugin_mini_css_extract",
"rspack_binding",
"rspack_plugin_merge",
]
[workspace.dependencies]
anyhow = { version = "1.0.81", features = ["backtrace"] }
anymap = { version = "=1.0.0-beta.2" }
Expand Down Expand Up @@ -96,6 +109,7 @@ rspack_dojang = { version = "0.1.9" }
# all rspack workspace dependencies
rspack_allocator = { version = "0.2.0", path = "crates/rspack_allocator" }
rspack_ast = { version = "0.2.0", path = "crates/rspack_ast" }
rspack_base64 = { version = "0.2.0", path = "crates/rspack_base64" }
rspack_binding = { version = "0.2.0", path = "crates/rspack_binding" }
rspack_binding_options = { version = "0.2.0", path = "crates/rspack_binding_options" }
rspack_binding_values = { version = "0.2.0", path = "crates/rspack_binding_values" }
Expand All @@ -108,14 +122,23 @@ rspack_deps_graph = { version = "0.2.0", path = "crates/rsp
rspack_error = { version = "0.2.0", path = "crates/rspack_error" }
rspack_fs = { version = "0.2.0", path = "crates/rspack_fs" }
rspack_fs_node = { version = "0.2.0", path = "crates/rspack_fs_node" }
rspack_futures = { version = "0.2.0", path = "crates/rspack_futures" }
rspack_hash = { version = "0.2.0", path = "crates/rspack_hash" }
rspack_hook = { version = "0.2.0", path = "crates/rspack_hook" }
rspack_identifier = { version = "0.2.0", path = "crates/rspack_identifier" }
rspack_ids = { version = "0.2.0", path = "crates/rspack_ids" }
rspack_loader = { version = "0.2.0", path = "crates/rspack_loader" }
rspack_loader_lightningcss = { version = "0.2.0", path = "crates/rspack_loader_lightningcss" }
rspack_loader_preact_refresh = { version = "0.2.0", path = "crates/rspack_loader_preact_refresh" }
rspack_loader_react_refresh = { version = "0.2.0", path = "crates/rspack_loader_react_refresh" }
rspack_loader_runner = { version = "0.2.0", path = "crates/rspack_loader_runner" }
rspack_loader_swc = { version = "0.2.0", path = "crates/rspack_loader_swc" }
rspack_loader_testing = { version = "0.2.0", path = "crates/rspack_loader_testing" }
rspack_macros = { version = "0.2.0", path = "crates/rspack_macros" }
rspack_plugin_ = { version = "0.2.0", path = "crates/rspack_plugin_ensure_chunk_conditions" }
rspack_napi = { version = "0.2.0", path = "crates/rspack_napi" }
rspack_napi_macros = { version = "0.2.0", path = "crates/rspack_napi_macros" }
rspack_paths = { version = "0.2.0", path = "crates/rspack_paths" }
rspack_plugin_asset = { version = "0.2.0", path = "crates/rspack_plugin_asset" }
rspack_plugin_banner = { version = "0.2.0", path = "crates/rspack_plugin_banner" }
rspack_plugin_context_replacement = { version = "0.2.0", path = "crates/rspack_plugin_context_replacement" }
rspack_plugin_copy = { version = "0.2.0", path = "crates/rspack_plugin_copy" }
Expand All @@ -135,7 +158,6 @@ rspack_plugin_ignore = { version = "0.2.0", path = "crates/rsp
rspack_plugin_javascript = { version = "0.2.0", path = "crates/rspack_plugin_javascript" }
rspack_plugin_json = { version = "0.2.0", path = "crates/rspack_plugin_json" }
rspack_plugin_lazy_compilation = { version = "0.2.0", path = "crates/rspack_plugin_lazy_compilation" }
rspack_plugin_li = { version = "0.2.0", path = "crates/rspack_plugin_dynamic_entry" }
rspack_plugin_library = { version = "0.2.0", path = "crates/rspack_plugin_library" }
rspack_plugin_lightning_css_minimizer = { version = "0.2.0", path = "crates/rspack_plugin_lightning_css_minimizer" }
rspack_plugin_limit_chunk_count = { version = "0.2.0", path = "crates/rspack_plugin_limit_chunk_count" }
Expand All @@ -159,21 +181,10 @@ rspack_plugin_wasm = { version = "0.2.0", path = "crates/rsp
rspack_plugin_web_worker_template = { version = "0.2.0", path = "crates/rspack_plugin_web_worker_template" }
rspack_plugin_worker = { version = "0.2.0", path = "crates/rspack_plugin_worker" }
rspack_regex = { version = "0.2.0", path = "crates/rspack_regex" }

rspack_futures = { version = "0.2.0", path = "crates/rspack_futures" }

rspack_ids = { version = "0.2.0", path = "crates/rspack_ids" }
rspack_loader_lightningcss = { version = "0.2.0", path = "crates/rspack_loader_lightningcss" }
rspack_loader_preact_refresh = { version = "0.2.0", path = "crates/rspack_loader_preact_refresh" }
rspack_loader_react_refresh = { version = "0.2.0", path = "crates/rspack_loader_react_refresh" }
rspack_loader_testing = { version = "0.2.0", path = "crates/rspack_loader_testing" }
rspack_napi = { version = "0.2.0", path = "crates/rspack_napi" }
rspack_napi_macros = { version = "0.2.0", path = "crates/rspack_napi_macros" }
rspack_paths = { version = "0.2.0", path = "crates/rspack_paths" }
rspack_plugin_asset = { version = "0.2.0", path = "crates/rspack_plugin_asset" }
rspack_testing = { version = "0.2.0", path = "crates/rspack_testing" }
rspack_tracing = { version = "0.2.0", path = "crates/rspack_tracing" }
rspack_util = { version = "0.2.0", path = "crates/rspack_util" }
rspack_testing = { version = "0.2.0", path = "crates/rspack_testing" }
rspack_tracing = { version = "0.2.0", path = "crates/rspack_tracing" }
rspack_util = { version = "0.2.0", path = "crates/rspack_util" }
swc_plugin_import = { version = "0.2.0", path = "crates/swc_plugin_import" }
[workspace.metadata.release]
rate-limit = { existing-packages = 70, new-packages = 70 }
[profile.dev]
Expand Down
16 changes: 8 additions & 8 deletions crates/rspack_binding_values/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ futures = { workspace = true }
heck = { workspace = true }
napi = { workspace = true, features = ["async", "tokio_rt", "serde-json", "anyhow"] }
napi-derive = { workspace = true }
rspack_collections = { version = "0.2.0", path = "../rspack_collections" }
rspack_core = { version = "0.2.0", path = "../rspack_core" }
rspack_error = { version = "0.2.0", path = "../rspack_error" }
rspack_napi = { version = "0.2.0", path = "../rspack_napi" }
rspack_plugin_html = { version = "0.2.0", path = "../rspack_plugin_html" }
rspack_plugin_runtime = { version = "0.2.0", path = "../rspack_plugin_runtime" }
rspack_regex = { version = "0.2.0", path = "../rspack_regex" }
rspack_util = { version = "0.2.0", path = "../rspack_util" }
rspack_collections = { workspace = true }
rspack_core = { workspace = true }
rspack_error = { workspace = true }
rspack_napi = { workspace = true }
rspack_plugin_html = { workspace = true }
rspack_plugin_runtime = { workspace = true }
rspack_regex = { workspace = true }
rspack_util = { workspace = true }
rustc-hash = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
2 changes: 1 addition & 1 deletion crates/rspack_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ rspack_paths = { workspace = true }
rspack_regex = { workspace = true }
rspack_resolver = { workspace = true }
rspack_sources = { workspace = true }
rspack_util = { version = "0.2.0", path = "../rspack_util" }
rspack_util = { workspace = true }
rustc-hash = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/rspack_error/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ futures = { workspace = true }
miette = { version = "5", features = ["fancy"] }
once_cell = { workspace = true }
owo-colors = "3.5.0"
rspack_collections = { version = "0.2.0", path = "../rspack_collections" }
rspack_paths = { version = "0.2.0", path = "../rspack_paths" }
rspack_collections = { workspace = true }
rspack_paths = { workspace = true }
swc_core = { workspace = true, features = ["common", "common_concurrent"] }
termcolor = "1"
textwrap = "0.15.2"
Expand Down
6 changes: 3 additions & 3 deletions crates/rspack_fs_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ async-trait = { workspace = true }
futures = { workspace = true }
napi = { workspace = true, features = ["napi4", "tokio_rt"] }
napi-derive = { workspace = true }
rspack_fs = { version = "0.2.0", path = "../rspack_fs" }
rspack_napi = { version = "0.2.0", path = "../rspack_napi" }
rspack_paths = { version = "0.2.0", path = "../rspack_paths" }
rspack_fs = { workspace = true }
rspack_napi = { workspace = true }
rspack_paths = { workspace = true }

[build-dependencies]
napi-build = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/rspack_hook/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ version = "0.2.0"
[dependencies]
async-trait = { workspace = true }
futures-concurrency = "7.5.0"
rspack_error = { version = "0.2.0", path = "../rspack_error" }
rspack_macros = { version = "0.2.0", path = "../rspack_macros" }
rspack_error = { workspace = true }
rspack_macros = { workspace = true }
rustc-hash = { workspace = true }
10 changes: 5 additions & 5 deletions crates/rspack_ids/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ version = "0.2.0"
itertools = { workspace = true }
rayon = { workspace = true }
regex = { workspace = true }
rspack_collections = { version = "0.2.0", path = "../rspack_collections" }
rspack_core = { version = "0.2.0", path = "../rspack_core" }
rspack_error = { version = "0.2.0", path = "../rspack_error" }
rspack_hook = { version = "0.2.0", path = "../rspack_hook" }
rspack_util = { version = "0.2.0", path = "../rspack_util" }
rspack_collections = { workspace = true }
rspack_core = { workspace = true }
rspack_error = { workspace = true }
rspack_hook = { workspace = true }
rspack_util = { workspace = true }
tracing = { workspace = true }

[package.metadata.cargo-shear]
Expand Down
6 changes: 3 additions & 3 deletions crates/rspack_loader_lightningcss/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ async-trait = { workspace = true }
derivative = { workspace = true }
lightningcss = { workspace = true, features = ["sourcemap", "browserslist", "visitor", "into_owned"] }
parcel_sourcemap = { workspace = true }
rspack_core = { version = "0.2.0", path = "../rspack_core" }
rspack_error = { version = "0.2.0", path = "../rspack_error" }
rspack_loader_runner = { version = "0.2.0", path = "../rspack_loader_runner" }
rspack_core = { workspace = true }
rspack_error = { workspace = true }
rspack_loader_runner = { workspace = true }
serde = { workspace = true, features = ["derive"] }
tokio = { workspace = true }
6 changes: 3 additions & 3 deletions crates/rspack_loader_preact_refresh/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ version = "0.2.0"

[dependencies]
async-trait = { workspace = true }
rspack_core = { version = "0.2.0", path = "../rspack_core" }
rspack_error = { version = "0.2.0", path = "../rspack_error" }
rspack_loader_runner = { version = "0.2.0", path = "../rspack_loader_runner" }
rspack_core = { workspace = true }
rspack_error = { workspace = true }
rspack_loader_runner = { workspace = true }
6 changes: 3 additions & 3 deletions crates/rspack_loader_react_refresh/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ version = "0.2.0"

[dependencies]
async-trait = { workspace = true }
rspack_core = { version = "0.2.0", path = "../rspack_core" }
rspack_error = { version = "0.2.0", path = "../rspack_error" }
rspack_loader_runner = { version = "0.2.0", path = "../rspack_loader_runner" }
rspack_core = { workspace = true }
rspack_error = { workspace = true }
rspack_loader_runner = { workspace = true }
10 changes: 5 additions & 5 deletions crates/rspack_loader_runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros",

once_cell = { workspace = true }
regex = { workspace = true }
rspack_collections = { version = "0.2.0", path = "../rspack_collections" }
rspack_error = { version = "0.2.0", path = "../rspack_error" }
rspack_fs = { version = "0.2.0", path = "../rspack_fs" }
rspack_paths = { version = "0.2.0", path = "../rspack_paths" }
rspack_collections = { workspace = true }
rspack_error = { workspace = true }
rspack_fs = { workspace = true }
rspack_paths = { workspace = true }
rspack_sources = { workspace = true }
rspack_util = { version = "0.2.0", path = "../rspack_util" }
rspack_util = { workspace = true }
serde_json = { workspace = true }
14 changes: 7 additions & 7 deletions crates/rspack_loader_swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ base64 = { version = "0.22" }
dashmap = { workspace = true }
either = { workspace = true }
jsonc-parser = { version = "0.26.0", features = ["serde"] }
rspack_ast = { version = "0.2.0", path = "../rspack_ast" }
rspack_core = { version = "0.2.0", path = "../rspack_core" }
rspack_error = { version = "0.2.0", path = "../rspack_error" }
rspack_loader_runner = { version = "0.2.0", path = "../rspack_loader_runner" }
rspack_plugin_javascript = { version = "0.2.0", path = "../rspack_plugin_javascript" }
rspack_util = { version = "0.2.0", path = "../rspack_util" }
rspack_ast = { workspace = true }
rspack_core = { workspace = true }
rspack_error = { workspace = true }
rspack_loader_runner = { workspace = true }
rspack_plugin_javascript = { workspace = true }
rspack_util = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
stacker = { workspace = true }
swc = { workspace = true, features = ["manual-tokio-runtmie"] }
swc_config = { workspace = true }
swc_core = { workspace = true, features = ["base", "ecma_ast", "common"] }
swc_plugin_import = { version = "0.2.0", path = "../swc_plugin_import" }
swc_plugin_import = { workspace = true }
url = "2.5.0"
6 changes: 3 additions & 3 deletions crates/rspack_loader_testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = "0.2.0"

[dependencies]
async-trait = { workspace = true }
rspack_core = { version = "0.2.0", path = "../rspack_core" }
rspack_error = { version = "0.2.0", path = "../rspack_error" }
rspack_loader_runner = { version = "0.2.0", path = "../rspack_loader_runner" }
rspack_core = { workspace = true }
rspack_error = { workspace = true }
rspack_loader_runner = { workspace = true }
serde_json = { workspace = true }
12 changes: 6 additions & 6 deletions crates/rspack_macros_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ name = "rspack_macros_test"
repository = "https://github.com/web-infra-dev/rspack"
version = "0.2.0"
[dev-dependencies]
rspack_collections = { version = "0.2.0", path = "../rspack_collections" }
rspack_core = { version = "0.2.0", path = "../rspack_core" }
rspack_error = { version = "0.2.0", path = "../rspack_error" }
rspack_hook = { version = "0.2.0", path = "../rspack_hook" }
rspack_macros = { version = "0.2.0", path = "../rspack_macros" }
rspack_util = { version = "0.2.0", path = "../rspack_util" }
rspack_collections = { workspace = true }
rspack_core = { workspace = true }
rspack_error = { workspace = true }
rspack_hook = { workspace = true }
rspack_macros = { workspace = true }
rspack_util = { workspace = true }
tokio = { workspace = true, features = ["macros"] }
tracing = { workspace = true }
trybuild = { version = "1.0.91", features = ["diff"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/rspack_napi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ version = "0.2.0"
[dependencies]
napi = { workspace = true, features = ["async", "tokio_rt", "serde-json", "napi4", "anyhow"] }
oneshot = "0.1.6"
rspack_error = { version = "0.2.0", path = "../rspack_error" }
rspack_error = { workspace = true }
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros", "test-util", "parking_lot"] }
12 changes: 6 additions & 6 deletions crates/rspack_plugin_asset/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ version = "0.2.0"
async-trait = { workspace = true }
mime_guess = { workspace = true }
rayon = { workspace = true }
rspack_base64 = { version = "0.2.0", path = "../rspack_base64" }
rspack_core = { version = "0.2.0", path = "../rspack_core" }
rspack_error = { version = "0.2.0", path = "../rspack_error" }
rspack_hash = { version = "0.2.0", path = "../rspack_hash" }
rspack_hook = { version = "0.2.0", path = "../rspack_hook" }
rspack_util = { version = "0.2.0", path = "../rspack_util" }
rspack_base64 = { workspace = true }
rspack_core = { workspace = true }
rspack_error = { workspace = true }
rspack_hash = { workspace = true }
rspack_hook = { workspace = true }
rspack_util = { workspace = true }
serde_json = { workspace = true }
tracing = { workspace = true }
urlencoding = { workspace = true }
Expand Down
8 changes: 4 additions & 4 deletions crates/rspack_plugin_banner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ version = "0.2.0"
cow-utils = { workspace = true }
futures = { workspace = true }
regex = { workspace = true }
rspack_core = { version = "0.2.0", path = "../rspack_core" }
rspack_error = { version = "0.2.0", path = "../rspack_error" }
rspack_hook = { version = "0.2.0", path = "../rspack_hook" }
rspack_util = { version = "0.2.0", path = "../rspack_util" }
rspack_core = { workspace = true }
rspack_error = { workspace = true }
rspack_hook = { workspace = true }
rspack_util = { workspace = true }
tracing = { workspace = true }

[package.metadata.cargo-shear]
Expand Down
10 changes: 5 additions & 5 deletions crates/rspack_plugin_context_replacement/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ repository = "https://github.com/web-infra-dev/rspack"
version = "0.2.0"

[dependencies]
rspack_core = { version = "0.2.0", path = "../rspack_core" }
rspack_error = { version = "0.2.0", path = "../rspack_error" }
rspack_hook = { version = "0.2.0", path = "../rspack_hook" }
rspack_paths = { version = "0.2.0", path = "../rspack_paths" }
rspack_regex = { version = "0.2.0", path = "../rspack_regex" }
rspack_core = { workspace = true }
rspack_error = { workspace = true }
rspack_hook = { workspace = true }
rspack_paths = { workspace = true }
rspack_regex = { workspace = true }
rustc-hash = { workspace = true }
tracing = { workspace = true }

Expand Down
14 changes: 7 additions & 7 deletions crates/rspack_plugin_copy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ glob = { workspace = true }
lazy_static = "1.4.0"
pathdiff = { workspace = true, features = ["camino"] }
regex = { workspace = true }
rspack_core = { version = "0.2.0", path = "../rspack_core" }
rspack_error = { version = "0.2.0", path = "../rspack_error" }
rspack_futures = { version = "0.2.0", path = "../rspack_futures" }
rspack_hash = { version = "0.2.0", path = "../rspack_hash" }
rspack_hook = { version = "0.2.0", path = "../rspack_hook" }
rspack_paths = { version = "0.2.0", path = "../rspack_paths" }
rspack_util = { version = "0.2.0", path = "../rspack_util" }
rspack_core = { workspace = true }
rspack_error = { workspace = true }
rspack_futures = { workspace = true }
rspack_hash = { workspace = true }
rspack_hook = { workspace = true }
rspack_paths = { workspace = true }
rspack_util = { workspace = true }
rustc-hash = { workspace = true }
sugar_path = { workspace = true }
tokio = { workspace = true, features = ["fs"] }
Expand Down
Loading

0 comments on commit 105a654

Please sign in to comment.