-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathCargo.toml
More file actions
120 lines (99 loc) · 3.15 KB
/
Cargo.toml
File metadata and controls
120 lines (99 loc) · 3.15 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
[workspace]
members = [
"parser",
"parser/visitable-derive",
"parser/generator",
"checker",
"checker/binary-serialize-derive"
# "lsp/server",
]
[package]
name = "ezno"
description = "A fast and correct TypeScript type checker and compiler with additional experiments. For use as a library or through the CLI"
authors = ["Ben <kaleidawave@gmail.com>"]
version = "0.0.23"
edition = "2021"
license = "MIT"
homepage = "https://kaleidawave.github.io/posts/introducing-ezno/"
repository = "https://github.com/kaleidawave/ezno"
default-run = "ezno"
categories = ["compilers"]
keywords = [
"javascript",
"typescript",
"type-checker"
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "ezno_lib"
path = "src/lib.rs"
# cdylib is for WASM
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "ezno"
path = "src/main.rs"
[dependencies]
# ezno-web-framework = { path = "./plugins/web" }
base64 = "0.22"
# TODO requires https://github.com/kaleidawave/source-map/pull/7
codespan-reporting = "0.11"
enum-variants-strings = "0.3"
# For `StrComparison` for string comparison
pretty_assertions = "1.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
simple-json-parser = "0.0"
js-sys = "0.3"
lahl = "0.0.3"
[target.'cfg(not(target_family = "wasm"))'.dependencies]
glob = "0.3"
# For CLI input across multiple lines
multiline-term-input = "0.1"
# For watching files
notify = "8"
notify-debouncer-full = "0.5"
# For updating binary
release-downloader = { version = "0.0", default-features = false, features = ["self-update"] }
[dependencies.checker]
path = "./checker"
version = "0.0.18"
features = ["ezno-parser", "serde-serialize"]
package = "ezno-checker"
[dependencies.parser]
path = "./parser"
version = "0.1.7"
features = ["extras"]
package = "ezno-parser"
[target.'cfg(target_family = "wasm")'.dependencies]
console_error_panic_hook = "0.1"
js-sys = "0.3"
serde-wasm-bindgen = "0.6"
tsify = "0.5"
wasm-bindgen = "0.2"
wasm-bindgen-derive = "0.3"
[dev-dependencies]
pretty_assertions = "1.3.0"
[workspace.lints.clippy]
all = { level = "deny", priority = -1 }
pedantic = { level = "deny", priority = -1 }
cast_precision_loss = "warn"
cast_possible_truncation = "warn"
cast_sign_loss = "warn"
default_trait_access = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
too_many_lines = "allow"
new_without_default = "allow"
result_unit_err = "allow"
implicit_hasher = "allow"
[package.metadata.commands]
parse_print_check = "cargo run -p ezno-parser --example parse ./private/toparse/aaa.tsx"
parse_print_ast = "cargo run -p ezno-parser --example parse ./private/toparse/aaa.tsx --ast"
# ft means 'from target' (existing build)
parse_print_ast_ft = "./target/debug/examples/parse.exe ./private/toparse/aaa.tsx"
run_parser_tests = "cargo test -p ezno-parser --no-fail-fast --tests"
run_parser_specification_ft = "spectra test parser/examples.md './target/debug/examples/parse.exe --rpc --interactive'"
run_parser_specification_extras_dry_run_ft = "spectra test parser/private_extras.md './target/debug/examples/parse.exe --rpc --interactive' --dry-run"
# [profile.dev]
# debug = false