mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
[](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [compact_str](https://togithub.com/ParkMyCar/compact_str) | workspace.dependencies | minor | `0.7.1` -> `0.8.0` | | [napi](https://togithub.com/napi-rs/napi-rs) | workspace.dependencies | patch | `3.0.0-alpha.3` -> `3.0.0-alpha` | | [napi-derive](https://togithub.com/napi-rs/napi-rs) | workspace.dependencies | patch | `3.0.0-alpha.2` -> `3.0.0-alpha` | | [oxc_resolver](https://togithub.com/oxc-project/oxc-resolver) | workspace.dependencies | minor | `1.9.3` -> `1.10.0` | --- ### Release Notes <details> <summary>ParkMyCar/compact_str (compact_str)</summary> ### [`v0.8.0`](https://togithub.com/ParkMyCar/compact_str/blob/HEAD/CHANGELOG.md#080) ##### July 8, 2024 #### Breaking Changes 💥 - Consolidate `CompactString::new_inline(...)` and `CompactString::from_static_str(...)` into `CompactString::const:new(...)`. Methods are currently marked as deprecated and will be removed in `v0.9.0`. - Implemented in [`Add const_new(); remove new_inline() and from_static_str()`](https://togithub.com/ParkMyCar/compact_str/pull/336) - Minimum supported Rust version (MSRV) was bumped to `v1.60` - Implemented in [`fix: MSRV check and change MSRV to 1.60`](https://togithub.com/ParkMyCar/compact_str/pull/395) #### Changes - Add support for [`borsh`](https://crates.io/crates/borsh) under an optional feature. - Implemented in [`Add borsh support`](https://togithub.com/ParkMyCar/compact_str/pull/393) - Add additial `PartialEq` impls for `CompactString` - Implemented in [`fix: More PartialEq impls`](https://togithub.com/ParkMyCar/compact_str/pull/381) - Match alignment of internal `InlineBuffer` and `Repr`. - Implemeneted in [`Align InlineBuffer same as Repr`](https://togithub.com/ParkMyCar/compact_str/pull/358) - Fix conflict between `serde` and `no_std` features. - Implemented in [`fix serde no-std issue`](https://togithub.com/ParkMyCar/compact_str/pull/347) - Improve performance of `CompactString::is_empty`. - Implemented in [`Simplify is_empty()`](https://togithub.com/ParkMyCar/compact_str/pull/330) - Implement additional `From` impls that `std::string::String` has. - Implemented in [`Add missing From impls that String has`](https://togithub.com/ParkMyCar/compact_str/pull/328) - Implement [`Clone::clone_from`](https://doc.rust-lang.org/std/clone/trait.Clone.html#method.clone_from) for `CompactString`. - Implemented in [`Impl Clone::clone_from for CompactString`](https://togithub.com/ParkMyCar/compact_str/pull/325) - Make re-allocations of a heap-based `CompactString` fallible. - Implemented in [`Make (re)allocations fallible`](https://togithub.com/ParkMyCar/compact_str/pull/323) - Inline short `&'static str`s - Implemented in [`Inline short static strings`](https://togithub.com/ParkMyCar/compact_str/pull/321) - Add support for serializing a `CompactString` from [`diesel`](https://crates.io/crates/diesel) and [`sqlx`](https://crates.io/crates/sqlx) - Implemented in [`Implement diesel compatibility`](https://togithub.com/ParkMyCar/compact_str/pull/318) - Implemented in [`Implement for sqlx`](https://togithub.com/ParkMyCar/compact_str/pull/329) ... and everything from `v0.8.0-beta` #### Fixed Issues - Re-enabled specialization for `String` in `trait ToCompactString` by upgrading to `castaway v0.2.3` - Implemented in [`deps: Upgrade to castaway v0.2.3`](https://togithub.com/ParkMyCar/compact_str/pull/394) </details> <details> <summary>napi-rs/napi-rs (napi)</summary> ### [`v3.0.0-alpha.7`](https://togithub.com/napi-rs/napi-rs/compare/napi@3.0.0-alpha.6...napi@3.0.0-alpha.7) [Compare Source](https://togithub.com/napi-rs/napi-rs/compare/napi@3.0.0-alpha.6...napi@3.0.0-alpha.7) </details> <details> <summary>oxc-project/oxc-resolver (oxc_resolver)</summary> ### [`v1.10.0`](https://togithub.com/oxc-project/oxc-resolver/blob/HEAD/CHANGELOG.md#1100---2024-07-11) [Compare Source](https://togithub.com/oxc-project/oxc-resolver/compare/oxc_resolver-v1.9.4...oxc_resolver-v1.10.0) ##### Added - *(napi)* expose module type info in ResolveResult ([#​223](https://togithub.com/oxc-project/oxc_resolver/pull/223)) ##### Fixed - remove `#[cfg(target_os = "windows")]` logic in `canonicalize` ([#​221](https://togithub.com/oxc-project/oxc_resolver/pull/221)) ##### Other - update `cargo deny` ([#​222](https://togithub.com/oxc-project/oxc_resolver/pull/222)) - pin crate-ci/typos version ### [`v1.9.4`](https://togithub.com/oxc-project/oxc-resolver/blob/HEAD/CHANGELOG.md#194---2024-07-10) [Compare Source](https://togithub.com/oxc-project/oxc-resolver/compare/oxc_resolver-v1.9.3...oxc_resolver-v1.9.4) ##### Other - use custom canonicalize impl to avoid useless syscall ([#​220](https://togithub.com/oxc-project/oxc_resolver/pull/220)) - add symlink fixtures ([#​219](https://togithub.com/oxc-project/oxc_resolver/pull/219)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 10am on monday" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/oxc-project/oxc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjQzMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: rzvxa <rzvxa@protonmail.com>
211 lines
8.4 KiB
TOML
211 lines
8.4 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"]
|
|
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"
|
|
rust-version = "1.74"
|
|
|
|
# <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"
|
|
|
|
[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
|
|
# I like the explicitness of this rule as it removes confusion around `clone`.
|
|
# This increases readability, avoids `clone` mindlessly and heap allocating on 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] every where also hinders readability.
|
|
must_use_candidate = "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 new comers 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" # TODO: fix this
|
|
|
|
[workspace.dependencies]
|
|
# publish = true
|
|
oxc = { version = "0.20.0", path = "crates/oxc" }
|
|
oxc_allocator = { version = "0.20.0", path = "crates/oxc_allocator" }
|
|
oxc_ast = { version = "0.20.0", path = "crates/oxc_ast" }
|
|
oxc_codegen = { version = "0.20.0", path = "crates/oxc_codegen" }
|
|
oxc_diagnostics = { version = "0.20.0", path = "crates/oxc_diagnostics" }
|
|
oxc_index = { version = "0.20.0", path = "crates/oxc_index" }
|
|
oxc_minifier = { version = "0.20.0", path = "crates/oxc_minifier" }
|
|
oxc_mangler = { version = "0.20.0", path = "crates/oxc_mangler" }
|
|
oxc_parser = { version = "0.20.0", path = "crates/oxc_parser" }
|
|
oxc_semantic = { version = "0.20.0", path = "crates/oxc_semantic" }
|
|
oxc_span = { version = "0.20.0", path = "crates/oxc_span" }
|
|
oxc_syntax = { version = "0.20.0", path = "crates/oxc_syntax" }
|
|
oxc_transformer = { version = "0.20.0", path = "crates/oxc_transformer" }
|
|
oxc_sourcemap = { version = "0.20.0", path = "crates/oxc_sourcemap" }
|
|
oxc_ast_macros = { version = "0.20.0", path = "crates/oxc_ast_macros" }
|
|
oxc_traverse = { version = "0.20.0", path = "crates/oxc_traverse" }
|
|
oxc_module_lexer = { version = "0.20.0", path = "crates/oxc_module_lexer" }
|
|
oxc_cfg = { version = "0.20.0", path = "crates/oxc_cfg" }
|
|
oxc_isolated_declarations = { version = "0.20.0", path = "crates/oxc_isolated_declarations" }
|
|
oxc_transform_napi = { version = "0.20.0", path = "napi/transform" }
|
|
|
|
# publish = false
|
|
oxc_macros = { path = "crates/oxc_macros" }
|
|
oxc_linter = { path = "crates/oxc_linter" }
|
|
oxc_prettier = { path = "crates/oxc_prettier" }
|
|
oxc_tasks_common = { path = "tasks/common" }
|
|
|
|
napi = "3.0.0-alpha"
|
|
napi-derive = "3.0.0-alpha"
|
|
napi-build = "2.1.3"
|
|
|
|
assert-unchecked = "0.1.2"
|
|
allocator-api2 = "0.2.18"
|
|
bpaf = "0.9.12"
|
|
bitflags = "2.5.0"
|
|
bumpalo = "3.16.0"
|
|
convert_case = "0.6.0"
|
|
dashmap = "6.0.0"
|
|
flate2 = "1.0.30"
|
|
futures = "0.3.30"
|
|
glob = "0.3.1"
|
|
ignore = "0.4.22"
|
|
itertools = "0.13.0"
|
|
jemallocator = "0.5.4"
|
|
lazy_static = "1.4.0"
|
|
memoffset = "0.9.1"
|
|
miette = { version = "7.2.0", features = ["fancy-no-syscall"] }
|
|
mimalloc = "0.1.42"
|
|
num-bigint = "0.4.5"
|
|
num-traits = "0.2.19"
|
|
phf = "0.11.2"
|
|
pico-args = "0.5.0"
|
|
proc-macro2 = "1.0.85"
|
|
project-root = "0.2.2"
|
|
quote = "1.0.36"
|
|
rayon = "1.10.0"
|
|
regex = "1.10.5"
|
|
rustc-hash = "2.*"
|
|
ryu-js = "1.0.1"
|
|
ropey = "1.6.1"
|
|
seq-macro = "0.3.5"
|
|
serde = "1.0.203"
|
|
serde_json = "1.0.117"
|
|
syn = { version = "2.0.58", default-features = false }
|
|
tempfile = "3.10.1"
|
|
tokio = "1.38.0"
|
|
tower-lsp = "0.20.0"
|
|
trybuild = "1.0.96"
|
|
unicode-id-start = "1" # Relaxed version so the user can decide which unicode version to use.
|
|
ureq = { version = "2.9.6", default-features = false }
|
|
url = "2.5.2"
|
|
walkdir = "2.5.0"
|
|
indexmap = "2.2.6"
|
|
static_assertions = "1.1.0"
|
|
tracing-subscriber = "0.3.18"
|
|
insta = "1.39.0"
|
|
mime_guess = "2.0.4"
|
|
language-tags = "0.3.2"
|
|
tsify = "0.4.5"
|
|
wasm-bindgen = "0.2.92"
|
|
serde-wasm-bindgen = "0.6.5"
|
|
handlebars = "5.1.2"
|
|
base64 = "0.22.1"
|
|
compact_str = "0.8.0"
|
|
console = "0.15.8"
|
|
encoding_rs = "0.8.34"
|
|
encoding_rs_io = "0.1.7"
|
|
env_logger = { version = "0.11.3", default-features = false }
|
|
globset = "0.4.14"
|
|
humansize = "2.1.3"
|
|
json-strip-comments = "1.0.2"
|
|
log = "0.4.21"
|
|
memchr = "2.7.2"
|
|
once_cell = "1.19.0"
|
|
ouroboros = "0.18.4"
|
|
owo-colors = "4.0.0"
|
|
oxc_resolver = "1.8.2"
|
|
petgraph = "0.6.5"
|
|
rust-lapper = "1.1.0"
|
|
similar = "2.5.0"
|
|
textwrap = "0.16.1"
|
|
unicode-width = "0.1.13"
|
|
saphyr = "0.0.1"
|
|
base64-simd = "0.8"
|
|
cfg-if = "1.0.0"
|
|
schemars = "0.8.21"
|
|
oxc-browserslist = "1.0.1"
|
|
prettyplease = "0.2.20"
|
|
criterion2 = { version = "0.11.0", default-features = false }
|
|
daachorse = { version = "1.0.0" }
|
|
|
|
[workspace.metadata.cargo-shear]
|
|
ignored = ["napi", "oxc_transform_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.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.
|
|
|
|
# Faster compile time with thin lto
|
|
[profile.release-thin]
|
|
inherits = "release"
|
|
lto = "thin"
|