forked from jyn514/saltwater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
97 lines (82 loc) · 2.18 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
[package]
name = "saltwater"
version = "0.11.0"
authors = [
"Joshua Nelson <[email protected]>",
"Graham Scheaffer <[email protected]>",
"Wesley Norris <[email protected]>",
"playX",
"Kevin Becker <[email protected]>",
"Hunter Damron <[email protected]>",
"Justus K <[email protected]>",
]
edition = "2018"
description = "A C compiler written in Rust, with a focus on good error messages."
repository = "https://github.com/jyn514/saltwater/"
readme = "README.md"
categories = ["development-tools", "parser-implementations"]
license = "BSD-3-Clause"
keywords = ["C", "compiler", "recursive-descent", "cranelift"]
default-run = "swcc"
documentation = "https://docs.rs/saltwater"
[dependencies]
ansi_term = "0.12"
arcstr = "0.2"
tempfile = "3"
pico-args = { version = "0.3.4", features = ["short-space-opt"] }
color-backtrace = { version = "0.4", default-features = false, optional = true }
atty = { version = "0.2", default-features = false }
git-testament = { version = "0.1", optional = true }
rand = { version = "0.7", optional = true }
rodio = { version = "0.11.0", optional = true }
saltwater-parser = { path = "saltwater-parser", version = "0.11.0" }
saltwater-codegen = { path = "saltwater-codegen", version = "0.11.0" }
[dev-dependencies]
env_logger = { version = "0.7", default-features = false }
log = "0.4"
criterion = "0.3"
walkdir = "2"
[features]
default = ["color-backtrace"]
salty = ["rand", "rodio"]
jit = ["saltwater-codegen/jit"]
# for internal use
_test_headers = []
[workspace]
[[bin]]
name = "swcc"
path = "src/main.rs"
[[bench]]
name = "examples"
harness = false
required-features = ["jit"]
[[bench]]
name = "parens"
harness = false
[[test]]
name = "jit"
required-features = ["jit"]
[[test]]
name = "runner"
[[test]]
name = "varargs"
[[test]]
name = "headers"
# MacOS breaks if you pass -undef to the system preprocessor
required-features = ["_test_header"]
[profile.release]
lto = true
[profile.test]
debug = false # speeds up link time
[profile.bench]
opt-level = 3
debug = false
lto = true
debug-assertions = false
codegen-units = 1
incremental = false
overflow-checks = false
[package.metadata.docs.rs]
all-features = true
# opt-out of non-default targets
targets = []