-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCargo.toml
More file actions
104 lines (90 loc) · 2.48 KB
/
Cargo.toml
File metadata and controls
104 lines (90 loc) · 2.48 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
[package]
name = "k1"
version = "0.1.0"
edition = "2024"
default-run = "k1"
[lib]
name = "k1"
path = "src/k1/lib.rs"
[features]
lsp = ["tokio", "tower-lsp", "tokio-util", "tracing", "tracing-appender", "tracing-subscriber"]
gui = ["raylib"]
profile = []
# Our project-specific debug mode, not the same thing as the compiler's!
dbg = []
[dependencies]
# Core dependencies
anyhow = "1.0.69"
clap = { version = "4.4.7", features = ["derive"] }
colored = "2"
env_logger = "0.10.0"
log = "0.4.17"
itertools = "0.13.0"
bitflags = { version = "2.9.1" }
smallvec = "1.13.2"
string-interner = "0.17.0"
either = "1.9.0"
ahash = "0.8.11"
fxhash = "0.2.1"
scopeguard = "1.2.0"
mimalloc = "0.1.43"
pprof = { version = "0.15.0", features = ["flamegraph"] }
ecow = "0.2.3"
memmap2 = "0.9.7"
quanta = "0.12.6"
libc = "0.2.177"
# LLVM / compiler toolchain stuff
llvm-sys = { version = "211.0.0" }
inkwell = { git = "https://github.com/TheDan64/inkwell", version = "0.7.1", features = ["llvm21-1"] }
zstd-sys = "2.0.8"
libffi = "5.0.0"
# libffi-sys = "4.0.0"
# lsp-only deps
tower-lsp = { version = "0.20.0", optional = true }
tokio = { version = "1.17", features = ["full"], optional = true}
tokio-util = { version = "0.7", features = ["codec"], optional = true }
tracing = { version = "0.1", optional = true }
tracing-subscriber = { version = "0.3", optional = true }
tracing-appender = { version = "0.2", optional = true }
# raylib gui only deps
raylib = { version = "5.0.1", optional = true}
[[bin]]
name = "test_suite"
path = "src/bin/test_suite.rs"
[[bin]]
name = "k1"
path = "src/bin/compiler_main.rs"
[[bin]]
name = "lsp"
path = "src/bin/lsp_main.rs"
required-features = ["lsp"]
[[bin]]
name = "gui"
path = "src/bin/gui_main.rs"
required-features = ["raylib"]
[[bin]]
name = "repl"
path = "src/bin/repl_main.rs"
# [profile.dev]
# debug = 0
# strip = "debuginfo"
[profile.release]
panic = "abort"
lto = "thin"
[lints.clippy]
# Variable names can add value even if directly returned
let_and_return = "allow"
# This rule overfits for the current-state; single matches
# are more easily evolved to select more cases than if lets
match_like_matches_macro = "allow"
too_many_arguments = "allow"
# This rule overfits for the current-state and undervalues
# ease of change
collapsible_else_if = "allow"
collapsible_if = "allow"
manual_map = "allow"
len_without_is_empty = "allow"
# This rule overfits for the current-state; single matches
# are more easily evolved to select more cases than if lets
single_match = "allow"
while_let_loop = "allow"