-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCargo.toml
96 lines (88 loc) · 2.47 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
[package]
authors = [
"Ajeet D'Souza <[email protected]>",
"Kartik Sharma <[email protected]>",
]
categories = ["development-tools"]
description = "A compiler, VM, language server, and online playground for the Lox programming language"
edition = "2021"
keywords = [
"cli",
"compiler",
"interpreter",
"language",
"lox",
"lsp",
"parser",
"parsing",
"script",
"scripting",
"vm",
"wasm",
"webassembly",
]
license = "MIT"
name = "loxcraft"
repository = "https://github.com/ajeetdsouza/loxcraft"
rust-version = "1.70.0"
version = "0.1.1"
[badges]
maintenance = { status = "actively-developed" }
[features]
default = ["lsp", "repl"]
gc-off = []
gc-stress = []
gc-trace = []
lsp = ["dep:tokio", "dep:tower-lsp"]
playground = ["dep:rust-embed", "dep:warp", "dep:warp-embed", "dep:webbrowser"]
repl = [
"dep:dirs",
"dep:nu-ansi-term",
"dep:reedline",
"dep:tree-sitter",
"dep:tree-sitter-highlight",
"dep:tree-sitter-lox",
]
vm-trace = []
[dependencies]
anyhow = "1.0.52"
arrayvec = "0.7.2"
clap = { version = "4.0.0", features = ["derive"] }
codespan-reporting = "0.11.1"
dirs = { version = "5.0.0", optional = true }
hashbrown = { version = "0.14.5", default-features = false, features = [
"inline-more",
] }
iota = "0.2.2"
lalrpop-util = "0.20.2"
logos = "0.12.0"
nu-ansi-term = { version = "0.50.0", optional = true }
reedline = { version = "0.32.0", optional = true }
rust-embed = { version = "8.4.0", features = ["compression"], optional = true }
rustc-hash = "1.1.0"
termcolor = "1.1.3"
thiserror = "1.0.34"
tokio = { version = "1.17.0", features = ["io-std", "rt"], optional = true }
tower-lsp = { version = "0.20.0", optional = true }
tree-sitter = { version = "0.20.4", optional = true }
tree-sitter-highlight = { version = "0.20.1", optional = true }
tree-sitter-lox = { version = "0.1.0", optional = true }
warp = { version = "0.3.7", optional = true }
warp-embed = { version = "0.5.0", optional = true }
webbrowser = { version = "1.0.2", optional = true }
[target.'cfg(target_family = "wasm")'.dependencies]
wasm-bindgen = "0.2.67"
[target.'cfg(not(any(miri, target_family = "wasm")))'.dependencies]
mimalloc = { version = "0.1.27", default-features = false }
[build-dependencies]
build-deps = "0.1.4"
lalrpop = { version = "0.20.2", default-features = false }
[dev-dependencies]
pretty_assertions = "1.1.0"
test-generator = "0.3.0"
[profile.release]
codegen-units = 1
debug = false
lto = true
panic = "abort"
strip = true