Skip to content
Snippets Groups Projects
Cargo.toml 1.48 KiB
Newer Older
[package]
name = "relibc"
version = "0.2.5"
authors = ["Jeremy Soller <jackpot51@gmail.com>"]
jD91mZM2's avatar
jD91mZM2 committed
edition = "2018"
crate-type = ["staticlib"]

[workspace]
members = ["src/crt0", "src/crti", "src/crtn", "src/ld_so", "src/platform/redox/redox-exec"]
exclude = ["core_io", "ralloc", "tests"]
[build-dependencies]
cc = "1.0.25"
#env_logger = "0.10"
[dependencies]
jD91mZM2's avatar
jD91mZM2 committed
cbitset = "0.1.0"
Jeremy Soller's avatar
Jeremy Soller committed
core_io = { path = "core_io", features = ["collections"] }
lazy_static = { version = "1.4.0", default-features = false, features = ["spin_no_std"] }
posix-regex = { path = "posix-regex", features = ["no_std"] }
rand = { version = "0.5.5", default-features = false }
jD91mZM2's avatar
jD91mZM2 committed
memchr = { version = "2.2.0", default-features = false }
Jeremy Soller's avatar
Jeremy Soller committed
unicode-width = "0.1"
libc = { version = "0.2", optional = true }
Jeremy Soller's avatar
Jeremy Soller committed
[dependencies.goblin]
version = "0.0.21"
default-features = false
features = ["elf32", "elf64", "endian_fd"]

[dependencies.ralloc]
path = "ralloc"
default-features = false
optional = true

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

[target.'cfg(target_os = "redox")'.dependencies]
redox_syscall = "0.3"
spin = "0.9.0"
redox-exec = { path = "src/platform/redox/redox-exec" }
[features]
default = ["check_against_libc_crate"]
trace = []
check_against_libc_crate = ["libc"]
[profile.dev]
panic = "abort"

[profile.release]
panic = "abort"
libc = { git = "https://gitlab.redox-os.org/4lDO2/liblibc.git", branch = "redox" }