forked from pc2/sus-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
74 lines (60 loc) · 2.02 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
[package]
name = "sus_compiler"
description = "Compiler for the SUS Hardware Design Language"
version = "0.2.0-devel"
authors = ["Lennart Van Hirtum <[email protected]>"]
edition = "2021"
license = "GPL-3.0-or-later"
repository = "https://github.com/pc2/sus-compiler"
homepage = "https://github.com/pc2/sus-compiler"
readme = "README.md"
keywords = ["sus", "fpga", "vlsi", "hdl", "verilog"]
categories = ["compilers", "text-processing"]
rust-version = "1.78"
include = ["/src", "/stl/*", "/README.md", "/LICENSE", "/CHANGELOG.md", "/build.rs", "/rustfmt.toml"]
[workspace]
members = [
"sus-proc-macro",
"tree-sitter-sus"
]
[dependencies]
# console = "0.15.7" # for terminal colors
# chumsky = "0.9.2"
ariadne = "0.4.1" # for nice errors
num = "0.4"
# itertools = "0.13.0"
clap = "3.2"
arrayvec = "0.7.6"
# Tree sitter
tree-sitter = "~0.22.2"
tree-sitter-sus = {version = "~0.1.0", path = "./tree-sitter-sus"}
sus-proc-macro = {version = "~0.1.0", path = "./sus-proc-macro"}
# calyx-ir = {version = "0.6.1", optional = true}
# calyx-opt = {version = "0.6.1", optional = true}
# calyx-backend = {version = "0.6.1", optional = true}
# moore-circt = {version = "0.14.0", optional = true, path = "/home/lennart/Desktop/moore/src/circt"}
# moore-circt-sys = {version = "0.14.0", optional = true, path = "/home/lennart/Desktop/moore/src/circt-sys"}
# moore-circt = {version = "0.14.0", optional = true}
# moore-circt-sys = {version = "0.14.0", optional = true}
#lsp
lsp-server = {version = "0.7.1", optional = true}
lsp-types = {version = "0.94.0", optional = true}
serde_json = {version = "1.0.97", optional = true}
serde = {version = "1.0.156", optional = true}
[build-dependencies]
dirs-next = "2.0.0"
[features]
default = ["lsp"]
lsp = ["lsp-server", "lsp-types", "serde_json", "serde"]
# codegen = ["calyx-ir", "calyx-opt", "calyx-backend"]
# codegen = ["moore-circt-sys", "moore-circt"]
[profile.release]
debug = true
[profile.smol]
debug = false
strip = true
opt-level = 'z'
codegen-units = 1
lto = true
panic = 'abort'
inherits = "release"