Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
84 lines (74 loc) · 2.16 KB
/
Copy pathCargo.toml
File metadata and controls
84 lines (74 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[package]
name = "oxc"
version = "0.152.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