diff --git a/.cargo/config.toml b/.cargo/config.toml index bf0a8913120563..af70a8a0c49c81 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,12 +1,12 @@ [alias] # Do not append `--` or it will break IDEs -ck = "check --workspace --all-features --all-targets --locked" -lint = "clippy --workspace --all-targets --all-features" -codecov = "llvm-cov --workspace --ignore-filename-regex tasks" -coverage = "run -p oxc_coverage --profile coverage --" +ck = "check --workspace --all-features --all-targets --locked" +lint = "clippy --workspace --all-targets --all-features" +codecov = "llvm-cov --workspace --ignore-filename-regex tasks" +coverage = "run -p oxc_coverage --profile coverage --" benchmark = "run -p oxc_benchmark --release --" -minsize = "run -p oxc_minsize --release --" -rule = "run -p rulegen" +minsize = "run -p oxc_minsize --release --" +rule = "run -p rulegen" # Build oxlint in release mode oxlint = "build --release --bin oxlint --features allocator" diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 88f7426c9b401f..57b26b32b3ca01 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -19,7 +19,7 @@ jobs: - uses: Boshen/setup-rust@main with: restore-cache: false - tools: just,taplo-cli,cargo-shear@1,dprint + tools: just,cargo-shear@1,dprint components: rustfmt - run: just fmt - uses: autofix-ci/action@v1.3.1 diff --git a/.taplo.toml b/.taplo.toml deleted file mode 100644 index c61b11877c1eaf..00000000000000 --- a/.taplo.toml +++ /dev/null @@ -1,15 +0,0 @@ -include = [ - "*.toml", - ".cargo/config.toml", - "crates/*/*.toml", - "editor/*/*.toml", - "napi/*/*.toml", - "tasks/*/*.toml", - "wasm/*/*.toml", -] - -[formatting] -align_entries = true -column_width = 120 -align_comments = false -reorder_arrays = true diff --git a/.typos.toml b/.typos.toml index 430d43141fae05..419f7a433bd232 100644 --- a/.typos.toml +++ b/.typos.toml @@ -29,12 +29,12 @@ extend-ignore-re = [ ] [default.extend-words] -trivias = "trivias" -trivia = "trivia" +trivias = "trivias" +trivia = "trivia" xdescribe = "xdescribe" -seeked = "seeked" +seeked = "seeked" labeledby = "labeledby" [default.extend-identifiers] -IIFEs = "IIFEs" +IIFEs = "IIFEs" allowIIFEs = "allowIIFEs" diff --git a/Cargo.toml b/Cargo.toml index 0551f0dc81e60c..d1e92e42aef97d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,53 +1,53 @@ [workspace] resolver = "2" -members = ["apps/*", "crates/*", "napi/*", "tasks/*", "wasm/*"] -exclude = ["tasks/lint_rules"] +members = ["apps/*", "crates/*", "napi/*", "tasks/*", "wasm/*"] +exclude = ["tasks/lint_rules"] [workspace.package] -authors = ["Boshen ", "Oxc contributors"] -categories = ["compilers", "development-tools", "web-programming"] -description = "A collection of JavaScript tools written in Rust." -edition = "2021" -homepage = "https://oxc.rs" -keywords = ["JavaScript", "TypeScript", "linter", "minifier", "parser"] -license = "MIT" -repository = "https://github.com/oxc-project/oxc" +authors = ["Boshen ", "Oxc contributors"] +categories = ["compilers", "development-tools", "web-programming"] +edition = "2021" +homepage = "https://oxc.rs" +keywords = ["JavaScript", "TypeScript", "linter", "minifier", "parser"] +license = "MIT" +repository = "https://github.com/oxc-project/oxc" rust-version = "1.76" # Support last 6 minor versions. +description = "A collection of JavaScript tools written in Rust." # [workspace.lints.rust] absolute_paths_not_starting_with_crate = "warn" -non_ascii_idents = "warn" -unit-bindings = "warn" -unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)', 'cfg(coverage_nightly)'] } +non_ascii_idents = "warn" +unit-bindings = "warn" +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)', 'cfg(coverage_nightly)'] } [workspace.lints.clippy] -all = { level = "warn", priority = -1 } +all = { level = "warn", priority = -1 } empty_docs = { level = "allow", priority = 1 } # From `Tsify` # restriction -dbg_macro = "warn" -todo = "warn" -unimplemented = "warn" -print_stdout = "warn" # Must be opt-in -print_stderr = "warn" # Must be opt-in +dbg_macro = "warn" +todo = "warn" +unimplemented = "warn" +print_stdout = "warn" # Must be opt-in +print_stderr = "warn" # Must be opt-in allow_attributes = "warn" # I like the explicitness of this rule as it removes confusion around `clone`. # This increases readability, avoids `clone` mindlessly and heap allocating by accident. clone_on_ref_ptr = "warn" # These two are mutually exclusive, I like `mod.rs` files for better fuzzy searches on module entries. -self_named_module_files = "warn" # "-Wclippy::mod_module_files" -empty_drop = "warn" -empty_structs_with_brackets = "warn" -exit = "warn" -filetype_is_file = "warn" -get_unwrap = "warn" -impl_trait_in_params = "warn" -rc_buffer = "warn" -rc_mutex = "warn" +self_named_module_files = "warn" # "-Wclippy::mod_module_files" +empty_drop = "warn" +empty_structs_with_brackets = "warn" +exit = "warn" +filetype_is_file = "warn" +get_unwrap = "warn" +impl_trait_in_params = "warn" +rc_buffer = "warn" +rc_mutex = "warn" rest_pat_in_fully_bound_structs = "warn" -unnecessary_safety_comment = "warn" -undocumented_unsafe_blocks = "warn" -infinite_loop = "warn" +unnecessary_safety_comment = "warn" +undocumented_unsafe_blocks = "warn" +infinite_loop = "warn" # I want to write the best Rust code so pedantic is enabled. # We should only disable rules globally if they are either false positives, chaotic, or does not make sense. pedantic = { level = "warn", priority = -1 } @@ -57,7 +57,7 @@ pedantic = { level = "warn", priority = -1 } module_name_repetitions = "allow" # All triggers are mostly ignored in our codebase, so this is ignored globally. struct_excessive_bools = "allow" -too_many_lines = "allow" +too_many_lines = "allow" # `#[must_use]` is creating too much noise for this codebase, it does not add much value # except nagging the programmer to add a `#[must_use]` after clippy has been run. # Having `#[must_use]` everywhere also hinders readability. @@ -69,123 +69,123 @@ doc_markdown = "allow" # This rule also confuses newcomers and forces them to add `const` blindlessly without any reason. missing_const_for_fn = "allow" # cargo -cargo = { level = "warn", priority = -1 } +cargo = { level = "warn", priority = -1 } multiple_crate_versions = "allow" -cargo_common_metadata = "allow" # FIXME -doc_lazy_continuation = "allow" # FIXME +cargo_common_metadata = "allow" # FIXME +doc_lazy_continuation = "allow" # FIXME [workspace.dependencies] # publish = true -oxc = { version = "0.27.0", path = "crates/oxc" } -oxc_allocator = { version = "0.27.0", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.27.0", path = "crates/oxc_ast" } -oxc_codegen = { version = "0.27.0", path = "crates/oxc_codegen" } -oxc_diagnostics = { version = "0.27.0", path = "crates/oxc_diagnostics" } -oxc_index = { version = "0.27.0", path = "crates/oxc_index" } -oxc_minifier = { version = "0.27.0", path = "crates/oxc_minifier" } -oxc_mangler = { version = "0.27.0", path = "crates/oxc_mangler" } -oxc_parser = { version = "0.27.0", path = "crates/oxc_parser" } -oxc_semantic = { version = "0.27.0", path = "crates/oxc_semantic" } -oxc_span = { version = "0.27.0", path = "crates/oxc_span" } -oxc_syntax = { version = "0.27.0", path = "crates/oxc_syntax" } -oxc_transformer = { version = "0.27.0", path = "crates/oxc_transformer" } -oxc_sourcemap = { version = "0.27.0", path = "crates/oxc_sourcemap" } -oxc_ast_macros = { version = "0.27.0", path = "crates/oxc_ast_macros" } -oxc_traverse = { version = "0.27.0", path = "crates/oxc_traverse" } -oxc_module_lexer = { version = "0.27.0", path = "crates/oxc_module_lexer" } -oxc_cfg = { version = "0.27.0", path = "crates/oxc_cfg" } +oxc = { version = "0.27.0", path = "crates/oxc" } +oxc_allocator = { version = "0.27.0", path = "crates/oxc_allocator" } +oxc_ast = { version = "0.27.0", path = "crates/oxc_ast" } +oxc_ast_macros = { version = "0.27.0", path = "crates/oxc_ast_macros" } +oxc_cfg = { version = "0.27.0", path = "crates/oxc_cfg" } +oxc_codegen = { version = "0.27.0", path = "crates/oxc_codegen" } +oxc_diagnostics = { version = "0.27.0", path = "crates/oxc_diagnostics" } +oxc_index = { version = "0.27.0", path = "crates/oxc_index" } oxc_isolated_declarations = { version = "0.27.0", path = "crates/oxc_isolated_declarations" } -oxc_regular_expression = { version = "0.27.0", path = "crates/oxc_regular_expression" } -oxc_transform_napi = { version = "0.27.0", path = "napi/transform" } +oxc_mangler = { version = "0.27.0", path = "crates/oxc_mangler" } +oxc_minifier = { version = "0.27.0", path = "crates/oxc_minifier" } +oxc_module_lexer = { version = "0.27.0", path = "crates/oxc_module_lexer" } +oxc_parser = { version = "0.27.0", path = "crates/oxc_parser" } +oxc_regular_expression = { version = "0.27.0", path = "crates/oxc_regular_expression" } +oxc_semantic = { version = "0.27.0", path = "crates/oxc_semantic" } +oxc_sourcemap = { version = "0.27.0", path = "crates/oxc_sourcemap" } +oxc_span = { version = "0.27.0", path = "crates/oxc_span" } +oxc_syntax = { version = "0.27.0", path = "crates/oxc_syntax" } +oxc_transform_napi = { version = "0.27.0", path = "napi/transform" } +oxc_transformer = { version = "0.27.0", path = "crates/oxc_transformer" } +oxc_traverse = { version = "0.27.0", path = "crates/oxc_traverse" } # publish = false -oxc_macros = { path = "crates/oxc_macros" } -oxc_linter = { path = "crates/oxc_linter" } -oxc_prettier = { path = "crates/oxc_prettier" } +oxc_linter = { path = "crates/oxc_linter" } +oxc_macros = { path = "crates/oxc_macros" } +oxc_prettier = { path = "crates/oxc_prettier" } oxc_tasks_common = { path = "tasks/common" } -napi = "3.0.0-alpha.8" +napi = "3.0.0-alpha.8" +napi-build = "2.1.3" napi-derive = "3.0.0-alpha.7" -napi-build = "2.1.3" -allocator-api2 = "0.2.18" -assert-unchecked = "0.1.2" -base64 = "0.22.1" -base64-simd = "0.8" -bitflags = "2.6.0" -bpaf = "0.9.12" -bumpalo = "3.16.0" -cfg-if = "1.0.0" -compact_str = "0.8.0" -console = "0.15.8" -convert_case = "0.6.0" -criterion2 = { version = "1.1.0", default-features = false } -daachorse = { version = "1.0.0" } -dashmap = "6.0.1" -encoding_rs = "0.8.34" -encoding_rs_io = "0.1.7" -env_logger = { version = "0.11.5", default-features = false } -flate2 = "1.0.31" -futures = "0.3.30" -glob = "0.3.1" -globset = "0.4.14" -handlebars = "6.0.0" -humansize = "2.1.3" -ignore = "0.4.22" -indexmap = "2.3.0" -insta = "1.39.0" -itertools = "0.13.0" -jemallocator = "0.5.4" +allocator-api2 = "0.2.18" +assert-unchecked = "0.1.2" +base64 = "0.22.1" +base64-simd = "0.8" +bitflags = "2.6.0" +bpaf = "0.9.12" +bumpalo = "3.16.0" +cfg-if = "1.0.0" +compact_str = "0.8.0" +console = "0.15.8" +convert_case = "0.6.0" +criterion2 = { version = "1.1.0", default-features = false } +daachorse = { version = "1.0.0" } +dashmap = "6.0.1" +encoding_rs = "0.8.34" +encoding_rs_io = "0.1.7" +env_logger = { version = "0.11.5", default-features = false } +flate2 = "1.0.31" +futures = "0.3.30" +glob = "0.3.1" +globset = "0.4.14" +handlebars = "6.0.0" +humansize = "2.1.3" +ignore = "0.4.22" +indexmap = "2.3.0" +insta = "1.39.0" +itertools = "0.13.0" +jemallocator = "0.5.4" json-strip-comments = "1.0.4" -language-tags = "0.3.2" -lazy_static = "1.5.0" -log = "0.4.22" -memchr = "2.7.4" -memoffset = "0.9.1" -miette = { version = "7.2.0", features = ["fancy-no-syscall"] } -mimalloc = "0.1.43" -mime_guess = "2.0.5" -nonmax = "0.5.5" -num-bigint = "0.4.6" -num-traits = "0.2.19" -once_cell = "1.19.0" -owo-colors = "4.0.0" -oxc_resolver = "1.10.2" -oxc-browserslist = "1.0.3" -petgraph = "0.6.5" -phf = "0.11.2" -pico-args = "0.5.0" -prettyplease = "0.2.20" -proc-macro2 = "1.0.86" -project-root = "0.2.2" -quote = "1.0.36" -rayon = "1.10.0" -regex = "1.10.6" -ropey = "1.6.1" -rust-lapper = "1.1.0" -rustc-hash = "2.*" -ryu-js = "1.0.1" -saphyr = "0.0.1" -schemars = "0.8.21" -seq-macro = "0.3.5" -serde = "1.0.206" -serde_json = "1.0.124" -serde-wasm-bindgen = "0.6.5" -simdutf8 = { version = "0.1.4", features = ["aarch64_neon"] } -similar = "2.6.0" -syn = { version = "2.0.74", default-features = false } -tempfile = "3.12.0" -textwrap = "0.16.1" -tokio = "1.39.2" -tower-lsp = "0.20.0" -tracing-subscriber = "0.3.18" -tsify = "0.4.5" -unicode-id-start = "1" # Relaxed version so the user can decide which unicode version to use. -unicode-width = "0.1.13" -ureq = { version = "2.10.1", default-features = false } -url = "2.5.2" -walkdir = "2.5.0" -wasm-bindgen = "0.2.92" +language-tags = "0.3.2" +lazy_static = "1.5.0" +log = "0.4.22" +memchr = "2.7.4" +memoffset = "0.9.1" +miette = { version = "7.2.0", features = ["fancy-no-syscall"] } +mimalloc = "0.1.43" +mime_guess = "2.0.5" +nonmax = "0.5.5" +num-bigint = "0.4.6" +num-traits = "0.2.19" +once_cell = "1.19.0" +owo-colors = "4.0.0" +oxc-browserslist = "1.0.3" +oxc_resolver = "1.10.2" +petgraph = "0.6.5" +phf = "0.11.2" +pico-args = "0.5.0" +prettyplease = "0.2.20" +proc-macro2 = "1.0.86" +project-root = "0.2.2" +quote = "1.0.36" +rayon = "1.10.0" +regex = "1.10.6" +ropey = "1.6.1" +rust-lapper = "1.1.0" +rustc-hash = "2.*" +ryu-js = "1.0.1" +saphyr = "0.0.1" +schemars = "0.8.21" +seq-macro = "0.3.5" +serde = "1.0.206" +serde-wasm-bindgen = "0.6.5" +serde_json = "1.0.124" +simdutf8 = { version = "0.1.4", features = ["aarch64_neon"] } +similar = "2.6.0" +syn = { version = "2.0.74", default-features = false } +tempfile = "3.12.0" +textwrap = "0.16.1" +tokio = "1.39.2" +tower-lsp = "0.20.0" +tracing-subscriber = "0.3.18" +tsify = "0.4.5" +unicode-id-start = "1" # Relaxed version so the user can decide which unicode version to use. +unicode-width = "0.1.13" +ureq = { version = "2.10.1", default-features = false } +url = "2.5.2" +walkdir = "2.5.0" +wasm-bindgen = "0.2.92" [workspace.metadata.cargo-shear] ignored = ["napi", "oxc_transform_napi", "prettyplease"] @@ -197,11 +197,11 @@ debug = false [profile.dev.package] # Compile macros with some optimizations to make consuming crates build faster -oxc_macros.opt-level = 1 +oxc_macros.opt-level = 1 oxc_ast_macros.opt-level = 1 # Compile insta and its dependencies in release mode for faster snapshot tests # See: https://insta.rs/docs/quickstart/#optional-faster-runs -insta.opt-level = 3 +insta.opt-level = 3 similar.opt-level = 3 [profile.release.package.oxc_wasm] @@ -210,19 +210,19 @@ opt-level = 'z' [profile.release] # Configurations explicitly listed here for clarity. # Using the best options for performance. -opt-level = 3 -lto = "fat" +opt-level = 3 +lto = "fat" codegen-units = 1 -strip = "symbols" # Set to `false` for debug information -debug = false # Set to `true` for debug information -panic = "abort" # Let it crash and force ourselves to write safe Rust +strip = "symbols" # Set to `false` for debug information +debug = false # Set to `true` for debug information +panic = "abort" # Let it crash and force ourselves to write safe Rust # Profile for `cargo coverage` [profile.coverage] -inherits = "release" -opt-level = 2 # Compile faster -codegen-units = 256 # Compile faster -lto = "thin" # Faster compile time with thin LTO +inherits = "release" +opt-level = 2 # Compile faster +codegen-units = 256 # Compile faster +lto = "thin" # Faster compile time with thin LTO debug-assertions = true # Make sure `debug_assert!`s pass -overflow-checks = true # Catch arithmetic overflow errors -incremental = true +overflow-checks = true # Catch arithmetic overflow errors +incremental = true diff --git a/apps/oxlint/Cargo.toml b/apps/oxlint/Cargo.toml index 9018439d8dbaed..dbdc3dc0664f2d 100644 --- a/apps/oxlint/Cargo.toml +++ b/apps/oxlint/Cargo.toml @@ -1,16 +1,16 @@ [package] -name = "oxlint" -version = "0.9.3" -publish = false -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxlint" +version = "0.9.3" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +keywords.workspace = true +license.workspace = true +publish = false +repository.workspace = true rust-version.workspace = true -categories.workspace = true +description.workspace = true [lints] workspace = true @@ -19,9 +19,9 @@ workspace = true doctest = false [[bin]] -name = "oxlint" -path = "src/main.rs" -test = false +name = "oxlint" +path = "src/main.rs" +test = false doctest = false [target.'cfg(all(not(target_env = "msvc"), not(target_os = "windows")))'.dependencies] @@ -32,17 +32,17 @@ mimalloc = { workspace = true, optional = true } [dependencies] oxc_diagnostics = { workspace = true } -oxc_linter = { workspace = true } -oxc_span = { workspace = true } - -glob = { workspace = true } -ignore = { workspace = true, features = ["simd-accel"] } -miette = { workspace = true } -tempfile = { workspace = true } -rayon = { workspace = true } -bpaf = { workspace = true, features = ["autocomplete", "bright-color", "derive"] } +oxc_linter = { workspace = true } +oxc_span = { workspace = true } + +bpaf = { workspace = true, features = ["autocomplete", "bright-color", "derive"] } +glob = { workspace = true } +ignore = { workspace = true, features = ["simd-accel"] } +miette = { workspace = true } +rayon = { workspace = true } +tempfile = { workspace = true } tracing-subscriber = { workspace = true, features = [] } # Omit the `regex` feature [features] -default = [] +default = [] allocator = ["dep:jemallocator", "dep:mimalloc"] diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 432549cfd82c4e..9d16fc56d18d21 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,60 +1,60 @@ [package] -name = "oxc" -version = "0.27.0" -publish = true -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/src"] +keywords.workspace = true +license.workspace = true +publish = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/src"] +description.workspace = true [lints] workspace = true [lib] -test = false +test = false doctest = false [[example]] -name = "compiler" -path = "examples/compiler.rs" +name = "compiler" +path = "examples/compiler.rs" required-features = ["full"] [dependencies] -oxc_allocator = { workspace = true } -oxc_ast = { workspace = true } -oxc_diagnostics = { workspace = true } -oxc_index = { workspace = true } -oxc_parser = { workspace = true } -oxc_span = { workspace = true } -oxc_syntax = { workspace = true } -oxc_semantic = { workspace = true, optional = true } -oxc_transformer = { workspace = true, optional = true } -oxc_minifier = { workspace = true, optional = true } -oxc_mangler = { workspace = true, optional = true } -oxc_codegen = { workspace = true, optional = true } -oxc_sourcemap = { workspace = true, optional = true } +oxc_allocator = { workspace = true } +oxc_ast = { workspace = true } +oxc_cfg = { workspace = true, optional = true } +oxc_codegen = { workspace = true, optional = true } +oxc_diagnostics = { workspace = true } +oxc_index = { workspace = true } oxc_isolated_declarations = { workspace = true, optional = true } -oxc_cfg = { workspace = true, optional = true } +oxc_mangler = { workspace = true, optional = true } +oxc_minifier = { workspace = true, optional = true } +oxc_parser = { workspace = true } +oxc_semantic = { workspace = true, optional = true } +oxc_sourcemap = { workspace = true, optional = true } +oxc_span = { workspace = true } +oxc_syntax = { workspace = true } +oxc_transformer = { workspace = true, optional = true } [features] full = ["codegen", "mangler", "minifier", "semantic", "transformer"] -semantic = ["oxc_semantic"] +semantic = ["oxc_semantic"] transformer = ["oxc_transformer"] -minifier = ["oxc_mangler", "oxc_minifier"] -codegen = ["oxc_codegen"] -mangler = ["oxc_mangler"] -cfg = ["oxc_cfg"] +minifier = ["oxc_mangler", "oxc_minifier"] +codegen = ["oxc_codegen"] +mangler = ["oxc_mangler"] +cfg = ["oxc_cfg"] serialize = ["oxc_ast/serialize", "oxc_semantic?/serialize", "oxc_span/serialize", "oxc_syntax/serialize"] -sourcemap = ["oxc_sourcemap"] +sourcemap = ["oxc_sourcemap"] sourcemap_concurrent = ["oxc_sourcemap/concurrent", "sourcemap"] isolated_declarations = ["oxc_isolated_declarations"] diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index e3ad2ea4ff5763..54921daf201023 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,16 +1,16 @@ [package] -name = "oxc_allocator" -version = "0.27.0" -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_allocator" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/src"] +keywords.workspace = true +license.workspace = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/src"] +description.workspace = true [lints] workspace = true @@ -19,13 +19,13 @@ workspace = true doctest = false [dependencies] -bumpalo = { workspace = true, features = ["allocator-api2", "collections"] } allocator-api2 = { workspace = true } +bumpalo = { workspace = true, features = ["allocator-api2", "collections"] } serde = { workspace = true, optional = true } [dev-dependencies] -serde = { workspace = true } +serde = { workspace = true } serde_json = { workspace = true } [features] diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index f0318135f5668f..9fa440e9fa6323 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,16 +1,16 @@ [package] -name = "oxc_ast" -version = "0.27.0" -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_ast" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/src"] +keywords.workspace = true +license.workspace = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/src"] +description.workspace = true [lints] workspace = true @@ -19,19 +19,19 @@ workspace = true doctest = false [dependencies] -oxc_allocator = { workspace = true } -oxc_ast_macros = { workspace = true } -oxc_span = { workspace = true } -oxc_syntax = { workspace = true } +oxc_allocator = { workspace = true } +oxc_ast_macros = { workspace = true } oxc_regular_expression = { workspace = true } +oxc_span = { workspace = true } +oxc_syntax = { workspace = true } -bitflags = { workspace = true } +bitflags = { workspace = true } num-bigint = { workspace = true } -serde = { workspace = true, features = ["derive"], optional = true } +serde = { workspace = true, features = ["derive"], optional = true } serde_json = { workspace = true, optional = true } -tsify = { workspace = true, optional = true } +tsify = { workspace = true, optional = true } wasm-bindgen = { workspace = true, optional = true } [features] diff --git a/crates/oxc_ast_macros/Cargo.toml b/crates/oxc_ast_macros/Cargo.toml index d4bbda6db46134..bbf24a61400f48 100644 --- a/crates/oxc_ast_macros/Cargo.toml +++ b/crates/oxc_ast_macros/Cargo.toml @@ -1,26 +1,26 @@ [package] -name = "oxc_ast_macros" -version = "0.27.0" -publish = true -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_ast_macros" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/src"] +keywords.workspace = true +license.workspace = true +publish = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/src"] +description.workspace = true [lints] workspace = true [lib] proc-macro = true -doctest = false +doctest = false [dependencies] -quote = { workspace = true } -syn = { workspace = true, features = ["full", "parsing", "printing", "proc-macro"] } proc-macro2 = { workspace = true } +quote = { workspace = true } +syn = { workspace = true, features = ["full", "parsing", "printing", "proc-macro"] } diff --git a/crates/oxc_cfg/Cargo.toml b/crates/oxc_cfg/Cargo.toml index 8a1feabd857fe8..b4b53247552e13 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,29 +1,29 @@ [package] -name = "oxc_cfg" -version = "0.27.0" -publish = true -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_cfg" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/src"] +keywords.workspace = true +license.workspace = true +publish = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/src"] +description.workspace = true [lints] workspace = true [lib] -test = false +test = false doctest = false [dependencies] oxc_syntax = { workspace = true } -itertools = { workspace = true } -bitflags = { workspace = true } -petgraph = { workspace = true } +bitflags = { workspace = true } +itertools = { workspace = true } +petgraph = { workspace = true } rustc-hash = { workspace = true } diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index d1560ce1f0b84a..e5543480fe42b6 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "oxc_codegen" -version = "0.27.0" -publish = true -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_codegen" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/examples", "/src"] +keywords.workspace = true +license.workspace = true +publish = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/examples", "/src"] +description.workspace = true [lints] workspace = true @@ -20,22 +20,22 @@ workspace = true doctest = false [dependencies] -oxc_ast = { workspace = true } -oxc_span = { workspace = true } oxc_allocator = { workspace = true } -oxc_syntax = { workspace = true, features = ["to_js_string"] } +oxc_ast = { workspace = true } +oxc_index = { workspace = true } +oxc_mangler = { workspace = true } oxc_sourcemap = { workspace = true } -oxc_mangler = { workspace = true } -oxc_index = { workspace = true } +oxc_span = { workspace = true } +oxc_syntax = { workspace = true, features = ["to_js_string"] } -bitflags = { workspace = true } -nonmax = { workspace = true } -once_cell = { workspace = true } -daachorse = { workspace = true } +bitflags = { workspace = true } +daachorse = { workspace = true } +nonmax = { workspace = true } +once_cell = { workspace = true } rustc-hash = { workspace = true } [dev-dependencies] +base64 = { workspace = true } +insta = { workspace = true } oxc_parser = { workspace = true } -base64 = { workspace = true } -pico-args = { workspace = true } -insta = { workspace = true } +pico-args = { workspace = true } diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index c536dcee2684fd..4e09b40922c9f0 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,16 +1,16 @@ [package] -name = "oxc_diagnostics" -version = "0.27.0" -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_diagnostics" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/src"] +keywords.workspace = true +license.workspace = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/src"] +description.workspace = true [lints] workspace = true @@ -21,6 +21,6 @@ doctest = false [dependencies] miette = { workspace = true } +owo-colors = { workspace = true } +textwrap = { workspace = true } unicode-width = { workspace = true } -owo-colors = { workspace = true } -textwrap = { workspace = true } diff --git a/crates/oxc_index/Cargo.toml b/crates/oxc_index/Cargo.toml index e0056563363eb7..fdd2a6258d2e57 100644 --- a/crates/oxc_index/Cargo.toml +++ b/crates/oxc_index/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "oxc_index" -version = "0.27.0" -publish = true -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_index" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/src"] +keywords.workspace = true +license.workspace = true +publish = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/src"] +description.workspace = true [lints] workspace = true @@ -20,9 +20,9 @@ workspace = true doctest = false [dependencies] -serde = { workspace = true, optional = true } rayon = { workspace = true, optional = true } +serde = { workspace = true, optional = true } [features] serialize = ["dep:serde"] -rayon = ["dep:rayon"] +rayon = ["dep:rayon"] diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index d3fa88beaa6f3b..dc9159da6ee9e7 100644 --- a/crates/oxc_isolated_declarations/Cargo.toml +++ b/crates/oxc_isolated_declarations/Cargo.toml @@ -1,35 +1,35 @@ [package] -name = "oxc_isolated_declarations" -version = "0.27.0" -publish = true -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_isolated_declarations" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/examples", "/src"] +keywords.workspace = true +license.workspace = true +publish = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/examples", "/src"] +description.workspace = true [lints] workspace = true [lib] doctest = false -test = false +test = false [dependencies] -oxc_ast = { workspace = true } -oxc_span = { workspace = true } -oxc_allocator = { workspace = true } +oxc_allocator = { workspace = true } +oxc_ast = { workspace = true } oxc_diagnostics = { workspace = true } -oxc_syntax = { workspace = true, features = ["to_js_string"] } +oxc_span = { workspace = true } +oxc_syntax = { workspace = true, features = ["to_js_string"] } rustc-hash = { workspace = true } [dev-dependencies] -oxc_parser = { workspace = true } +insta = { workspace = true, features = ["glob"] } oxc_codegen = { workspace = true } -insta = { workspace = true, features = ["glob"] } +oxc_parser = { workspace = true } diff --git a/crates/oxc_language_server/Cargo.toml b/crates/oxc_language_server/Cargo.toml index d849f95da70924..2761994970e15a 100644 --- a/crates/oxc_language_server/Cargo.toml +++ b/crates/oxc_language_server/Cargo.toml @@ -1,41 +1,41 @@ [package] -name = "oxc_language_server" -version = "0.0.1" -publish = false -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_language_server" +version = "0.0.1" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/src"] +keywords.workspace = true +license.workspace = true +publish = false +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/src"] +description.workspace = true [lints] workspace = true [[bin]] -name = "oxc_language_server" -test = false +name = "oxc_language_server" +test = false doctest = false [dependencies] -oxc_allocator = { workspace = true } +dashmap = { workspace = true } +env_logger = { workspace = true, features = ["humantime"] } +futures = { workspace = true } +globset = { workspace = true } +ignore = { workspace = true, features = ["simd-accel"] } +log = { workspace = true } +oxc_allocator = { workspace = true } oxc_diagnostics = { workspace = true } -oxc_linter = { workspace = true } -oxc_parser = { workspace = true } -oxc_semantic = { workspace = true } -oxc_span = { workspace = true } -dashmap = { workspace = true } -futures = { workspace = true } -ignore = { workspace = true, features = ["simd-accel"] } -ropey = { workspace = true } -tokio = { workspace = true, features = ["full"] } -tower-lsp = { workspace = true, features = ["proposed"] } -serde = { workspace = true, features = ["derive"] } -serde_json = { workspace = true } -log = { workspace = true } -globset = { workspace = true } -env_logger = { workspace = true, features = ["humantime"] } +oxc_linter = { workspace = true } +oxc_parser = { workspace = true } +oxc_semantic = { workspace = true } +oxc_span = { workspace = true } +ropey = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +tokio = { workspace = true, features = ["full"] } +tower-lsp = { workspace = true, features = ["proposed"] } diff --git a/crates/oxc_linter/Cargo.toml b/crates/oxc_linter/Cargo.toml index 8d050018f3ed21..e1803edc7030b2 100644 --- a/crates/oxc_linter/Cargo.toml +++ b/crates/oxc_linter/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "oxc_linter" -version = "0.9.3" -publish = false -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_linter" +version = "0.9.3" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/examples", "/src"] +keywords.workspace = true +license.workspace = true +publish = false +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/examples", "/src"] +description.workspace = true [lints] workspace = true @@ -20,43 +20,43 @@ workspace = true doctest = false [dependencies] -oxc_allocator = { workspace = true } -oxc_parser = { workspace = true } -oxc_span = { workspace = true, features = ["schemars", "serialize"] } -oxc_ast = { workspace = true } -oxc_cfg = { workspace = true } -oxc_diagnostics = { workspace = true } -oxc_index = { workspace = true } -oxc_macros = { workspace = true } -oxc_semantic = { workspace = true } -oxc_syntax = { workspace = true } -oxc_codegen = { workspace = true } -oxc_resolver = { workspace = true } +oxc_allocator = { workspace = true } +oxc_ast = { workspace = true } +oxc_cfg = { workspace = true } +oxc_codegen = { workspace = true } +oxc_diagnostics = { workspace = true } +oxc_index = { workspace = true } +oxc_macros = { workspace = true } +oxc_parser = { workspace = true } oxc_regular_expression = { workspace = true } +oxc_resolver = { workspace = true } +oxc_semantic = { workspace = true } +oxc_span = { workspace = true, features = ["schemars", "serialize"] } +oxc_syntax = { workspace = true } -rayon = { workspace = true } -bitflags = { workspace = true } -lazy_static = { workspace = true } -serde_json = { workspace = true } -serde = { workspace = true, features = ["derive"] } -regex = { workspace = true } -rustc-hash = { workspace = true } -phf = { workspace = true, features = ["macros"] } -itertools = { workspace = true } -dashmap = { workspace = true } -convert_case = { workspace = true } -language-tags = { workspace = true } -mime_guess = { workspace = true } -url = { workspace = true } -rust-lapper = { workspace = true } -once_cell = { workspace = true } -memchr = { workspace = true } +bitflags = { workspace = true } +convert_case = { workspace = true } +dashmap = { workspace = true } +globset = { workspace = true } +itertools = { workspace = true } json-strip-comments = { workspace = true } -schemars = { workspace = true, features = ["indexmap2"] } -globset = { workspace = true } -simdutf8 = { workspace = true } +language-tags = { workspace = true } +lazy_static = { workspace = true } +memchr = { workspace = true } +mime_guess = { workspace = true } +once_cell = { workspace = true } +phf = { workspace = true, features = ["macros"] } +rayon = { workspace = true } +regex = { workspace = true } +rust-lapper = { workspace = true } +rustc-hash = { workspace = true } +schemars = { workspace = true, features = ["indexmap2"] } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +simdutf8 = { workspace = true } +url = { workspace = true } [dev-dependencies] -insta = { workspace = true } +insta = { workspace = true } +markdown = { version = "1.0.0-alpha.19" } project-root = { workspace = true } -markdown = { version = "1.0.0-alpha.19" } diff --git a/crates/oxc_macros/Cargo.toml b/crates/oxc_macros/Cargo.toml index 8bf4a58a6b2441..ac825fcbc55771 100644 --- a/crates/oxc_macros/Cargo.toml +++ b/crates/oxc_macros/Cargo.toml @@ -1,29 +1,29 @@ [package] -name = "oxc_macros" -version = "0.0.0" -publish = false -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_macros" +version = "0.0.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/src"] +keywords.workspace = true +license.workspace = true +publish = false +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/src"] +description.workspace = true [lints] workspace = true [lib] proc-macro = true -test = false -doctest = false +test = false +doctest = false [dependencies] -syn = { workspace = true, features = ["derive", "parsing", "printing", "proc-macro"] } -quote = { workspace = true } -proc-macro2 = { workspace = true } -itertools = { workspace = true } convert_case = { workspace = true } +itertools = { workspace = true } +proc-macro2 = { workspace = true } +quote = { workspace = true } +syn = { workspace = true, features = ["derive", "parsing", "printing", "proc-macro"] } diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index 57b4ced6d90b93..d872fc7d1ba9f4 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,28 +1,28 @@ [package] -name = "oxc_mangler" -version = "0.27.0" -publish = true -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_mangler" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/examples", "/src"] +keywords.workspace = true +license.workspace = true +publish = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/examples", "/src"] +description.workspace = true [lints] workspace = true [lib] -test = false +test = false doctest = false [dependencies] -oxc_span = { workspace = true } -oxc_ast = { workspace = true } +itertools = { workspace = true } +oxc_ast = { workspace = true } +oxc_index = { workspace = true } oxc_semantic = { workspace = true } -oxc_index = { workspace = true } -itertools = { workspace = true } +oxc_span = { workspace = true } diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index a6ddbb7b502ea5..b493aef8546ae2 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,36 +1,36 @@ [package] -name = "oxc_minifier" -version = "0.27.0" -publish = true -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_minifier" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/examples", "/src"] +keywords.workspace = true +license.workspace = true +publish = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/examples", "/src"] +description.workspace = true [lints] workspace = true [lib] -test = false +test = false doctest = false [dependencies] -oxc_allocator = { workspace = true } -oxc_span = { workspace = true } -oxc_ast = { workspace = true } -oxc_semantic = { workspace = true } -oxc_syntax = { workspace = true } -oxc_parser = { workspace = true } +oxc_allocator = { workspace = true } +oxc_ast = { workspace = true } +oxc_codegen = { workspace = true } oxc_diagnostics = { workspace = true } -oxc_codegen = { workspace = true } -oxc_mangler = { workspace = true } -oxc_traverse = { workspace = true } +oxc_mangler = { workspace = true } +oxc_parser = { workspace = true } +oxc_semantic = { workspace = true } +oxc_span = { workspace = true } +oxc_syntax = { workspace = true } +oxc_traverse = { workspace = true } num-bigint = { workspace = true } num-traits = { workspace = true } @@ -38,5 +38,5 @@ num-traits = { workspace = true } [dev-dependencies] oxc_parser = { workspace = true } -insta = { workspace = true } +insta = { workspace = true } pico-args = { workspace = true } diff --git a/crates/oxc_module_lexer/Cargo.toml b/crates/oxc_module_lexer/Cargo.toml index 2fd100f5bdfa60..c943c4ca71c84f 100644 --- a/crates/oxc_module_lexer/Cargo.toml +++ b/crates/oxc_module_lexer/Cargo.toml @@ -1,29 +1,29 @@ [package] -name = "oxc_module_lexer" -version = "0.27.0" -publish = true -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_module_lexer" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/examples", "/src"] +keywords.workspace = true +license.workspace = true +publish = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/examples", "/src"] +description.workspace = true [lints] workspace = true [lib] -test = false +test = false doctest = false [dependencies] -oxc_ast = { workspace = true } +oxc_ast = { workspace = true } oxc_span = { workspace = true } [dev-dependencies] oxc_allocator = { workspace = true } -oxc_parser = { workspace = true } +oxc_parser = { workspace = true } diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index 9e0d80164c1c0a..4267e20281706f 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,16 +1,16 @@ [package] -name = "oxc_parser" -version = "0.27.0" -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_parser" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/examples", "/src"] +keywords.workspace = true +license.workspace = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/examples", "/src"] +description.workspace = true [lints] workspace = true @@ -19,24 +19,24 @@ workspace = true doctest = false [dependencies] -oxc_allocator = { workspace = true } -oxc_span = { workspace = true } -oxc_ast = { workspace = true } -oxc_syntax = { workspace = true } -oxc_diagnostics = { workspace = true } +oxc_allocator = { workspace = true } +oxc_ast = { workspace = true } +oxc_diagnostics = { workspace = true } oxc_regular_expression = { workspace = true } +oxc_span = { workspace = true } +oxc_syntax = { workspace = true } assert-unchecked = { workspace = true } -bitflags = { workspace = true } -num-bigint = { workspace = true } -num-traits = { workspace = true } -rustc-hash = { workspace = true } -seq-macro = { workspace = true } +bitflags = { workspace = true } +num-bigint = { workspace = true } +num-traits = { workspace = true } +rustc-hash = { workspace = true } +seq-macro = { workspace = true } memchr = { workspace = true } [dev-dependencies] -oxc_ast = { workspace = true, features = ["serialize"] } +oxc_ast = { workspace = true, features = ["serialize"] } serde_json = { workspace = true } [features] diff --git a/crates/oxc_prettier/Cargo.toml b/crates/oxc_prettier/Cargo.toml index 3ee51f982585f1..adadafa121e1cc 100644 --- a/crates/oxc_prettier/Cargo.toml +++ b/crates/oxc_prettier/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "oxc_prettier" -version = "0.0.0" -publish = false -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_prettier" +version = "0.0.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/examples", "/src"] +keywords.workspace = true +license.workspace = true +publish = false +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/examples", "/src"] +description.workspace = true [lints] workspace = true @@ -21,13 +21,13 @@ doctest = false [dependencies] oxc_allocator = { workspace = true } -oxc_ast = { workspace = true } -oxc_syntax = { workspace = true } -oxc_span = { workspace = true } +oxc_ast = { workspace = true } +oxc_span = { workspace = true } +oxc_syntax = { workspace = true } bitflags = { workspace = true } [dev-dependencies] oxc_parser = { workspace = true } -oxc_span = { workspace = true } -pico-args = { workspace = true } +oxc_span = { workspace = true } +pico-args = { workspace = true } diff --git a/crates/oxc_regular_expression/Cargo.toml b/crates/oxc_regular_expression/Cargo.toml index 3c979ab601bb09..4e471e884b8a69 100644 --- a/crates/oxc_regular_expression/Cargo.toml +++ b/crates/oxc_regular_expression/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "oxc_regular_expression" -version = "0.27.0" -publish = true -authors.workspace = true -categories.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_regular_expression" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/examples", "/src"] +keywords.workspace = true +license.workspace = true +publish = true +repository.workspace = true rust-version.workspace = true -include = ["/examples", "/src"] +description.workspace = true [lints] workspace = true @@ -20,21 +20,21 @@ workspace = true doctest = false [dependencies] -oxc_allocator = { workspace = true } +oxc_allocator = { workspace = true } +oxc_ast_macros = { workspace = true } oxc_diagnostics = { workspace = true } -oxc_span = { workspace = true } -oxc_ast_macros = { workspace = true } +oxc_span = { workspace = true } -phf = { workspace = true, features = ["macros"] } -rustc-hash = { workspace = true } +phf = { workspace = true, features = ["macros"] } +rustc-hash = { workspace = true } +serde = { workspace = true, features = ["derive"], optional = true } unicode-id-start = { workspace = true } -serde = { workspace = true, features = ["derive"], optional = true } -tsify = { workspace = true, optional = true } +tsify = { workspace = true, optional = true } wasm-bindgen = { workspace = true, optional = true } [features] -default = [] +default = [] serialize = ["dep:serde", "dep:tsify", "dep:wasm-bindgen", "oxc_allocator/serialize", "oxc_span/serialize"] [package.metadata.cargo-shear] diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 67486f82dec792..368290bf802a08 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,16 +1,16 @@ [package] -name = "oxc_semantic" -version = "0.27.0" -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_semantic" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/examples", "/src"] +keywords.workspace = true +license.workspace = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/examples", "/src"] +description.workspace = true [lints] workspace = true @@ -19,33 +19,33 @@ workspace = true doctest = false [dependencies] -oxc_span = { workspace = true } -oxc_ast = { workspace = true } -oxc_syntax = { workspace = true } -oxc_cfg = { workspace = true } +oxc_allocator = { workspace = true } +oxc_ast = { workspace = true } +oxc_cfg = { workspace = true } oxc_diagnostics = { workspace = true } -oxc_index = { workspace = true } -oxc_allocator = { workspace = true } +oxc_index = { workspace = true } +oxc_span = { workspace = true } +oxc_syntax = { workspace = true } assert-unchecked = { workspace = true } -indexmap = { workspace = true } -phf = { workspace = true, features = ["macros"] } -rustc-hash = { workspace = true } -serde = { workspace = true, features = ["derive"], optional = true } -itertools = { workspace = true } +indexmap = { workspace = true } +itertools = { workspace = true } +phf = { workspace = true, features = ["macros"] } +rustc-hash = { workspace = true } +serde = { workspace = true, features = ["derive"], optional = true } -tsify = { workspace = true, optional = true } +tsify = { workspace = true, optional = true } wasm-bindgen = { workspace = true, optional = true } [dev-dependencies] oxc_parser = { workspace = true } -indexmap = { workspace = true } -insta = { workspace = true, features = ["glob"] } -phf = { workspace = true, features = ["macros"] } +indexmap = { workspace = true } +insta = { workspace = true, features = ["glob"] } +phf = { workspace = true, features = ["macros"] } rustc-hash = { workspace = true } serde_json = { workspace = true } [features] -default = [] +default = [] serialize = ["dep:serde", "dep:tsify", "dep:wasm-bindgen", "oxc_span/serialize", "oxc_syntax/serialize"] diff --git a/crates/oxc_sourcemap/Cargo.toml b/crates/oxc_sourcemap/Cargo.toml index 0bebe7b4d5c524..394f24b1e16e01 100644 --- a/crates/oxc_sourcemap/Cargo.toml +++ b/crates/oxc_sourcemap/Cargo.toml @@ -1,16 +1,16 @@ [package] -name = "oxc_sourcemap" -version = "0.27.0" -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_sourcemap" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/src"] +keywords.workspace = true +license.workspace = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/src"] +description.workspace = true [lints] workspace = true @@ -19,14 +19,14 @@ workspace = true doctest = false [dependencies] -rustc-hash = { workspace = true } -serde = { workspace = true, features = ["derive"] } -serde_json = { workspace = true } base64-simd = { workspace = true } -cfg-if = { workspace = true } +cfg-if = { workspace = true } +rustc-hash = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } rayon = { workspace = true, optional = true } [features] -default = [] +default = [] concurrent = ["dep:rayon"] diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 27a77cbec77197..30ddf54a1ca7ee 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "oxc_span" -version = "0.27.0" -publish = true -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_span" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/src"] +keywords.workspace = true +license.workspace = true +publish = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/src"] +description.workspace = true [lints] workspace = true @@ -20,18 +20,18 @@ workspace = true doctest = false [dependencies] -oxc_allocator = { workspace = true } +oxc_allocator = { workspace = true } oxc_ast_macros = { workspace = true } -miette = { workspace = true } compact_str = { workspace = true } +miette = { workspace = true } -tsify = { workspace = true, optional = true } +schemars = { workspace = true, optional = true } +serde = { workspace = true, features = ["derive"], optional = true } +tsify = { workspace = true, optional = true } wasm-bindgen = { workspace = true, optional = true } -serde = { workspace = true, features = ["derive"], optional = true } -schemars = { workspace = true, optional = true } [features] -default = [] +default = [] serialize = ["compact_str/serde", "dep:serde", "dep:tsify", "dep:wasm-bindgen"] -schemars = ["dep:schemars"] +schemars = ["dep:schemars"] diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 60ca7bd61824d8..be35138f4e2f03 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "oxc_syntax" -version = "0.27.0" -publish = true -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_syntax" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/src"] +keywords.workspace = true +license.workspace = true +publish = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/src"] +description.workspace = true [lints] workspace = true @@ -20,28 +20,28 @@ workspace = true doctest = false [dependencies] -oxc_index = { workspace = true } -oxc_span = { workspace = true } +oxc_allocator = { workspace = true } oxc_ast_macros = { workspace = true } -oxc_allocator = { workspace = true } +oxc_index = { workspace = true } +oxc_span = { workspace = true } assert-unchecked = { workspace = true } +bitflags = { workspace = true } +dashmap = { workspace = true } +nonmax = { workspace = true } +phf = { workspace = true, features = ["macros"] } +rustc-hash = { workspace = true } unicode-id-start = { workspace = true } -bitflags = { workspace = true } -rustc-hash = { workspace = true } -dashmap = { workspace = true } -phf = { workspace = true, features = ["macros"] } -nonmax = { workspace = true } -ryu-js = { workspace = true, optional = true } -serde = { workspace = true, features = ["derive"], optional = true } -tsify = { workspace = true, optional = true } +ryu-js = { workspace = true, optional = true } +serde = { workspace = true, features = ["derive"], optional = true } +tsify = { workspace = true, optional = true } wasm-bindgen = { workspace = true, optional = true } [features] -default = [] +default = [] to_js_string = ["dep:ryu-js"] -serialize = ["bitflags/serde", "dep:serde", "dep:tsify", "dep:wasm-bindgen", "oxc_index/serialize"] +serialize = ["bitflags/serde", "dep:serde", "dep:tsify", "dep:wasm-bindgen", "oxc_index/serialize"] [package.metadata.cargo-shear] # We use `oxc_ast_macros::CloneIn` which expands to use `oxc_allocator`. diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index 21b96c16aef2a1..6f705179e89c9d 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,48 +1,48 @@ [package] -name = "oxc_transformer" -version = "0.27.0" -publish = true -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_transformer" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/examples", "/src"] +keywords.workspace = true +license.workspace = true +publish = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/examples", "/src"] +description.workspace = true [lints] workspace = true [lib] -test = false +test = false doctest = false [dependencies] -oxc_ast = { workspace = true } -oxc_span = { workspace = true } -oxc_allocator = { workspace = true } -oxc_diagnostics = { workspace = true } -oxc_syntax = { workspace = true, features = ["to_js_string"] } -oxc_traverse = { workspace = true } -oxc_semantic = { workspace = true } +oxc_allocator = { workspace = true } +oxc_ast = { workspace = true } +oxc_diagnostics = { workspace = true } oxc_regular_expression = { workspace = true } +oxc_semantic = { workspace = true } +oxc_span = { workspace = true } +oxc_syntax = { workspace = true, features = ["to_js_string"] } +oxc_traverse = { workspace = true } -dashmap = { workspace = true } -indexmap = { workspace = true } -serde = { workspace = true, features = ["derive"] } -serde_json = { workspace = true } -ropey = { workspace = true } -rustc-hash = { workspace = true } +dashmap = { workspace = true } +indexmap = { workspace = true } oxc-browserslist = { workspace = true } +ropey = { workspace = true } +rustc-hash = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } [dev-dependencies] -oxc_parser = { workspace = true } oxc_codegen = { workspace = true } -pico-args = { workspace = true } +oxc_parser = { workspace = true } +pico-args = { workspace = true } [features] default = [] -wasm = ["oxc-browserslist/wasm_bindgen"] +wasm = ["oxc-browserslist/wasm_bindgen"] diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index 22239019991e21..ff55057c989fa5 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "oxc_traverse" -version = "0.27.0" -publish = true -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_traverse" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +include = ["/src"] +keywords.workspace = true +license.workspace = true +publish = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true -include = ["/src"] +description.workspace = true [lints] workspace = true @@ -24,10 +24,10 @@ doctest = true [dependencies] oxc_allocator = { workspace = true } -oxc_ast = { workspace = true } -oxc_semantic = { workspace = true } -oxc_span = { workspace = true } -oxc_syntax = { workspace = true } +oxc_ast = { workspace = true } +oxc_semantic = { workspace = true } +oxc_span = { workspace = true } +oxc_syntax = { workspace = true } compact_str = { workspace = true } -memoffset = { workspace = true } +memoffset = { workspace = true } diff --git a/crates/oxc_wasm/Cargo.toml b/crates/oxc_wasm/Cargo.toml index 36aab8377e88ec..b5493828bd6dd7 100644 --- a/crates/oxc_wasm/Cargo.toml +++ b/crates/oxc_wasm/Cargo.toml @@ -1,32 +1,32 @@ [package] -name = "oxc_wasm" -version = "0.0.0" -publish = false -authors.workspace = true -edition.workspace = true -keywords.workspace = true -license.workspace = true +name = "oxc_wasm" +version = "0.0.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +include = ["/src"] +keywords.workspace = true +license.workspace = true +publish = false rust-version.workspace = true -categories.workspace = true -include = ["/src"] [lints] workspace = true [lib] crate-type = ["cdylib", "rlib"] -test = false -doctest = false +test = false +doctest = false [dependencies] oxc = { workspace = true, features = ["codegen", "minifier", "semantic", "serialize", "transformer", "wasm"] } -oxc_index = { workspace = true } -oxc_linter = { workspace = true } +oxc_index = { workspace = true } +oxc_linter = { workspace = true } oxc_prettier = { workspace = true } -serde = { workspace = true } +serde = { workspace = true } -wasm-bindgen = { workspace = true } -serde-wasm-bindgen = { workspace = true } -tsify = { workspace = true } console_error_panic_hook = "0.1.7" +serde-wasm-bindgen = { workspace = true } +tsify = { workspace = true } +wasm-bindgen = { workspace = true } diff --git a/deny.toml b/deny.toml index fef034b4f1901c..f11a9eaa53bd1e 100644 --- a/deny.toml +++ b/deny.toml @@ -22,7 +22,9 @@ yanked = "warn" # A list of advisory IDs to ignore. Note that ignored advisories will still # output a note when they are encountered. ignore = [ - #"RUSTSEC-0000-0000", + + + # "RUSTSEC-0000-0000", ] # Threshold for security vulnerabilities, any vulnerability with a CVSS score # lower than the range specified will be ignored. Note that ignored advisories @@ -32,13 +34,13 @@ ignore = [ # * Medium - CVSS Score 4.0 - 6.9 # * High - CVSS Score 7.0 - 8.9 # * Critical - CVSS Score 9.0 - 10.0 -#severity-threshold = +# severity-threshold = # If this is true, then cargo deny will use the git executable to fetch advisory database. # If this is false, then it uses a built-in git library. # Setting this to true can be helpful if you have special authentication requirements that cargo-deny does not support. # See Git Authentication for more information about setting up git authentication. -#git-fetch-with-cli = true +# git-fetch-with-cli = true # This section is considered when running `cargo deny check licenses` # More documentation for the licenses section can be found here: @@ -55,7 +57,7 @@ allow = [ "MPL-2.0", "OpenSSL", "Unicode-DFS-2016", - #"Apache-2.0 WITH LLVM-exception", + # "Apache-2.0 WITH LLVM-exception", ] # The confidence threshold for detecting a license from license text. # The higher the value, the more closely the license text must be to the @@ -65,9 +67,11 @@ confidence-threshold = 0.8 # Allow 1 or more licenses on a per-crate basis, so that particular licenses # aren't accepted for every possible crate as with the normal allow list exceptions = [ + + # Each entry is the crate and version constraint, and its specific allow # list - #{ allow = ["Zlib"], name = "adler32", version = "*" }, + # { allow = ["Zlib"], name = "adler32", version = "*" }, ] # Some crates don't have (easily) machine readable licensing information, @@ -100,7 +104,9 @@ ignore = false # is only published to private registries, and ignore is true, the crate will # not have its license(s) checked registries = [ - #"https://sekretz.com/registry + + + # "https://sekretz.com/registry ] # This section is considered when running `cargo deny check bans`. @@ -127,28 +133,32 @@ workspace-default-features = "allow" external-default-features = "allow" # List of crates that are allowed. Use with care! allow = [ - #{ name = "ansi_term", version = "=0.11.0" }, + + + # { name = "ansi_term", version = "=0.11.0" }, ] # List of crates to deny deny = [ + + # Each entry the name of a crate and a version range. If version is # not specified, all versions will be matched. - #{ name = "ansi_term", version = "=0.11.0" }, + # { name = "ansi_term", version = "=0.11.0" }, # # Wrapper crates can optionally be specified to allow the crate when it # is a direct dependency of the otherwise banned crate - #{ name = "ansi_term", version = "=0.11.0", wrappers = [] }, + # { name = "ansi_term", version = "=0.11.0", wrappers = [] }, ] # List of features to allow/deny # Each entry the name of a crate and a version range. If version is # not specified, all versions will be matched. -#[[bans.features]] -#name = "reqwest" +# [[bans.features]] +# name = "reqwest" # Features to not allow -#deny = ["json"] +# deny = ["json"] # Features to allow -#allow = [ +# allow = [ # "rustls", # "__rustls", # "__tls", @@ -158,21 +168,25 @@ deny = [ # "rustls-tls-webpki-roots", # "tokio-rustls", # "webpki-roots", -#] +# ] # If true, the allowed features must exactly match the enabled feature set. If # this is set there is no point setting `deny` -#exact = true +# exact = true # Certain crates/versions that will be skipped when doing duplicate detection. skip = [ - #{ name = "ansi_term", version = "=0.11.0" }, + + + # { name = "ansi_term", version = "=0.11.0" }, ] # Similarly to `skip` allows you to skip certain crates during duplicate # detection. Unlike skip, it also includes the entire tree of transitive # dependencies starting at the specified crate, up to a certain depth, which is # by default infinite. skip-tree = [ - #{ name = "ansi_term", version = "=0.11.0", depth = 20 }, + + + # { name = "ansi_term", version = "=0.11.0", depth = 20 }, ] # This section is considered when running `cargo deny check sources`. @@ -209,13 +223,15 @@ allow-git = [] # dependencies not shared by any other crates, would be ignored, as the target # list here is effectively saying which targets you are building for. targets = [ + + # The triple can be any string, but only the target triples built in to # rustc (as of 1.40) can be checked against actual config expressions - #{ triple = "x86_64-unknown-linux-musl" }, + # { triple = "x86_64-unknown-linux-musl" }, # You can also specify which target_features you promise are enabled for a # particular target. target_features are currently not validated against # the actual valid features supported by the target architecture. - #{ triple = "wasm32-unknown-unknown", features = ["atomics"] }, + # { triple = "wasm32-unknown-unknown", features = ["atomics"] }, ] # When creating the dependency graph used as the source of truth when checks are # executed, this field can be used to prune crates from the graph, removing them @@ -224,7 +240,7 @@ targets = [ # they are connected to another crate in the graph that hasn't been pruned, # so it should be used with care. The identifiers are [Package ID Specifications] # (https://doc.rust-lang.org/cargo/reference/pkgid-spec.html) -#exclude = [] +# exclude = [] # If true, metadata will be collected with `--all-features`. Note that this can't # be toggled off if true, if you want to conditionally enable `--all-features` it # is recommended to pass `--all-features` on the cmd line instead @@ -235,7 +251,7 @@ no-default-features = false # If set, these feature will be enabled when collecting metadata. If `--features` # is specified on the cmd line they will take precedence over this option. -#features = [] +# features = [] [output] # When outputting inclusion graphs in diagnostics that include features, this diff --git a/dprint.json b/dprint.json index 96db89a245e72a..ae7baeffabfef0 100644 --- a/dprint.json +++ b/dprint.json @@ -7,6 +7,8 @@ "json": { "indentWidth": 2 }, + "toml": { + }, "excludes": [ "npm/oxlint/configuration_schema.json", "tasks/coverage/misc", @@ -24,6 +26,7 @@ "https://plugins.dprint.dev/typescript-0.91.8.wasm", "https://plugins.dprint.dev/json-0.19.3.wasm", "https://plugins.dprint.dev/markdown-0.17.8.wasm", - "https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm" + "https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm", + "https://plugins.dprint.dev/toml-0.6.2.wasm" ] } diff --git a/justfile b/justfile index 16b3030e6464ae..8991d3d7e7d0f1 100755 --- a/justfile +++ b/justfile @@ -16,7 +16,7 @@ alias new-typescript-rule := new-ts-rule # or install via `cargo install cargo-binstall` # Initialize the project by installing all the necessary tools. init: - cargo binstall cargo-watch cargo-insta typos-cli taplo-cli cargo-shear dprint -y + cargo binstall cargo-watch cargo-insta typos-cli cargo-shear dprint -y # When ready, run the same CI commands ready: @@ -61,7 +61,6 @@ ast: # Format all files fmt: cargo shear --fix # remove all unused dependencies - taplo format cargo fmt --all dprint fmt diff --git a/napi/parser/Cargo.toml b/napi/parser/Cargo.toml index 002c1a67dd43aa..75f05e39c7ddfe 100644 --- a/napi/parser/Cargo.toml +++ b/napi/parser/Cargo.toml @@ -1,36 +1,36 @@ [package] -name = "oxc_parser_napi" -version = "0.0.0" -publish = false -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_parser_napi" +version = "0.0.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +keywords.workspace = true +license.workspace = true +publish = false +repository.workspace = true rust-version.workspace = true -categories.workspace = true +description.workspace = true [lints] workspace = true [lib] crate-type = ["cdylib"] -test = false -doctest = false +test = false +doctest = false [dependencies] -oxc_allocator = { workspace = true } -oxc_parser = { workspace = true } -oxc_ast = { workspace = true, features = ["serialize"] } -oxc_span = { workspace = true } -oxc_diagnostics = { workspace = true } +oxc_allocator = { workspace = true } +oxc_ast = { workspace = true, features = ["serialize"] } +oxc_diagnostics = { workspace = true } oxc_module_lexer = { path = "../../crates/oxc_module_lexer" } +oxc_parser = { workspace = true } +oxc_span = { workspace = true } -napi = { workspace = true, features = ["async"] } +napi = { workspace = true, features = ["async"] } napi-derive = { workspace = true } -serde_json = { workspace = true } +serde_json = { workspace = true } [package.metadata.cargo-shear] ignored = ["napi"] diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index e7212963e622a5..d1d755215f4cea 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,38 +1,38 @@ [package] -name = "oxc_transform_napi" -version = "0.27.0" -publish = true -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_transform_napi" +version = "0.27.0" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +keywords.workspace = true +license.workspace = true +publish = true +repository.workspace = true rust-version.workspace = true -categories.workspace = true +description.workspace = true [lints] workspace = true [lib] crate-type = ["cdylib", "lib"] -test = false -doctest = false +test = false +doctest = false [dependencies] -oxc_allocator = { workspace = true } -oxc_ast = { workspace = true } -oxc_codegen = { workspace = true } -oxc_diagnostics = { workspace = true } +oxc_allocator = { workspace = true } +oxc_ast = { workspace = true } +oxc_codegen = { workspace = true } +oxc_diagnostics = { workspace = true } oxc_isolated_declarations = { workspace = true } -oxc_parser = { workspace = true } -oxc_span = { workspace = true } -oxc_sourcemap = { workspace = true } -oxc_transformer = { workspace = true } -oxc_semantic = { workspace = true } +oxc_parser = { workspace = true } +oxc_semantic = { workspace = true } +oxc_sourcemap = { workspace = true } +oxc_span = { workspace = true } +oxc_transformer = { workspace = true } -napi = { workspace = true } +napi = { workspace = true } napi-derive = { workspace = true } [package.metadata.cargo-shear] diff --git a/tasks/ast_tools/Cargo.toml b/tasks/ast_tools/Cargo.toml index a050a6144cc8ec..fb30bbdcf2858f 100644 --- a/tasks/ast_tools/Cargo.toml +++ b/tasks/ast_tools/Cargo.toml @@ -1,35 +1,27 @@ [package] -name = "oxc_ast_tools" -version = "0.0.0" -publish = false +name = "oxc_ast_tools" +version = "0.0.0" edition.workspace = true license.workspace = true +publish = false [lints] workspace = true [[bin]] -name = "oxc_ast_tools" -test = false +name = "oxc_ast_tools" +test = false doctest = false [dependencies] -syn = { workspace = true, features = [ - "clone-impls", - "derive", - "extra-traits", - "full", - "parsing", - "printing", - "proc-macro", -] } -quote = { workspace = true } -proc-macro2 = { workspace = true } +bpaf = { workspace = true, features = ["autocomplete", "bright-color", "derive"] } +convert_case = { workspace = true } itertools = { workspace = true } +lazy_static = { workspace = true } +prettyplease = { workspace = true } +proc-macro2 = { workspace = true } +quote = { workspace = true } +regex = { workspace = true } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } -regex = { workspace = true } -prettyplease = { workspace = true } -lazy_static = { workspace = true } -convert_case = { workspace = true } -bpaf = { workspace = true, features = ["autocomplete", "bright-color", "derive"] } +syn = { workspace = true, features = ["clone-impls", "derive", "extra-traits", "full", "parsing", "printing", "proc-macro"] } diff --git a/tasks/benchmark/Cargo.toml b/tasks/benchmark/Cargo.toml index fa85b05df68ff9..613362a35a3fda 100644 --- a/tasks/benchmark/Cargo.toml +++ b/tasks/benchmark/Cargo.toml @@ -1,49 +1,49 @@ [package] -name = "oxc_benchmark" -version = "0.0.0" -publish = false -authors.workspace = true +name = "oxc_benchmark" +version = "0.0.0" +authors.workspace = true +edition.workspace = true +homepage.workspace = true +keywords.workspace = true +license.workspace = true +publish = false +repository.workspace = true description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true [lints] workspace = true [lib] -test = false -bench = false +test = false +bench = false doctest = false [[bench]] -name = "lexer" +name = "lexer" harness = false [[bench]] -name = "parser" +name = "parser" harness = false [[bench]] -name = "transformer" +name = "transformer" harness = false [[bench]] -name = "semantic" +name = "semantic" harness = false [[bench]] -name = "linter" +name = "linter" harness = false [[bench]] -name = "codegen" +name = "codegen" harness = false [[bench]] -name = "sourcemap" +name = "sourcemap" harness = false # Broken @@ -52,39 +52,39 @@ harness = false # harness = false [[bench]] -name = "minifier" +name = "minifier" harness = false [[bench]] -name = "isolated_declarations" +name = "isolated_declarations" harness = false # Only run in CI [[bench]] -name = "parser_napi" +name = "parser_napi" harness = false -bench = false +bench = false # All `oxc_*` dependencies optional as on CI we build each benchmark separately # with only the crates it needs, to speed up the builds [dependencies] -oxc_allocator = { workspace = true, optional = true } -oxc_linter = { workspace = true, optional = true } -oxc_minifier = { workspace = true, optional = true } -oxc_parser = { workspace = true, features = ["benchmarking"], optional = true } -oxc_prettier = { workspace = true, optional = true } -oxc_semantic = { workspace = true, optional = true } -oxc_span = { workspace = true, optional = true, features = ["schemars", "serialize"] } -oxc_tasks_common = { workspace = true, optional = true } -oxc_transformer = { workspace = true, optional = true } -oxc_codegen = { workspace = true, optional = true } -oxc_sourcemap = { workspace = true, features = ["concurrent"], optional = true } +oxc_allocator = { workspace = true, optional = true } +oxc_codegen = { workspace = true, optional = true } oxc_isolated_declarations = { workspace = true, optional = true } +oxc_linter = { workspace = true, optional = true } +oxc_minifier = { workspace = true, optional = true } +oxc_parser = { workspace = true, features = ["benchmarking"], optional = true } +oxc_prettier = { workspace = true, optional = true } +oxc_semantic = { workspace = true, optional = true } +oxc_sourcemap = { workspace = true, features = ["concurrent"], optional = true } +oxc_span = { workspace = true, optional = true, features = ["schemars", "serialize"] } +oxc_tasks_common = { workspace = true, optional = true } +oxc_transformer = { workspace = true, optional = true } criterion2 = { workspace = true } # Only for NAPI benchmark -serde = { workspace = true, optional = true } +serde = { workspace = true, optional = true } serde_json = { workspace = true, optional = true } [features] diff --git a/tasks/common/Cargo.toml b/tasks/common/Cargo.toml index 832f4b1fe7b4e3..4a63712c577beb 100644 --- a/tasks/common/Cargo.toml +++ b/tasks/common/Cargo.toml @@ -1,22 +1,22 @@ [package] -name = "oxc_tasks_common" -version = "0.0.0" -publish = false +name = "oxc_tasks_common" +version = "0.0.0" edition.workspace = true license.workspace = true +publish = false [lints] workspace = true [lib] -test = false +test = false doctest = false [dependencies] console = { workspace = true } project-root = { workspace = true } -similar = { workspace = true } +similar = { workspace = true } ureq = { workspace = true, features = ["json", "tls"] } -url = { workspace = true } +url = { workspace = true } diff --git a/tasks/coverage/Cargo.toml b/tasks/coverage/Cargo.toml index cf3851eac0fd48..a6c779036884cb 100644 --- a/tasks/coverage/Cargo.toml +++ b/tasks/coverage/Cargo.toml @@ -1,14 +1,14 @@ [package] -name = "oxc_coverage" -version = "0.0.0" -publish = false -authors.workspace = true +name = "oxc_coverage" +version = "0.0.0" +authors.workspace = true +edition.workspace = true +homepage.workspace = true +keywords.workspace = true +license.workspace = true +publish = false +repository.workspace = true description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true [lints] workspace = true @@ -17,28 +17,28 @@ workspace = true doctest = false [[bin]] -name = "oxc_coverage" -test = false +name = "oxc_coverage" +test = false doctest = false [dependencies] -oxc = { workspace = true, features = ["full", "isolated_declarations", "serialize", "sourcemap"] } -oxc_prettier = { workspace = true } +oxc = { workspace = true, features = ["full", "isolated_declarations", "serialize", "sourcemap"] } +oxc_prettier = { workspace = true } oxc_tasks_common = { workspace = true } -serde = { workspace = true, features = ["derive"] } -serde_json = { workspace = true } -rayon = { workspace = true } -project-root = { workspace = true } -pico-args = { workspace = true } -lazy_static = { workspace = true } -walkdir = { workspace = true } -regex = { workspace = true } -phf = { workspace = true, features = ["macros"] } -futures = { workspace = true } -tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -saphyr = { workspace = true } -console = { workspace = true } -encoding_rs = { workspace = true } +console = { workspace = true } +encoding_rs = { workspace = true } encoding_rs_io = { workspace = true } -similar = { workspace = true } +futures = { workspace = true } +lazy_static = { workspace = true } +phf = { workspace = true, features = ["macros"] } +pico-args = { workspace = true } +project-root = { workspace = true } +rayon = { workspace = true } +regex = { workspace = true } +saphyr = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +similar = { workspace = true } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } +walkdir = { workspace = true } diff --git a/tasks/javascript_globals/Cargo.toml b/tasks/javascript_globals/Cargo.toml index 0eeda4b679795a..e8ed01481c181e 100644 --- a/tasks/javascript_globals/Cargo.toml +++ b/tasks/javascript_globals/Cargo.toml @@ -1,21 +1,21 @@ [package] -name = "javascript_globals" -version = "0.0.0" -publish = false +name = "javascript_globals" +version = "0.0.0" edition.workspace = true license.workspace = true +publish = false [lints] workspace = true [[bin]] -name = "javascript_globals" -test = false +name = "javascript_globals" +test = false doctest = false [dependencies] +handlebars = { workspace = true } oxc_tasks_common = { workspace = true } -handlebars = { workspace = true } -serde = { workspace = true, features = ["derive"] } lazy_static = { workspace = true } +serde = { workspace = true, features = ["derive"] } diff --git a/tasks/minsize/Cargo.toml b/tasks/minsize/Cargo.toml index 2f49cbe33b3ace..c60cc8a433acb4 100644 --- a/tasks/minsize/Cargo.toml +++ b/tasks/minsize/Cargo.toml @@ -1,30 +1,30 @@ [package] -name = "oxc_minsize" -version = "0.0.0" -publish = false +name = "oxc_minsize" +version = "0.0.0" edition.workspace = true license.workspace = true +publish = false [lints] workspace = true [lib] -test = false +test = false doctest = false [[bin]] -name = "oxc_minsize" -test = false +name = "oxc_minsize" +test = false doctest = false [dependencies] -oxc_span = { workspace = true } oxc_allocator = { workspace = true } -oxc_parser = { workspace = true } -oxc_codegen = { workspace = true } -oxc_minifier = { workspace = true } +oxc_codegen = { workspace = true } +oxc_minifier = { workspace = true } +oxc_parser = { workspace = true } +oxc_span = { workspace = true } +flate2 = { workspace = true } oxc_tasks_common = { workspace = true } -flate2 = { workspace = true } humansize = { workspace = true } diff --git a/tasks/prettier_conformance/Cargo.toml b/tasks/prettier_conformance/Cargo.toml index 23c642bf532b5d..7562d591adce9d 100644 --- a/tasks/prettier_conformance/Cargo.toml +++ b/tasks/prettier_conformance/Cargo.toml @@ -1,14 +1,14 @@ [package] -name = "oxc_prettier_conformance" -version = "0.0.0" -publish = false -authors.workspace = true +name = "oxc_prettier_conformance" +version = "0.0.0" +authors.workspace = true +edition.workspace = true +homepage.workspace = true +keywords.workspace = true +license.workspace = true +publish = false +repository.workspace = true description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true [lints] workspace = true @@ -17,18 +17,18 @@ workspace = true doctest = false [[bin]] -name = "oxc_prettier_conformance" -path = "src/main.rs" -test = false +name = "oxc_prettier_conformance" +path = "src/main.rs" +test = false doctest = false [dependencies] -oxc_allocator = { workspace = true } -oxc_parser = { workspace = true } -oxc_prettier = { workspace = true } -oxc_span = { workspace = true } +oxc_allocator = { workspace = true } +oxc_ast = { workspace = true } +oxc_parser = { workspace = true } +oxc_prettier = { workspace = true } +oxc_span = { workspace = true } oxc_tasks_common = { workspace = true } -oxc_ast = { workspace = true } -walkdir = { workspace = true } pico-args = { workspace = true } +walkdir = { workspace = true } diff --git a/tasks/rulegen/Cargo.toml b/tasks/rulegen/Cargo.toml index a1b658b2e7d2b2..177a94cfc4681b 100644 --- a/tasks/rulegen/Cargo.toml +++ b/tasks/rulegen/Cargo.toml @@ -1,28 +1,28 @@ [package] -name = "rulegen" -version = "0.0.0" -publish = false +name = "rulegen" +version = "0.0.0" edition.workspace = true license.workspace = true +publish = false [lints] workspace = true [[bin]] -name = "rulegen" -test = false +name = "rulegen" +test = false doctest = false [dependencies] -oxc_allocator = { workspace = true } -oxc_span = { workspace = true } -oxc_ast = { workspace = true } -oxc_parser = { workspace = true } +oxc_allocator = { workspace = true } +oxc_ast = { workspace = true } +oxc_parser = { workspace = true } +oxc_span = { workspace = true } oxc_tasks_common = { workspace = true } convert_case = { workspace = true } -serde = { workspace = true, features = ["derive"] } -regex = { workspace = true } -lazy_static = { workspace = true } -ureq = { workspace = true } -handlebars = { workspace = true } +handlebars = { workspace = true } +lazy_static = { workspace = true } +regex = { workspace = true } +serde = { workspace = true, features = ["derive"] } +ureq = { workspace = true } diff --git a/tasks/transform_conformance/Cargo.toml b/tasks/transform_conformance/Cargo.toml index 5222a1f4aede68..968596ad705b96 100644 --- a/tasks/transform_conformance/Cargo.toml +++ b/tasks/transform_conformance/Cargo.toml @@ -1,14 +1,14 @@ [package] -name = "oxc_transform_conformance" -version = "0.0.0" -publish = false -authors.workspace = true +name = "oxc_transform_conformance" +version = "0.0.0" +authors.workspace = true +edition.workspace = true +homepage.workspace = true +keywords.workspace = true +license.workspace = true +publish = false +repository.workspace = true description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true [lints] workspace = true @@ -17,14 +17,14 @@ workspace = true doctest = false [[bin]] -name = "oxc_transform_conformance" -test = false +name = "oxc_transform_conformance" +test = false doctest = false [dependencies] -oxc = { workspace = true, features = ["full"] } +oxc = { workspace = true, features = ["full"] } oxc_tasks_common = { workspace = true } -walkdir = { workspace = true } +indexmap = { workspace = true } pico-args = { workspace = true } -indexmap = { workspace = true } +walkdir = { workspace = true } diff --git a/tasks/website/Cargo.toml b/tasks/website/Cargo.toml index 5a4330cd66a8da..47c8a9806f432e 100644 --- a/tasks/website/Cargo.toml +++ b/tasks/website/Cargo.toml @@ -1,41 +1,41 @@ [package] -name = "website" -version = "0.0.0" -publish = false +name = "website" +version = "0.0.0" edition.workspace = true license.workspace = true +publish = false [lints] workspace = true [[bin]] -name = "website" -test = false +name = "website" +test = false doctest = false [lib] doctest = false [dependencies] -oxc_linter = { workspace = true } -oxlint = { path = "../../apps/oxlint" } -pico-args = { workspace = true } -serde_json = { workspace = true } -schemars = { workspace = true } -handlebars = { workspace = true } -serde = { workspace = true } -bpaf = { workspace = true, features = ["docgen"] } +bpaf = { workspace = true, features = ["docgen"] } +handlebars = { workspace = true } +oxc_linter = { workspace = true } +oxlint = { path = "../../apps/oxlint" } +pico-args = { workspace = true } project-root = { workspace = true } +schemars = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } [dev-dependencies] -oxc_allocator = { workspace = true } +oxc_allocator = { workspace = true } oxc_diagnostics = { workspace = true } -oxc_parser = { workspace = true } -oxc_span = { workspace = true } +oxc_parser = { workspace = true } +oxc_span = { workspace = true } -insta = { workspace = true } +insta = { workspace = true } markdown = { version = "1.0.0-alpha.19" } -scraper = { version = "0.20.0" } +scraper = { version = "0.20.0" } [package.metadata.cargo-shear] ignored = ["bpaf"] diff --git a/wasm/parser/Cargo.toml b/wasm/parser/Cargo.toml index 82def6f289ccf7..4dbea169cbf21d 100644 --- a/wasm/parser/Cargo.toml +++ b/wasm/parser/Cargo.toml @@ -1,29 +1,29 @@ [package] -name = "oxc_parser_wasm" -version = "0.0.1" -publish = false -authors.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -repository.workspace = true +name = "oxc_parser_wasm" +version = "0.0.1" +authors.workspace = true +categories.workspace = true +edition.workspace = true +homepage.workspace = true +keywords.workspace = true +license.workspace = true +publish = false +repository.workspace = true rust-version.workspace = true -categories.workspace = true +description.workspace = true [lints] workspace = true [lib] crate-type = ["cdylib", "rlib"] -test = false -doctest = false +test = false +doctest = false [dependencies] -oxc = { workspace = true, features = ["serialize"] } +oxc = { workspace = true, features = ["serialize"] } serde = { workspace = true, features = ["derive"] } -wasm-bindgen = { workspace = true } serde-wasm-bindgen = { workspace = true } -tsify = { workspace = true } +tsify = { workspace = true } +wasm-bindgen = { workspace = true }