mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
0389c4010e
### 🚀 Features -83cb516minifier: Improve negation of expressions in boolean context (#25755) (Armano) ### 🐛 Bug Fixes -134fb22isolated-declarations: Preserve unresolved parameter types (#25909) (Dunqing) -526c2b3codegen: Remove deprecated test APIs (#25889) (camc314) -344a9b2codegen: Align enum template sourcemaps (#25872) (camc314) ### ⚡ Performance -5ef0c93minifier: Unwrap all unary exprs without creating dummy expressions (#25891) (Armano) -8783524packages/codegen: Remove loop from `growMappingBuffer` (#25886) (overlookmotel) -b6b14c0packages/codegen: Remove redundant branch (#25885) (overlookmotel) -be6adf0packages/sourcemap: Make `location` passed to `recordSourceMapping` always a number (#25884) (overlookmotel) -f720f15packages/codegen: Take named-mapping only code off hot path in `recordSourceMapping` (#25883) (overlookmotel) -a734af5packages/codegen: Remove redundant setting of `last` in `printImportAttributes` and `printIf` (#25882) (overlookmotel) -c6e44c6packages/codegen: Combine 2 writes in `printJSXElement` (#25881) (overlookmotel) -8801662packages/codegen: Remove redundant mapping from `printParams` (#25880) (overlookmotel) ### 📚 Documentation -5ad330epackages/codegen: Reformat comments (#25876) (overlookmotel)
85 lines
2.2 KiB
TOML
85 lines
2.2 KiB
TOML
[package]
|
|
name = "oxc"
|
|
version = "0.146.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
|
|
description.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
test = false
|
|
doctest = false
|
|
|
|
[[example]]
|
|
name = "compiler"
|
|
path = "examples/compiler.rs"
|
|
required-features = ["full"]
|
|
|
|
[dependencies]
|
|
oxc_allocator = { workspace = true }
|
|
oxc_ast = { workspace = true }
|
|
oxc_ast_visit = { workspace = true, optional = true }
|
|
oxc_cfg = { workspace = true, optional = true }
|
|
oxc_codegen = { workspace = true, optional = true }
|
|
oxc_diagnostics = { workspace = true }
|
|
oxc_isolated_declarations = { workspace = true, optional = true }
|
|
oxc_mangler = { workspace = true, optional = true }
|
|
oxc_minifier = { workspace = true, optional = true }
|
|
oxc_parser = { workspace = true, features = [] }
|
|
oxc_regular_expression = { workspace = true, optional = true }
|
|
oxc_semantic = { workspace = true, optional = true }
|
|
oxc_span = { workspace = true }
|
|
oxc_str = { workspace = true }
|
|
oxc_syntax = { workspace = true }
|
|
oxc_transformer = { workspace = true, optional = true }
|
|
oxc_transformer_plugins = { workspace = true, optional = true }
|
|
|
|
[features]
|
|
default = ["regular_expression"]
|
|
|
|
full = [
|
|
"codegen",
|
|
"mangler",
|
|
"minifier",
|
|
"semantic",
|
|
"transformer",
|
|
"isolated_declarations",
|
|
"ast_visit",
|
|
"regular_expression",
|
|
]
|
|
|
|
semantic = ["oxc_semantic"]
|
|
transformer = ["oxc_transformer", "oxc_transformer_plugins"]
|
|
minifier = ["oxc_mangler", "oxc_minifier"]
|
|
codegen = ["oxc_codegen", "oxc_codegen/sourcemap"]
|
|
mangler = ["oxc_mangler"]
|
|
cfg = ["oxc_cfg", "oxc_semantic/cfg"]
|
|
isolated_declarations = ["oxc_isolated_declarations"]
|
|
ast_visit = ["oxc_ast_visit"]
|
|
regular_expression = ["oxc_regular_expression", "oxc_parser/regular_expression"]
|
|
|
|
serialize = [
|
|
"oxc_allocator/from_raw_parts",
|
|
"oxc_ast/serialize",
|
|
"oxc_ast_visit/serialize",
|
|
"oxc_semantic?/serialize",
|
|
"oxc_span/serialize",
|
|
"oxc_syntax/serialize",
|
|
]
|
|
|
|
# Only for conformance tests
|
|
conformance = ["oxc_ast_visit/conformance"]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|