-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
105 lines (92 loc) · 1.99 KB
/
Cargo.toml
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[package]
name = "ecmascript"
version = "0.1.0"
authors = ["luozijun <luozijun.assistant@gmail.com>"]
edition = "2018"
readme = "README.rst"
license = "MIT"
# license-file = "LICENSE"
homepage = "https://github.com/LuoZijun/es"
repository = "https://github.com/LuoZijun/es"
description = "A ECMAScript Parser and Interpreter written in Rust"
documentation = "https://luozijun.github.io/es/ecmascript/"
keywords = [
"language", "ecmascript", "javascript", "parser", "lexer",
"compiler", "interpreter",
"es", "js", "ast",
]
categories = [
"Interpreter", "Lexer", "Parser", "Compiler",
"Language", "parser-implementations", "parsing", "wasm",
]
include = [
"src/",
"tests/",
"examples/",
"Cargo.toml",
"README.rst",
"LICENSE",
]
exclude = [
"benches",
"data",
"scripts",
"test262",
]
[lib]
# https://doc.rust-lang.org/reference/linkage.html
crate-type = ["lib"]
[workspace]
members = [
]
[dependencies]
log = "0.4"
unicode-xid = "0.1"
toolshed = "0.8"
vlq = "0.5"
serde = "1.0"
serde_json = "1.0"
time = "0.1"
num = "0.2"
fnv = "1.0"
# memchr = "2.2"
[dev-dependencies]
rustyline = "3.0"
env_logger = { version = "0.6", default-features = false, features = [ "termcolor", "atty", "humantime"] }
[features]
default = [ "parser", "compiler", "vm" ]
parser = [ ]
compiler = [ "parser" ]
vm = [ "compiler" ]
nightly = [ ]
# https://doc.rust-lang.org/cargo/reference/manifest.html#the-profile-sections
[profile.dev]
opt-level = 0
debug = true
codegen-units = 16
lto = false
panic = "unwind"
incremental = false
overflow-checks = true
[profile.test]
opt-level = 0
debug = true
codegen-units = 16
lto = false
incremental = false
overflow-checks = true
[profile.release]
opt-level = 3
debug = false
codegen-units = 1
lto = true
panic = "unwind"
incremental = false
overflow-checks = false
[profile.bench]
opt-level = 3
debug = false
codegen-units = 1
lto = true
incremental = false
overflow-checks = false