forked from jyn514/saltwater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
90 lines (77 loc) · 2.2 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
[package]
name = "rcc"
version = "0.8.0"
authors = ["Joshua Nelson <[email protected]>", "Graham Scheaffer <[email protected]>", "Wesley Norris <[email protected]>", "playX"]
edition = "2018"
description = "A C compiler written in Rust, with a focus on good error messages."
repository = "https://github.com/jyn514/rcc/"
readme = "README.md"
categories = ["development-tools", "parser-implementations"]
license = "BSD-3-Clause"
keywords = ["C", "compiler", "recursive-descent", "cranelift"]
default-run = "rcc"
documentation = "https://docs.rs/rcc"
[dependencies]
lazy_static = "1"
ansi_term = { version = "0.12", optional = true }
cranelift = { version = "0.59", optional = true }
cranelift-module = { version = "0.59", optional = true }
cranelift-object = { version = "0.59", optional = true }
cranelift-simplejit = { version = "0.59", optional = true }
hexponent = "0.2.2"
thiserror = ">=1.0.10"
target-lexicon = "0.10"
tempfile = { version = "3", optional = true }
pico-args = { version = "0.3", optional = true }
string-interner = { version = "0.7", default-features = false }
codespan = "0.8"
color-backtrace = { version = "0.3", default-features = false, optional = true }
[dev-dependencies]
env_logger = { version = "0.7", default-features = false }
log = "0.4"
criterion = "0.3.1"
walkdir = "2"
proptest = "0.9"
proptest-derive = "0.1"
[features]
default = ["cc", "codegen"]
# The `rcc` binary
cc = ["ansi_term", "tempfile", "pico-args", "color-backtrace", "codegen"]
codegen = ["cranelift", "cranelift-module", "cranelift-object"]
jit = ["codegen", "cranelift-simplejit"]
[[bin]]
name = "rcc"
path = "src/main.rs"
required-features = ["cc"]
[[bench]]
name = "examples"
harness = false
required-features = ["jit"]
[[test]]
name = "jit"
required-features = ["jit"]
[[test]]
name = "runner"
required-features = ["cc"]
[[test]]
name = "varargs"
required-features = ["cc"]
[[test]]
name = "headers"
required-features = ["cc"]
[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 = []