Skip to content

Commit 4f625f4

Browse files
committed
refactor(ecma/lexer): split lexer of parser
1 parent b4b3aff commit 4f625f4

40 files changed

+306640
-1339
lines changed

Cargo.lock

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/swc_ecma_lexer/Cargo.toml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
[package]
2+
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
3+
description = "Feature-complete es2019 lexer."
4+
documentation = "https://rustdoc.swc.rs/swc_ecma_lexer/"
5+
edition = { workspace = true }
6+
include = ["Cargo.toml", "src/**/*.rs", "examples/**/*.rs"]
7+
license = { workspace = true }
8+
name = "swc_ecma_lexer"
9+
repository = { workspace = true }
10+
version = "11.1.2"
11+
12+
[package.metadata.docs.rs]
13+
all-features = true
14+
rustdoc-args = ["--cfg", "docsrs"]
15+
16+
[lib]
17+
bench = false
18+
19+
[features]
20+
# Used for debugging
21+
debug = ["tracing-spans"]
22+
default = ["typescript", "stacker"]
23+
tracing-spans = []
24+
typescript = []
25+
verify = ["swc_ecma_visit"]
26+
27+
[dependencies]
28+
arrayvec = { workspace = true }
29+
bitflags = { workspace = true }
30+
either = { workspace = true }
31+
num-bigint = { workspace = true }
32+
num-traits = { workspace = true }
33+
rustc-hash = { workspace = true }
34+
serde = { workspace = true, features = ["derive"] }
35+
smallvec = { workspace = true }
36+
smartstring = { workspace = true }
37+
tracing = { workspace = true }
38+
typed-arena = { workspace = true }
39+
40+
new_debug_unreachable = { workspace = true }
41+
phf = { workspace = true, features = ["macros"] }
42+
swc_atoms = { version = "5.0.0", path = "../swc_atoms" }
43+
swc_common = { version = "8.1.0", path = "../swc_common" }
44+
swc_ecma_ast = { version = "8.1.2", path = "../swc_ecma_ast" }
45+
swc_ecma_visit = { version = "8.0.0", path = "../swc_ecma_visit", optional = true }
46+
47+
[target.'cfg(not(any(target_arch = "wasm32", target_arch = "arm")))'.dependencies]
48+
stacker = { version = "0.1.15", optional = true }
49+
50+
[dev-dependencies]
51+
criterion = { workspace = true }
52+
pretty_assertions = { workspace = true }
53+
serde_json = { workspace = true }
54+
walkdir = { workspace = true }
55+
56+
codspeed-criterion-compat = { workspace = true }
57+
swc_ecma_ast = { version = "8.1.2", path = "../swc_ecma_ast", features = [
58+
"serde-impl",
59+
] }
60+
swc_ecma_visit = { version = "8.0.0", path = "../swc_ecma_visit" }
61+
swc_malloc = { version = "1.2.2", path = "../swc_malloc" }
62+
testing = { version = "9.0.0", path = "../testing" }
63+
64+
[[bench]]
65+
harness = false
66+
name = "lexer"

0 commit comments

Comments
 (0)