-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathCargo.toml
More file actions
182 lines (153 loc) · 4.06 KB
/
Cargo.toml
File metadata and controls
182 lines (153 loc) · 4.06 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# =========== Workspace configuration ===========
[workspace]
members = [
# Core Calyx crates
"calyx/ir",
"calyx/utils",
"calyx/opt",
"calyx/frontend",
"calyx/stdlib",
"calyx/backend",
# Cider crates
"cider",
"cider/idx",
"cider/dap",
# Fud2
"fud2",
"fud2/fud-core",
# Misc tools
"tools/data-conversion",
"tools/calyx-pass-explorer",
"tools/cider-data-converter",
"tools/component_cells",
"tools/fileinfo_emitter",
"tools/yxi",
"tools/calyx-writer",
"tools/data_gen",
"calyx-lsp",
# Playground crate
"web/rust",
]
exclude = ["site"]
[workspace.package]
authors = ["The Calyx Team"]
license-file = "LICENSE"
keywords = ["ir", "compiler"]
repository = "https://github.com/calyxir/calyx"
readme = "README.md"
description = "Compiler Infrastructure for Hardware Accelerator Generation"
categories = ["compilers"]
homepage = "https://calyxir.org"
edition = "2024"
version = "0.7.1"
rust-version = "1.88"
[workspace.dependencies]
# Internal crates
calyx-utils = { path = "calyx/utils", version = "0.7.1" }
calyx-ir = { path = "calyx/ir", version = "0.7.1" }
calyx-frontend = { path = "calyx/frontend", version = "0.7.1" }
calyx-opt = { path = "calyx/opt", version = "0.7.1" }
calyx-backend = { path = "calyx/backend", version = "0.7.1" }
cider = { path = "cider", version = "0.1.0" }
cider-idx = { path = "cider/idx", version = "0.1.0" }
cider-dap = { path = "cider/dap", version = "0.1.0" }
# External crates
# When adding a new dependency, do not pin the minor version, i.e., use `0.1`
# instead of `0.1.0`
itertools = "0.14"
atty = "0.2"
log = "0.4"
string-interner = "0.19"
lazy_static = "1"
linked-hash-map = "0.5"
smallvec = { version = "1", features = ["const_generics"] }
rand = "0.10"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_sexpr = "0.1.0"
serde_with = "3"
thiserror = "2"
pest = "2"
pest_derive = "2"
pest_consume = "1"
argh = "0.1"
anyhow = "1"
slog = "2.7"
slog-term = "2.8"
slog-async = "2.7"
ahash = "0.8"
baa = { version = "0.17", features = ["bigint", "serde1", "fraction1"] }
[workspace.dependencies.petgraph]
version = "0.6"
default-features = false
features = ["matrix_graph"]
[workspace.dependencies.env_logger]
version = "0.11.0"
features = ["color", "auto-color"]
default-features = false
# =========== Package configuration ===========
[package]
name = "calyx"
default-run = "calyx"
version.workspace = true
edition.workspace = true
description.workspace = true
authors.workspace = true
license-file.workspace = true
keywords.workspace = true
repository.workspace = true
homepage.workspace = true
categories.workspace = true
readme.workspace = true
rust-version.workspace = true
build = "src/build.rs"
[[bin]]
name = "calyx"
path = "src/main.rs"
[features]
default = []
serialize = ["calyx-ir/serialize", "serde/rc", "calyx-backend/sexp"]
[build-dependencies]
calyx-stdlib = { path = "calyx/stdlib", version = "0.7.1" }
[dependencies]
atty.workspace = true
itertools.workspace = true
log.workspace = true
serde.workspace = true
argh.workspace = true
env_logger.workspace = true
calyx-utils.workspace = true
calyx-ir.workspace = true
calyx-frontend.workspace = true
calyx-opt.workspace = true
[dependencies.calyx-backend]
workspace = true
features = ["mlir", "resources", "xilinx"]
# = ========== Benchmarks ===========
[dev-dependencies]
criterion = { version = "0.3", features = ["html_reports"] }
calyx-ir = { path = "calyx/ir" }
calyx-opt = { path = "calyx/opt" }
calyx-frontend = { path = "calyx/frontend" }
[[bench]]
name = "component-sharing"
harness = false
# ==== Profiles ====
# makes the compilation faster on the default path
[profile.dev]
debug = 0
# "debug" is reserved, used when you need the debug info
[profile.dev-debug]
inherits = "dev"
debug = true
# tuned toward maximizing performance. long compilation times. theoretically
# performs better than the default release
[profile.release-perf]
inherits = "release"
lto = true
codegen-units = 1
panic = "abort"
[profile.test.package.proptest]
opt-level = 3
[profile.test.package.rand_chacha]
opt-level = 3