-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
111 lines (94 loc) · 2.59 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
106
107
108
109
110
111
[package]
name = "kodept"
version = "0.2.3"
edition = "2021"
authors = ["Владимир Никитин <[email protected]>"]
description = "Simple compiler with dependent types support in mind"
repository = "https://github.com/ITesserakt/Kodept/"
categories = ["compilers"]
license = "Apache-2.0"
rust-version = "1.76.0"
[workspace]
members = [
".",
"crates/kodept-core",
"crates/kodept-parse",
"crates/kodept-inference",
"crates/kodept-ast",
"crates/kodept-macros",
"crates/kodept-interpret",
"crates/slotgraph",
"crates/kodept-ir"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace.dependencies]
thiserror = "1.0"
extend = "1.2"
itertools = "0.13"
nonempty-collections = "0.2.9"
tracing = "0.1.40"
[workspace.dependencies.derive_more]
version = "1.0.0"
features = ["display", "into", "from", "deref", "deref_mut", "constructor", "try_into", "is_variant", "unwrap"]
[workspace.lints]
clippy.suspicious = "deny"
clippy.correctness = "deny"
clippy.complexity = "warn"
clippy.style = "warn"
clippy.perf = "warn"
rust.unsafe_code = "deny"
rust.unreachable_pub = "warn"
[dependencies]
anyhow = "1"
clap = { version = "4.5", features = ["derive", "env"] }
ctrlc = { version = "3.4.4", optional = true }
codespan-reporting = "0.11.1"
derive_more.workspace = true
dhat = { version = "0.3", optional = true }
extend.workspace = true
gag = { version = "1.0.0", optional = true }
itertools.workspace = true
mmap-rs = "0.6.1"
rayon = { version = "1.10.0", optional = true }
replace_with = "0.1.7"
thiserror.workspace = true
tracing.workspace = true
tracing-subscriber = { version = "0.3.17", default-features = false, features = ["fmt", "ansi"] }
yoke = "0.7.4"
[dependencies.kodept-core]
path = "crates/kodept-core"
version = "0.2"
[dependencies.kodept-parse]
path = "crates/kodept-parse"
version = "0.3"
[dependencies.kodept-ast]
path = "crates/kodept-ast"
version = "0.5"
[dependencies.kodept-macros]
path = "crates/kodept-macros"
version = "0.1"
[dependencies.kodept-interpret]
path = "crates/kodept-interpret"
version = "0.1"
[dev-dependencies]
tempfile = "3.7.0"
insta = "1.39.0"
kodept-inference = { path = "crates/kodept-inference", version = "0.2" }
[features]
profiler = ["dep:dhat", "dep:ctrlc"]
parallel = ["dep:rayon", "kodept-parse/parallel", "kodept-ast/parallel"]
trace = ["dep:gag", "kodept-parse/trace"]
[profile.profiler]
debug = true
inherits = "release"
[profile.bench]
opt-level = 3
[profile.release]
opt-level = 3
lto = true
panic = 'unwind'
strip = true
[profile.dev]
opt-level = 0
debug = true
panic = 'unwind'
rpath = false