Cargo.toml 1.16 KB
Newer Older
Jeremy Soller's avatar
Jeremy Soller committed
1 2 3 4 5 6 7 8 9 10
[package]
name = "relibc"
version = "0.1.0"
authors = ["Jeremy Soller <jackpot51@gmail.com>"]

[lib]
name = "c"
crate-type = ["staticlib"]

[workspace]
jD91mZM2's avatar
jD91mZM2 committed
11
members = ["src/crt0", "src/crti", "src/crtn", "cbindgen"]
12
exclude = ["core_io", "ralloc"]
Jeremy Soller's avatar
Jeremy Soller committed
13

14
[build-dependencies]
15
cc = "1.0.17"
16

Jeremy Soller's avatar
Jeremy Soller committed
17
[dependencies]
jD91mZM2's avatar
jD91mZM2 committed
18
cbitset = "0.1.0"
Jeremy Soller's avatar
Jeremy Soller committed
19
core_io = { path = "core_io", features = ["collections"] }
20
lazy_static = { version = "*", features = ["nightly", "spin_no_std"] }
jD91mZM2's avatar
jD91mZM2 committed
21
posix-regex = { version = "0.1", features = ["no_std"] }
22 23
rand = { version = "0.5.2", default-features = false }
va_list = { path = "va_list", features = ["no_std"] }
24

25 26 27
[dependencies.compiler_builtins]
git = "https://github.com/rust-lang-nursery/compiler-builtins.git"
default-features = false
jD91mZM2's avatar
jD91mZM2 committed
28
features = ["no-lang-items", "mangled-names"]
29

30 31 32 33 34 35 36 37 38 39 40 41
[dependencies.ralloc]
path = "ralloc"
default-features = false
optional = true

[target.'cfg(target_os = "linux")'.dependencies]
sc = "0.2"

[target.'cfg(target_os = "redox")'.dependencies]
redox_syscall = { git = "https://gitlab.redox-os.org/redox-os/syscall.git", branch = "relibc" }
spin = "0.4"

Jeremy Soller's avatar
Jeremy Soller committed
42
[features]
jD91mZM2's avatar
jD91mZM2 committed
43
#default = ["trace"]
Jeremy Soller's avatar
Jeremy Soller committed
44 45
trace = []

46 47 48 49 50
[profile.dev]
panic = "abort"

[profile.release]
panic = "abort"