mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 12:51:57 +00:00
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [compact_str](https://redirect.github.com/ParkMyCar/compact_str) | workspace.dependencies | patch | `0.8.0` -> `0.8.1` | | [handlebars](https://redirect.github.com/sunng87/handlebars-rust) | workspace.dependencies | minor | `6.2.0` -> `6.3.0` | | [insta](https://insta.rs/) ([source](https://redirect.github.com/mitsuhiko/insta)) | workspace.dependencies | minor | `1.41.1` -> `1.42.0` | | [itertools](https://redirect.github.com/rust-itertools/itertools) | workspace.dependencies | minor | `0.13.0` -> `0.14.0` | | [petgraph](https://redirect.github.com/petgraph/petgraph) | workspace.dependencies | minor | `0.6.5` -> `0.7.0` | | [prettyplease](https://redirect.github.com/dtolnay/prettyplease) | workspace.dependencies | patch | `0.2.25` -> `0.2.27` | | [syn](https://redirect.github.com/dtolnay/syn) | workspace.dependencies | patch | `2.0.93` -> `2.0.95` | | [tempfile](https://stebalien.com/projects/tempfile-rs/) ([source](https://redirect.github.com/Stebalien/tempfile)) | workspace.dependencies | minor | `3.14.0` -> `3.15.0` | --- ### Release Notes <details> <summary>ParkMyCar/compact_str (compact_str)</summary> ### [`v0.8.1`](https://redirect.github.com/ParkMyCar/compact_str/compare/v0.8.0...v0.8.1) [Compare Source](https://redirect.github.com/ParkMyCar/compact_str/compare/v0.8.0...v0.8.1) </details> <details> <summary>sunng87/handlebars-rust (handlebars)</summary> ### [`v6.3.0`](https://redirect.github.com/sunng87/handlebars-rust/blob/HEAD/CHANGELOG.md#630---2025-01-05) [Compare Source](https://redirect.github.com/sunng87/handlebars-rust/compare/v6.2.0...v6.3.0) - \[Added] Builders for some non-exhaustive structs \[[#​688](https://redirect.github.com/sunng87/handlebars-rust/issues/688)] - \[Changed] `and` and `or` helper now accepts multiple parameters \[[#​687](https://redirect.github.com/sunng87/handlebars-rust/issues/687)] - \[Changed] MSRV is now 1.73 </details> <details> <summary>mitsuhiko/insta (insta)</summary> ### [`v1.42.0`](https://redirect.github.com/mitsuhiko/insta/blob/HEAD/CHANGELOG.md#1420) [Compare Source](https://redirect.github.com/mitsuhiko/insta/compare/1.41.1...1.42.0) - Text snapshots no longer contain `snapshot_type: text` in their metadata. For context, we originally added this in the prior release (1.41.0) to support binary snapshots, but some folks disliked the diff noise on any snapshot changes, and the maintainers' weighted votes favored reverting. I apologize that this will cause some additional churn for those who used `cargo test --force-update-snapshots` to update their snapshots to the 1.41 format; running this again with 1.42 will remove those metadata entries. To confirm: this doesn't affect whether snapshot tests pass or fail — the worst impact is some additional diffs in metadata. [#​690](https://redirect.github.com/mitsuhiko/insta/issues/690) - Pending snapshots are no longer removed throughout the workspace by `cargo-insta` before running tests. Instead, running a test will overwrite or remove its own pending snapshot. To remove all pending snapshots, use `cargo insta reject` or run tests with `--unreferenced=delete`. [#​651](https://redirect.github.com/mitsuhiko/insta/issues/651) - `insta::internals::SettingsBindDropGuard` (returned from `Settings::bind_to_scope`) no longer implements `Send`. This was incorrect and any tests relying on this behavior where not working properly. Fixes [#​694](https://redirect.github.com/mitsuhiko/insta/issues/694) in [#​695](https://redirect.github.com/mitsuhiko/insta/issues/695) by [@​jalil-salame](https://redirect.github.com/jalil-salame) </details> <details> <summary>rust-itertools/itertools (itertools)</summary> ### [`v0.14.0`](https://redirect.github.com/rust-itertools/itertools/blob/HEAD/CHANGELOG.md#0140) [Compare Source](https://redirect.github.com/rust-itertools/itertools/compare/v0.13.0...v0.14.0) ##### Breaking - Increased MSRV to 1.63.0 ([#​960](https://redirect.github.com/rust-itertools/itertools/issues/960)) - Removed generic parameter from `cons_tuples` ([#​988](https://redirect.github.com/rust-itertools/itertools/issues/988)) ##### Added - Added `array_combinations` ([#​991](https://redirect.github.com/rust-itertools/itertools/issues/991)) - Added `k_smallest_relaxed` and variants ([#​925](https://redirect.github.com/rust-itertools/itertools/issues/925)) - Added `next_array` and `collect_array` ([#​560](https://redirect.github.com/rust-itertools/itertools/issues/560)) - Implemented `DoubleEndedIterator` for `FilterOk` ([#​948](https://redirect.github.com/rust-itertools/itertools/issues/948)) - Implemented `DoubleEndedIterator` for `FilterMapOk` ([#​950](https://redirect.github.com/rust-itertools/itertools/issues/950)) ##### Changed - Allow `Q: ?Sized` in `Itertools::contains` ([#​971](https://redirect.github.com/rust-itertools/itertools/issues/971)) - Improved hygiene of `chain!` ([#​943](https://redirect.github.com/rust-itertools/itertools/issues/943)) - Improved `into_group_map_by` documentation ([#​1000](https://redirect.github.com/rust-itertools/itertools/issues/1000)) - Improved `tree_reduce` documentation ([#​955](https://redirect.github.com/rust-itertools/itertools/issues/955)) - Improved discoverability of `merge_join_by` ([#​966](https://redirect.github.com/rust-itertools/itertools/issues/966)) - Improved discoverability of `take_while_inclusive` ([#​972](https://redirect.github.com/rust-itertools/itertools/issues/972)) - Improved documentation of `find_or_last` and `find_or_first` ([#​984](https://redirect.github.com/rust-itertools/itertools/issues/984)) - Prevented exponentially large type sizes in `tuple_combinations` ([#​945](https://redirect.github.com/rust-itertools/itertools/issues/945)) - Added `track_caller` attr for `asser_equal` ([#​976](https://redirect.github.com/rust-itertools/itertools/issues/976)) ##### Notable Internal Changes - Fixed clippy lints ([#​956](https://redirect.github.com/rust-itertools/itertools/issues/956), [#​987](https://redirect.github.com/rust-itertools/itertools/issues/987), [#​1008](https://redirect.github.com/rust-itertools/itertools/issues/1008)) - Addressed warnings within doctests ([#​964](https://redirect.github.com/rust-itertools/itertools/issues/964)) - CI: Run most tests with miri ([#​961](https://redirect.github.com/rust-itertools/itertools/issues/961)) - CI: Speed up "cargo-semver-checks" action ([#​938](https://redirect.github.com/rust-itertools/itertools/issues/938)) - Changed an instance of `default_features` in `Cargo.toml` to `default-features` ([#​985](https://redirect.github.com/rust-itertools/itertools/issues/985)) </details> <details> <summary>petgraph/petgraph (petgraph)</summary> ### [`v0.7.0`](https://redirect.github.com/petgraph/petgraph/blob/HEAD/RELEASES.rst#Version-070-2024-12-31) [Compare Source](https://redirect.github.com/petgraph/petgraph/compare/petgraph@v0.6.6...petgraph@v0.7.0) \========================== - Re-released version 0.6.6 with the correct version number, as it included a major update to an exposed crate (`#664`\_). ### [`v0.6.6`](https://redirect.github.com/petgraph/petgraph/blob/HEAD/RELEASES.rst#Version-066-2024-12-31---yanked) [Compare Source](https://redirect.github.com/petgraph/petgraph/compare/petgraph@v0.6.5...petgraph@v0.6.6) \=================================== - Add graph6 format encoder and decoder (`#658`\_) - Dynamic Topological Sort algorithm support (`#675`\_) - Add `UndirectedAdaptor` (`#695`\_) - Add `LowerHex` and `UpperHex` implementations for `Dot` (`#687`\_) - Make `serde` support more complete (`#550`\_) - Process multiple edges in the Floyd-Warshall implementation (`#685`\_) - Update `fixedbitset` to 0.5.7 (`#664`\_) - Fix `immediately_dominated_by` function called on root of graph returns root itself (`#670`\_) - Fix adjacency matrix for `Csr` and `List` (`#648`\_) - Fix clippy warnings (`#701`\_) - Add performance note to the `all_simple_paths` function documentation (`#693`\_) .. \_`#658`: [https://github.com/petgraph/petgraph/pull/658](https://redirect.github.com/petgraph/petgraph/pull/658) .. \_`#675`: [https://github.com/petgraph/petgraph/pull/675](https://redirect.github.com/petgraph/petgraph/pull/675) .. \_`#695`: [https://github.com/petgraph/petgraph/pull/695](https://redirect.github.com/petgraph/petgraph/pull/695) .. \_`#687`: [https://github.com/petgraph/petgraph/pull/687](https://redirect.github.com/petgraph/petgraph/pull/687) .. \_`#550`: [https://github.com/petgraph/petgraph/pull/550](https://redirect.github.com/petgraph/petgraph/pull/550) .. \_`#685`: [https://github.com/petgraph/petgraph/pull/685](https://redirect.github.com/petgraph/petgraph/pull/685) .. \_`#664`: [https://github.com/petgraph/petgraph/pull/664](https://redirect.github.com/petgraph/petgraph/pull/664) .. \_`#670`: [https://github.com/petgraph/petgraph/pull/670](https://redirect.github.com/petgraph/petgraph/pull/670) .. \_`#648`: [https://github.com/petgraph/petgraph/pull/648](https://redirect.github.com/petgraph/petgraph/pull/648) .. \_`#701`: [https://github.com/petgraph/petgraph/pull/701](https://redirect.github.com/petgraph/petgraph/pull/701) .. \_`#693`: [https://github.com/petgraph/petgraph/pull/693](https://redirect.github.com/petgraph/petgraph/pull/693) </details> <details> <summary>dtolnay/prettyplease (prettyplease)</summary> ### [`v0.2.27`](https://redirect.github.com/dtolnay/prettyplease/releases/tag/0.2.27) [Compare Source](https://redirect.github.com/dtolnay/prettyplease/compare/0.2.26...0.2.27) - Avoid trailing '.' on non-macro float literals ([#​89](https://redirect.github.com/dtolnay/prettyplease/issues/89)) ### [`v0.2.26`](https://redirect.github.com/dtolnay/prettyplease/releases/tag/0.2.26) [Compare Source](https://redirect.github.com/dtolnay/prettyplease/compare/0.2.25...0.2.26) - Synthesize parentheses for precedence ([#​88](https://redirect.github.com/dtolnay/prettyplease/issues/88)) </details> <details> <summary>dtolnay/syn (syn)</summary> ### [`v2.0.95`](https://redirect.github.com/dtolnay/syn/releases/tag/2.0.95) [Compare Source](https://redirect.github.com/dtolnay/syn/compare/2.0.94...2.0.95) - Fix parenthesization of struct literals in let-chains ([#​1832](https://redirect.github.com/dtolnay/syn/issues/1832)) ### [`v2.0.94`](https://redirect.github.com/dtolnay/syn/releases/tag/2.0.94) [Compare Source](https://redirect.github.com/dtolnay/syn/compare/2.0.93...2.0.94) - Expression precedence fixes ([#​1811](https://redirect.github.com/dtolnay/syn/issues/1811), [#​1812](https://redirect.github.com/dtolnay/syn/issues/1812), [#​1813](https://redirect.github.com/dtolnay/syn/issues/1813), [#​1814](https://redirect.github.com/dtolnay/syn/issues/1814), [#​1815](https://redirect.github.com/dtolnay/syn/issues/1815), [#​1816](https://redirect.github.com/dtolnay/syn/issues/1816), [#​1818](https://redirect.github.com/dtolnay/syn/issues/1818), [#​1819](https://redirect.github.com/dtolnay/syn/issues/1819), [#​1820](https://redirect.github.com/dtolnay/syn/issues/1820), [#​1825](https://redirect.github.com/dtolnay/syn/issues/1825), [#​1826](https://redirect.github.com/dtolnay/syn/issues/1826), [#​1827](https://redirect.github.com/dtolnay/syn/issues/1827), [#​1828](https://redirect.github.com/dtolnay/syn/issues/1828), [#​1829](https://redirect.github.com/dtolnay/syn/issues/1829), [#​1830](https://redirect.github.com/dtolnay/syn/issues/1830)) </details> <details> <summary>Stebalien/tempfile (tempfile)</summary> ### [`v3.15.0`](https://redirect.github.com/Stebalien/tempfile/blob/HEAD/CHANGELOG.md#3150) [Compare Source](https://redirect.github.com/Stebalien/tempfile/compare/v3.14.0...v3.15.0) Re-seed the per-thread RNG from system randomness when we repeatedly fail to create temporary files ([#​314](https://redirect.github.com/Stebalien/tempfile/issues/314)). This resolves a potential DoS vector ([#​178](https://redirect.github.com/Stebalien/tempfile/issues/178)) while avoiding `getrandom` in the common case where it's necessary. The feature is optional but enabled by default via the `getrandom` feature. For libc-free builds, you'll either need to disable this feature or opt-in to a different [`getrandom` backend](https://redirect.github.com/rust-random/getrandom?tab=readme-ov-file#opt-in-backends). </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 11am on monday" in timezone Asia/Shanghai, Automerge - "before 11am on monday" in timezone Asia/Shanghai. 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/oxc-project/oxc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS44NS4wIiwidXBkYXRlZEluVmVyIjoiMzkuODUuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
249 lines
8.5 KiB
TOML
249 lines
8.5 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = ["apps/*", "crates/*", "napi/*", "tasks/*", "wasm/*"]
|
|
exclude = ["tasks/lint_rules"]
|
|
|
|
[workspace.package]
|
|
authors = ["Boshen <boshenc@gmail.com>", "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.78" # Support last 6 minor versions.
|
|
description = "A collection of JavaScript tools written in Rust."
|
|
|
|
# <https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html>
|
|
[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)'] }
|
|
|
|
[workspace.lints.clippy]
|
|
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
|
|
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"
|
|
rest_pat_in_fully_bound_structs = "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 }
|
|
# Allowed rules
|
|
# pedantic
|
|
# This rule is too pedantic, I don't want to force this because naming things are hard.
|
|
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"
|
|
# `#[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.
|
|
must_use_candidate = "allow"
|
|
# Too annoying, we import by name anyway.
|
|
wildcard_imports = "allow"
|
|
# used_underscore_binding= "allow"
|
|
doc_markdown = "allow"
|
|
# nursery
|
|
# `const` functions do not make sense for our project because this is not a `const` library.
|
|
# 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 }
|
|
multiple_crate_versions = "allow"
|
|
cargo_common_metadata = "allow" # FIXME
|
|
doc_lazy_continuation = "allow" # FIXME
|
|
|
|
[workspace.dependencies]
|
|
# publish = true
|
|
oxc = { version = "0.44.0", path = "crates/oxc" }
|
|
oxc_allocator = { version = "0.44.0", path = "crates/oxc_allocator" }
|
|
oxc_ast = { version = "0.44.0", path = "crates/oxc_ast" }
|
|
oxc_ast_macros = { version = "0.44.0", path = "crates/oxc_ast_macros" }
|
|
oxc_cfg = { version = "0.44.0", path = "crates/oxc_cfg" }
|
|
oxc_codegen = { version = "0.44.0", path = "crates/oxc_codegen" }
|
|
oxc_data_structures = { version = "0.44.0", path = "crates/oxc_data_structures" }
|
|
oxc_diagnostics = { version = "0.44.0", path = "crates/oxc_diagnostics" }
|
|
oxc_ecmascript = { version = "0.44.0", path = "crates/oxc_ecmascript" }
|
|
oxc_estree = { version = "0.44.0", path = "crates/oxc_estree" }
|
|
oxc_isolated_declarations = { version = "0.44.0", path = "crates/oxc_isolated_declarations" }
|
|
oxc_mangler = { version = "0.44.0", path = "crates/oxc_mangler" }
|
|
oxc_minifier = { version = "0.44.0", path = "crates/oxc_minifier" }
|
|
oxc_napi = { version = "0.44.0", path = "crates/oxc_napi" }
|
|
oxc_parser = { version = "0.44.0", path = "crates/oxc_parser" }
|
|
oxc_parser_napi = { version = "0.44.0", path = "napi/parser" }
|
|
oxc_regular_expression = { version = "0.44.0", path = "crates/oxc_regular_expression" }
|
|
oxc_semantic = { version = "0.44.0", path = "crates/oxc_semantic" }
|
|
oxc_span = { version = "0.44.0", path = "crates/oxc_span" }
|
|
oxc_syntax = { version = "0.44.0", path = "crates/oxc_syntax" }
|
|
oxc_transform_napi = { version = "0.44.0", path = "napi/transform" }
|
|
oxc_transformer = { version = "0.44.0", path = "crates/oxc_transformer" }
|
|
oxc_traverse = { version = "0.44.0", path = "crates/oxc_traverse" }
|
|
|
|
# publish = false
|
|
oxc_linter = { path = "crates/oxc_linter" }
|
|
oxc_macros = { path = "crates/oxc_macros" }
|
|
oxc_prettier = { path = "crates/oxc_prettier" }
|
|
oxc_tasks_common = { path = "tasks/common" }
|
|
oxc_tasks_transform_checker = { path = "tasks/transform_checker" }
|
|
|
|
# Relaxed version so the user can decide which version to use.
|
|
napi = "3.0.0-alpha"
|
|
napi-build = "2.1.3"
|
|
napi-derive = "3.0.0-alpha"
|
|
|
|
# Relaxed version so the user can decide which version to use.
|
|
indexmap = "2"
|
|
proc-macro2 = "1"
|
|
quote = "1"
|
|
rustc-hash = "2"
|
|
serde = "1"
|
|
serde_json = "1"
|
|
syn = { version = "2", default-features = false }
|
|
unicode-id-start = "1"
|
|
|
|
#
|
|
dashmap = "6"
|
|
oxc-browserslist = "1.1.0"
|
|
oxc_index = "2"
|
|
oxc_resolver = "3"
|
|
oxc_sourcemap = "1"
|
|
|
|
#
|
|
allocator-api2 = "0.2.21"
|
|
assert-unchecked = "0.1.2"
|
|
base64 = "0.22.1"
|
|
bitflags = "2.6.0"
|
|
bpaf = "0.9.15"
|
|
bumpalo = "3.16.0"
|
|
compact_str = "0.8.0"
|
|
console = "0.15.8"
|
|
console_error_panic_hook = "0.1.7"
|
|
convert_case = "0.6.0"
|
|
cow-utils = "0.1.3"
|
|
criterion2 = { version = "2.0.0", default-features = false }
|
|
encoding_rs = "0.8.35"
|
|
encoding_rs_io = "0.1.7"
|
|
env_logger = { version = "0.11.5", default-features = false }
|
|
fast-glob = "0.4.0"
|
|
flate2 = "1.0.35"
|
|
futures = "0.3.31"
|
|
glob = "0.3.1"
|
|
globset = "0.4.15"
|
|
handlebars = "6.2.0"
|
|
hashbrown = "0.15.2"
|
|
humansize = "2.1.3"
|
|
ignore = "0.4.23"
|
|
insta = "1.41.1"
|
|
itertools = "0.14.0"
|
|
itoa = "1.0.14"
|
|
jemallocator = "0.5.4"
|
|
json-strip-comments = "1.0.4"
|
|
language-tags = "0.3.2"
|
|
lazy_static = "1.5.0"
|
|
log = "0.4.22"
|
|
markdown = "1.0.0-alpha.21"
|
|
memchr = "2.7.4"
|
|
miette = { package = "oxc-miette", version = "1.0.2", 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"
|
|
petgraph = "0.7.0"
|
|
phf = "0.11.2"
|
|
pico-args = "0.5.0"
|
|
prettyplease = "0.2.25"
|
|
project-root = "0.2.2"
|
|
rayon = "1.10.0"
|
|
regex = "1.11.1"
|
|
ropey = "1.6.1"
|
|
rust-lapper = "1.1.0"
|
|
ryu-js = "1.0.1"
|
|
saphyr = "0.0.3"
|
|
schemars = "0.8.21"
|
|
self_cell = "1.1.0"
|
|
seq-macro = "0.3.5"
|
|
serde-wasm-bindgen = "0.6.5"
|
|
sha1 = "0.10.6"
|
|
simdutf8 = { version = "0.1.5", features = ["aarch64_neon"] }
|
|
similar = "2.6.0"
|
|
similar-asserts = "1.6.0"
|
|
string_wizard = "0.0.25"
|
|
tempfile = "3.14.0"
|
|
tokio = "1.42.0"
|
|
tower-lsp = "0.20.0"
|
|
tracing-subscriber = "0.3.19"
|
|
tsify = "0.4.5"
|
|
ureq = { version = "2.12.1", default-features = false }
|
|
url = "2.5.4"
|
|
walkdir = "2.5.0"
|
|
wasm-bindgen = "0.2.99"
|
|
|
|
[workspace.metadata.cargo-shear]
|
|
ignored = ["napi", "oxc_transform_napi", "oxc_parser_napi", "prettyplease"]
|
|
|
|
[profile.dev]
|
|
# Disabling debug info speeds up local and CI builds,
|
|
# and we don't rely on it for debugging that much.
|
|
debug = false
|
|
|
|
[profile.dev.package]
|
|
# Compile macros with some optimizations to make consuming crates build faster
|
|
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
|
|
similar.opt-level = 3
|
|
|
|
[profile.release.package.oxc_wasm]
|
|
opt-level = 'z'
|
|
|
|
[profile.release]
|
|
# Configurations explicitly listed here for clarity.
|
|
# Using the best options for performance.
|
|
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
|
|
|
|
# Profile used for release mode, but with debugging information for profiling
|
|
# and debugging. Use `cargo build --profile=release-with-debug` to build with this profile.
|
|
[profile.release-with-debug]
|
|
inherits = "release"
|
|
strip = false # Keep debug information in binary
|
|
debug = true # Include maximum amount of debug information
|
|
|
|
# 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
|
|
debug-assertions = true # Make sure `debug_assert!`s pass
|
|
overflow-checks = true # Catch arithmetic overflow errors
|