Files
OxideJS-New/Cargo.toml
T
pjh123 4b0b52ade3 fix: 语义重名诊断引擎侧复核,放行跨语句列的函数名合并
供应商语义检查器把"同语句列"近似为"声明域非 Top/Function
且前一项是函数声明",for-in/for-of 域用空 ScopeFlags 因而漏掉
Top|Function 守卫,误拒跨语句列的函数名与 var 头合法合并。
引擎侧在归一化前按 AST 复核:仅当函数非任一 block/case 列表
直接成员、或其外层链不含该列表时剔除该重名诊断,复核后无
剩余错误则落回解析成功。
2026-09-15 02:18:07 +00:00

83 lines
2.3 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[workspace]
resolver = "2"
members = [
"crates/oxide_parser",
"crates/oxide_bytecode",
"crates/oxide_code_cache",
"crates/oxide_log",
"crates/oxide_compiler",
"crates/oxide_emit",
"crates/oxide_ir",
"crates/oxide_cfg",
"crates/oxide_dce",
"crates/oxide_liveness",
"crates/oxide_regalloc",
"crates/oxide_types",
"crates/oxide_vm",
"crates/oxide_kernel",
"crates/oxide_runtime_api",
"crates/oxide_builtins",
"crates/oxide_cli",
"crates/oxide_test262",
]
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "MIT"
rust-version = "1.80"
[workspace.dependencies]
oxc_parser = "0.134.0"
oxc_allocator = "0.134.0"
oxc_ast = "0.134.0"
oxc_ast_visit = "0.134.0"
oxc_span = "0.134.0"
oxc_diagnostics = "0.134.0"
oxc_syntax = "0.134.0"
oxide_ir = { path = "crates/oxide_ir" }
oxide_emit = { path = "crates/oxide_emit" }
clap = { version = "4", features = ["derive"] }
rustyline = "14"
ansi_term = "0.12"
serde = "1"
serde_json = "1"
dashmap = "6"
rayon = "1"
bumpalo = { version = "3", features = ["collections"] }
hashbrown = "0.14"
proptest = "1"
rustc-hash = "2"
fast-float = "0.2"
ryu = "1"
memchr = "2"
regex = "1"
regress = { version = "0.11", features = ["utf16"] }
indexmap = "2"
lru = "0.18"
smallvec = { version = "1", features = ["union"] }
chrono = { version = "0.4", default-features = false, features = ["clock"] }
unicode-normalization = "0.1"
tracing = { version = "0.1.44", features = ["max_level_trace", "release_max_level_debug"] }
tracing-subscriber = { version = "0.3.23", features = ["env-filter", "registry"] }
tracing-appender = "0.2.5"
[workspace.lints.clippy]
all = { level = "deny", priority = -1 }
warnings = { level = "deny", priority = -1 }
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
# 上游 0.11.1 的 Unicode 表缺 Script/Script_Extensions 的 Unknown(Zzzz,未分配
# 码点集)取值,规范合法模式 \p{Script=Unknown} 无法编译。vendor 补丁在 0.11.1
# 上补齐该取值,其余行为与上游 0.11.1 逐位一致。
# utf16 feature 启用单元向匹配入口(find_from_utf16/ucs2):字节字面量优化已是
# 逐编译运行时 gate,启用该 feature 不再劣化 str 路径(详见 fork 内 optimizer.rs
# 的 optimize_with_byte_literals)。
[patch.crates-io]
regress = { path = "third_party/regress" }