Skip to content
Snippets Groups Projects
Cargo.toml 1.58 KiB
Newer Older
[package]
name = "relibc"
version = "0.2.5"
authors = ["Jeremy Soller <jackpot51@gmail.com>"]
edition = "2021"
crate-type = ["staticlib"]

[workspace]
members = [
    "src/crt0",
    "src/crti",
    "src/crtn",
    "src/ld_so",
    "src/platform/redox/redox-exec",
    "src/platform/redox/redox-path",
]
Darley Barreto's avatar
Darley Barreto committed
exclude = ["tests", "dlmalloc-rs"]
[dependencies]
posix-regex = { path = "posix-regex", features = ["no_std"] }

# TODO: For some reason, rand_jitter hasn't been updated to use the latest rand_core
rand = { version = "0.7", default-features = false }
rand_xorshift = "0.2"
rand_jitter = "0.3"

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_only_for_layout_checks = { package = "libc", version = "0.2.149", optional = true }
Jeremy Soller's avatar
Jeremy Soller committed
[dependencies.goblin]
version = "0.7"
Jeremy Soller's avatar
Jeremy Soller committed
default-features = false
features = ["elf32", "elf64", "endian_fd"]

Darley Barreto's avatar
Darley Barreto committed
[dependencies.dlmalloc]
path = "dlmalloc-rs"
default-features = false
features = ["c_api"]

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

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

[profile.release]
panic = "abort"
redox_syscall = { git = "https://gitlab.redox-os.org/redox-os/syscall" }