mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-23 18:21:13 +08:00
build: 告警门统一走 workspace lints
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
[build]
|
[build]
|
||||||
rustflags = ["-D", "warnings"]
|
|
||||||
# sccache 编译缓存:重复构建(切分支、profile 变动、clean 后重编)命中缓存直接
|
# sccache 编译缓存:重复构建(切分支、profile 变动、clean 后重编)命中缓存直接
|
||||||
# 复用产物,跳过 rustc。缓存目录默认 ~/.cache/sccache(上限 10G)。
|
# 复用产物,跳过 rustc。缓存目录默认 ~/.cache/sccache(上限 10G)。
|
||||||
rustc-wrapper = "sccache"
|
rustc-wrapper = "sccache"
|
||||||
|
|||||||
+6
-1
@@ -64,9 +64,14 @@ tracing = { version = "0.1.44", features = ["max_level_trace", "release_max_leve
|
|||||||
tracing-subscriber = { version = "0.3.23", features = ["env-filter", "registry"] }
|
tracing-subscriber = { version = "0.3.23", features = ["env-filter", "registry"] }
|
||||||
tracing-appender = "0.2.5"
|
tracing-appender = "0.2.5"
|
||||||
|
|
||||||
|
# 工作区 lint:各 crate 需在自身 Cargo.toml 写 `[lints] workspace = true` 才继承。
|
||||||
|
# rust 表把 rustc 告警升为错误(只作用于 workspace crate,依赖不受影响);clippy
|
||||||
|
# 表在 clippy 下生效。
|
||||||
|
[workspace.lints.rust]
|
||||||
|
warnings = "deny"
|
||||||
|
|
||||||
[workspace.lints.clippy]
|
[workspace.lints.clippy]
|
||||||
all = { level = "deny", priority = -1 }
|
all = { level = "deny", priority = -1 }
|
||||||
warnings = { level = "deny", priority = -1 }
|
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
# 快速 release:日常墙时间 A/B 与 test262 release 回测用。opt-level 2 与 3 的
|
# 快速 release:日常墙时间 A/B 与 test262 release 回测用。opt-level 2 与 3 的
|
||||||
|
|||||||
@@ -28,3 +28,6 @@ num-traits = "0.2"
|
|||||||
oxide_vm = { path = "../oxide_vm" }
|
oxide_vm = { path = "../oxide_vm" }
|
||||||
oxide_compiler = { path = "../oxide_compiler" }
|
oxide_compiler = { path = "../oxide_compiler" }
|
||||||
oxide_parser = { path = "../oxide_parser" }
|
oxide_parser = { path = "../oxide_parser" }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -9,3 +9,6 @@ description = "OxideJS - Shared bytecode protocol and compiled module ABI"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
oxide_log = { path = "../oxide_log" }
|
oxide_log = { path = "../oxide_log" }
|
||||||
num-bigint = "0.4"
|
num-bigint = "0.4"
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -14,3 +14,6 @@ oxide_log = { path = "../oxide_log" }
|
|||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
oxide_parser = { path = "../oxide_parser" }
|
oxide_parser = { path = "../oxide_parser" }
|
||||||
oxide_emit = { path = "../oxide_emit" }
|
oxide_emit = { path = "../oxide_emit" }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -28,3 +28,6 @@ rustyline.workspace = true
|
|||||||
ansi_term.workspace = true
|
ansi_term.workspace = true
|
||||||
serde_json.workspace = true
|
serde_json.workspace = true
|
||||||
serde = { workspace = true, features = ["derive"] }
|
serde = { workspace = true, features = ["derive"] }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -10,3 +10,6 @@ description = "OxideJS - Compiler-independent compiled module cache"
|
|||||||
oxide_bytecode = { path = "../oxide_bytecode" }
|
oxide_bytecode = { path = "../oxide_bytecode" }
|
||||||
oxide_log = { path = "../oxide_log" }
|
oxide_log = { path = "../oxide_log" }
|
||||||
lru.workspace = true
|
lru.workspace = true
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -23,3 +23,6 @@ rustc-hash.workspace = true
|
|||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
oxide_code_cache = { path = "../oxide_code_cache" }
|
oxide_code_cache = { path = "../oxide_code_cache" }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -17,3 +17,6 @@ oxide_log = { path = "../oxide_log" }
|
|||||||
oxide_parser = { path = "../oxide_parser" }
|
oxide_parser = { path = "../oxide_parser" }
|
||||||
oxide_emit = { path = "../oxide_emit" }
|
oxide_emit = { path = "../oxide_emit" }
|
||||||
oxide_vm = { path = "../oxide_vm" }
|
oxide_vm = { path = "../oxide_vm" }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -17,3 +17,6 @@ regex.workspace = true
|
|||||||
regress.workspace = true
|
regress.workspace = true
|
||||||
num-bigint = "0.4"
|
num-bigint = "0.4"
|
||||||
|
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -13,3 +13,6 @@ oxide_compiler = { path = "../oxide_compiler" }
|
|||||||
oxide_kernel = { path = "../oxide_kernel" }
|
oxide_kernel = { path = "../oxide_kernel" }
|
||||||
oxide_vm = { path = "../oxide_vm" }
|
oxide_vm = { path = "../oxide_vm" }
|
||||||
oxide_types = { path = "../oxide_types" }
|
oxide_types = { path = "../oxide_types" }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -10,3 +10,6 @@ description = "OxideJS - IR intermediate representation and lowering to bytecode
|
|||||||
oxide_bytecode = { path = "../oxide_bytecode" }
|
oxide_bytecode = { path = "../oxide_bytecode" }
|
||||||
oxide_log = { path = "../oxide_log" }
|
oxide_log = { path = "../oxide_log" }
|
||||||
smallvec.workspace = true
|
smallvec.workspace = true
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -15,3 +15,6 @@ bumpalo.workspace = true
|
|||||||
hashbrown.workspace = true
|
hashbrown.workspace = true
|
||||||
dashmap.workspace = true
|
dashmap.workspace = true
|
||||||
rustc-hash.workspace = true
|
rustc-hash.workspace = true
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -15,3 +15,6 @@ oxide_log = { path = "../oxide_log" }
|
|||||||
oxide_parser = { path = "../oxide_parser" }
|
oxide_parser = { path = "../oxide_parser" }
|
||||||
oxide_emit = { path = "../oxide_emit" }
|
oxide_emit = { path = "../oxide_emit" }
|
||||||
oxide_bytecode = { path = "../oxide_bytecode" }
|
oxide_bytecode = { path = "../oxide_bytecode" }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -10,3 +10,6 @@ description = "OxideJS - Structured logging subsystem (tracing-based)"
|
|||||||
tracing = { workspace = true, features = ["max_level_trace", "release_max_level_debug"] }
|
tracing = { workspace = true, features = ["max_level_trace", "release_max_level_debug"] }
|
||||||
tracing-subscriber = { workspace = true, features = ["env-filter", "registry"] }
|
tracing-subscriber = { workspace = true, features = ["env-filter", "registry"] }
|
||||||
tracing-appender = "0.2.5"
|
tracing-appender = "0.2.5"
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -16,3 +16,6 @@ oxc_span.workspace = true
|
|||||||
oxc_diagnostics.workspace = true
|
oxc_diagnostics.workspace = true
|
||||||
oxc_syntax.workspace = true
|
oxc_syntax.workspace = true
|
||||||
oxc_semantic = "0.134.0"
|
oxc_semantic = "0.134.0"
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -19,3 +19,6 @@ oxide_emit = { path = "../oxide_emit" }
|
|||||||
oxide_vm = { path = "../oxide_vm" }
|
oxide_vm = { path = "../oxide_vm" }
|
||||||
oxide_dce = { path = "../oxide_dce" }
|
oxide_dce = { path = "../oxide_dce" }
|
||||||
oxide_compiler = { path = "../oxide_compiler" }
|
oxide_compiler = { path = "../oxide_compiler" }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -14,3 +14,6 @@ num-bigint = "0.4"
|
|||||||
num-traits = "0.2"
|
num-traits = "0.2"
|
||||||
oxide_log = { path = "../oxide_log" }
|
oxide_log = { path = "../oxide_log" }
|
||||||
ryu.workspace = true
|
ryu.workspace = true
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -23,3 +23,6 @@ oxide_log = { path = "../oxide_log" }
|
|||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
serde_yaml = "0.9"
|
serde_yaml = "0.9"
|
||||||
walkdir = "2"
|
walkdir = "2"
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -16,3 +16,6 @@ num-bigint = "0.4"
|
|||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
proptest.workspace = true
|
proptest.workspace = true
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
@@ -55,3 +55,6 @@ harness = false
|
|||||||
[[bench]]
|
[[bench]]
|
||||||
name = "call"
|
name = "call"
|
||||||
harness = false
|
harness = false
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|||||||
Reference in New Issue
Block a user