Skip to content

Commit

Permalink
chore: Initialize swc_parallel crate (#9839)
Browse files Browse the repository at this point in the history
**Description:**

This crate will be a wrapper for `chili` and `rayon`, which can be made single-threaded just by disabling `swc_parallel/parallel` cargo feature.
  • Loading branch information
kdy1 authored Jan 6, 2025
1 parent d47844b commit f6da4a4
Show file tree
Hide file tree
Showing 103 changed files with 323 additions and 313 deletions.
13 changes: 13 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 2 additions & 30 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,37 +1,9 @@
[workspace]
members = [
"xtask",
"crates/swc_allocator",
"crates/swc_core",
"crates/swc_cli_impl",
"crates/dbg-swc",
"crates/jsdoc",
"crates/binding_macros",
"crates/swc_css",
"crates/swc_css_lints",
"crates/swc_css_prefixer",
"crates/swc_ecmascript",
"crates/swc_ecma_lints",
"crates/swc_ecma_quote",
"crates/swc_estree_compat",
"crates/swc_html",
"crates/swc_plugin",
"crates/swc_plugin_macro",
"crates/swc_plugin_runner",
"crates/swc_plugin_testing",
"crates/swc_plugin_proxy",
"crates/swc_timer",
"crates/swc_xml",
"crates/swc_x_optimizer",
"crates/swc_transform_common",
"crates/swc_typescript",
"crates/swc_fast_ts_strip",
"tools/generate-code",
"tools/swc-releaser",
]
members = ["xtask", "crates/*", "tools/generate-code", "tools/swc-releaser"]
resolver = "2"

[workspace.package]
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/swc-project/swc.git"

Expand Down
6 changes: 6 additions & 0 deletions bindings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ members = [
]
resolver = "2"

[workspace.package]
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/swc-project/swc.git"


[workspace.dependencies]
anyhow = "1.0.86"
backtrace = "0.3"
Expand Down
6 changes: 3 additions & 3 deletions bindings/binding_core_wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
authors = ["강동윤 <[email protected]>"]
description = "wasm module for swc"
edition = "2021"
license = "Apache-2.0"
edition = { workspace = true }
license = { workspace = true }
name = "binding_core_wasm"
publish = false
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "1.10.4"

[lib]
Expand Down
6 changes: 3 additions & 3 deletions bindings/binding_minifier_wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
authors = ["강동윤 <[email protected]>"]
description = "wasm module for swc"
edition = "2021"
license = "Apache-2.0"
edition = { workspace = true }
license = { workspace = true }
name = "binding_minifier_wasm"
publish = false
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "1.10.4"

[lib]
Expand Down
6 changes: 3 additions & 3 deletions bindings/binding_typescript_wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
authors = ["강동윤 <[email protected]>"]
description = "wasm module for swc"
edition = "2021"
license = "Apache-2.0"
edition = { workspace = true }
license = { workspace = true }
name = "binding_typescript_wasm"
publish = false
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "1.10.4"

[lib]
Expand Down
6 changes: 3 additions & 3 deletions bindings/swc_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
authors = ["강동윤 <[email protected]>", "OJ Kwon <[email protected]>"]
description = "Commandline for SWC"
edition = "2021"
edition = { workspace = true }
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
license = { workspace = true }
name = "swc_cli"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "0.91.459"

[[bin]]
Expand Down
6 changes: 3 additions & 3 deletions crates/ast_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
authors = ["강동윤 <[email protected]>"]
description = "Macros for ast nodes."
documentation = "https://rustdoc.swc.rs/ast_node/"
edition = "2021"
license = "Apache-2.0"
edition = { workspace = true }
license = { workspace = true }
name = "ast_node"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "3.0.0"

[lib]
Expand Down
6 changes: 3 additions & 3 deletions crates/better_scoped_tls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
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"
edition = { workspace = true }
license = { workspace = true }
name = "better_scoped_tls"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "1.0.0"

[lib]
Expand Down
6 changes: 3 additions & 3 deletions crates/binding_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
authors = ["강동윤 <[email protected]>", "OJ Kwon <[email protected]>"]
description = "Macros to build customized bindings interface"
edition = "2021"
license = "Apache-2.0"
edition = { workspace = true }
license = { workspace = true }
name = "binding_macros"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "9.0.0"

[lib]
Expand Down
4 changes: 2 additions & 2 deletions crates/dbg-swc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
authors = ["강동윤 <[email protected]>"]
description = "Debug utilities"
edition = "2021"
license = "Apache-2.0"
edition = { workspace = true }
license = { workspace = true }
name = "dbg-swc"
repository = { workspace = true }
version = "6.0.0"
Expand Down
6 changes: 3 additions & 3 deletions crates/from_variant/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
authors = ["강동윤 <[email protected]>"]
description = "Automatically derive From impls for enums"
documentation = "https://rustdoc.swc.rs/from_variant/"
edition = "2021"
license = "Apache-2.0"
edition = { workspace = true }
license = { workspace = true }
name = "from_variant"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "2.0.0"

[lib]
Expand Down
4 changes: 2 additions & 2 deletions crates/jsdoc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
authors = ["강동윤 <[email protected]>"]
description = "JsDoc parser writen in rust"
documentation = "https://rustdoc.swc.rs/jsdoc/"
edition = "2021"
edition = { workspace = true }
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
license = { workspace = true }
name = "jsdoc"
repository = { workspace = true }
version = "5.0.0"
Expand Down
6 changes: 3 additions & 3 deletions crates/preset_env_base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
authors = ["강동윤 <[email protected]>"]
description = "Common logic for targetting vairous browsers"
documentation = "https://rustdoc.swc.rs/preset_env_base/"
edition = "2021"
license = "Apache-2.0"
edition = { workspace = true }
license = { workspace = true }
name = "preset_env_base"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "1.0.0"

[lib]
Expand Down
6 changes: 3 additions & 3 deletions crates/string_enum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
authors = ["강동윤 <[email protected]>"]
description = "String based enum."
documentation = "https://rustdoc.swc.rs/string_enum/"
edition = "2021"
license = "Apache-2.0"
edition = { workspace = true }
license = { workspace = true }
name = "string_enum"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "1.0.0"

[lib]
Expand Down
8 changes: 4 additions & 4 deletions crates/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
authors = ["강동윤 <[email protected]>"]
description = "Speedy web compiler"
documentation = "https://rustdoc.swc.rs/swc/"
edition = "2021"
edition = { workspace = true }
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
license = { workspace = true }
name = "swc"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "9.0.1"

[lib]
Expand Down Expand Up @@ -48,8 +48,8 @@ plugin_transform_host_native = [
"swc_plugin_runner/plugin_transform_host_native",
]
# Do not inject tokio runtime while running plugin transforms
manual-tokio-runtmie = ["manual-tokio-runtime"]
manual-tokio-runtime = []
manual-tokio-runtmie = ["manual-tokio-runtime"]

[dependencies]
anyhow = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/swc_allocator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
authors = ["강동윤 <[email protected]>"]
description = "A thin wrapper for bumpalo"
documentation = "https://rustdoc.swc.rs/swc_allocator/"
edition = "2021"
license = "Apache-2.0"
edition = { workspace = true }
license = { workspace = true }
name = "swc_allocator"
repository = { workspace = true }
version = "2.0.0"
Expand Down
6 changes: 3 additions & 3 deletions crates/swc_atoms/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
authors = ["강동윤 <[email protected]>"]
description = "Atoms for the swc project."
documentation = "https://rustdoc.swc.rs/swc_atoms/"
edition = "2021"
license = "Apache-2.0"
edition = { workspace = true }
license = { workspace = true }
name = "swc_atoms"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "3.0.0"

[lib]
Expand Down
6 changes: 3 additions & 3 deletions crates/swc_bundler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ authors = ["강동윤 <[email protected]>"]
build = "build.rs"
description = "Very fast ecmascript bundler"
documentation = "https://rustdoc.swc.rs/swc_bundler/"
edition = "2021"
edition = { workspace = true }
include = ["Cargo.toml", "build.rs", "src/**/*.rs", "src/**/*.js"]
license = "Apache-2.0"
license = { workspace = true }
name = "swc_bundler"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "6.0.0"

[package.metadata.docs.rs]
Expand Down
6 changes: 3 additions & 3 deletions crates/swc_cached/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
authors = ["강동윤 <[email protected]>"]
description = "Cached types for swc"
documentation = "https://rustdoc.swc.rs/swc_cached/"
edition = "2021"
edition = { workspace = true }
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
license = { workspace = true }
name = "swc_cached"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "1.0.0"

[lib]
Expand Down
6 changes: 3 additions & 3 deletions crates/swc_cli_impl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
authors = ["강동윤 <[email protected]>", "OJ Kwon <[email protected]>"]
description = "Commandline for SWC (Internal crate with implementation)"
edition = "2021"
edition = { workspace = true }
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
license = { workspace = true }
name = "swc_cli_impl"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "9.0.0"

[[bin]]
Expand Down
6 changes: 3 additions & 3 deletions crates/swc_common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
authors = ["강동윤 <[email protected]>"]
description = "Common utilities for the swc project."
documentation = "https://rustdoc.swc.rs/swc_common/"
edition = "2021"
license = "Apache-2.0"
edition = { workspace = true }
license = { workspace = true }
name = "swc_common"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "5.0.0"

[package.metadata.docs.rs]
Expand Down
6 changes: 3 additions & 3 deletions crates/swc_compiler_base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
authors = ["강동윤 <[email protected]>"]
description = "Base crate for the 'swc' crate. This is not a public API."
documentation = "https://rustdoc.swc.rs/swc_compiler_base/"
edition = "2021"
edition = { workspace = true }
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
license = { workspace = true }
name = "swc_compiler_base"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "7.0.0"

[features]
Expand Down
6 changes: 3 additions & 3 deletions crates/swc_config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
authors = ["강동윤 <[email protected]>"]
description = "Types for configuring swc"
documentation = "https://rustdoc.swc.rs/swc_config/"
edition = "2021"
license = "Apache-2.0"
edition = { workspace = true }
license = { workspace = true }
name = "swc_config"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "1.0.0"

[dependencies]
Expand Down
6 changes: 3 additions & 3 deletions crates/swc_config_macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
authors = ["강동윤 <[email protected]>"]
description = "Macros to prevent mistakes"
documentation = "https://rustdoc.swc.rs/swc_config_macro/"
edition = "2021"
license = "Apache-2.0"
edition = { workspace = true }
license = { workspace = true }
name = "swc_config_macro"
repository = "https://github.com/swc-project/swc.git"
repository = { workspace = true }
version = "1.0.0"

[lib]
Expand Down
Loading

0 comments on commit f6da4a4

Please sign in to comment.