[package]
edition = "2021"
name = "c-scape"
version = "0.22.3"
authors = ["Dan Gohman <dev@sunfishcode.online>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A libc bottom-half implementation in Rust"
documentation = "https://docs.rs/c-scape"
readme = "README.md"
keywords = [
"linux",
"libc",
"no_std",
]
categories = ["no-std"]
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
repository = "https://github.com/sunfishcode/c-ward"
[features]
atomic-dbg-logger = ["origin/atomic-dbg-logger"]
call-main = []
coexist-with-libc = ["origin/libc"]
default = [
"thread",
"std",
"coexist-with-libc",
"threadsafe-setenv",
]
deprecated-and-unimplemented = []
eh-personality = ["origin/eh-personality"]
eh-personality-continue = ["origin/eh-personality-continue"]
env_logger = ["origin/env_logger"]
experimental-relocate = ["origin/experimental-relocate"]
extra-syscalls = [
"syscall-read",
"syscall-write",
"syscall-open",
"syscall-openat",
"syscall-close",
"syscall-getpid",
"syscall-statx",
"syscall-epoll_create1",
"syscall-timerfd_create",
"syscall-timerfd_settime",
"syscall-utimensat",
"syscall-fdatasync",
"syscall-syncfs",
"syscall-sync",
"syscall-pipe2",
]
eyra = [
"take-charge",
"thread",
"call-main",
"malloc-via-crates",
]
global-allocator = ["rustix-dlmalloc/global"]
log = ["origin/log"]
malloc-via-crates = ["rustix-dlmalloc/global"]
malloc-via-rust-global-alloc = []
max_level_off = ["origin/max_level_off"]
panic-handler = ["origin/panic-handler"]
panic-handler-trap = ["origin/panic-handler-trap"]
rustc-dep-of-std = [
"dep:core",
"dep:alloc",
"rustix/rustc-dep-of-std",
]
std = [
"rustix/std",
"printf-compat/std",
]
syscall-close = []
syscall-epoll_create1 = []
syscall-fdatasync = []
syscall-getpid = []
syscall-open = []
syscall-openat = []
syscall-pipe2 = []
syscall-read = []
syscall-statx = []
syscall-sync = []
syscall-syncfs = []
syscall-timerfd_create = []
syscall-timerfd_settime = []
syscall-utimensat = []
syscall-write = []
take-charge = [
"origin/origin-start",
"origin/signal",
]
thread = ["origin/unstable-errno"]
threadsafe-setenv = []
todo = []
[lib]
name = "c_scape"
path = "src/lib.rs"
[dependencies.alloc]
version = "1.0.0"
optional = true
package = "rustc-std-workspace-alloc"
[dependencies.bitflags]
version = "2.4.1"
default-features = false
[dependencies.core]
version = "1.0.0"
optional = true
package = "rustc-std-workspace-core"
[dependencies.errno]
version = "0.3.3"
default-features = false
[dependencies.libc]
version = "0.2.155"
default-features = false
[dependencies.libm]
version = "0.2.1"
[dependencies.memoffset]
version = "0.9.0"
[dependencies.num-complex]
version = "0.4.4"
features = ["libm"]
default-features = false
[dependencies.origin]
version = "0.26.1"
features = [
"init-fini-arrays",
"program-at-exit",
"thread-at-exit",
"nightly",
"getauxval",
]
default-features = false
[dependencies.posix-regex]
version = "0.1.1"
features = ["no_std"]
[dependencies.printf-compat]
version = "0.3.0"
default-features = false
[dependencies.rand]
version = "0.9.0"
default-features = false
[dependencies.rand_core]
version = "0.9.3"
features = ["os_rng"]
[dependencies.rand_pcg]
version = "0.9.0"
[dependencies.realpath-ext]
version = "0.1.0"
default-features = false
[dependencies.rustix]
version = "1.0.0"
features = [
"event",
"fs",
"mm",
"net",
"param",
"pipe",
"process",
"pty",
"rand",
"runtime",
"shm",
"stdio",
"system",
"termios",
"thread",
"time",
]
default-features = false
[dependencies.rustix-dlmalloc]
version = "0.2.1"
optional = true
[dependencies.rustix-futex-sync]
version = "0.4.0"
features = ["atomic_usize"]
[dependencies.rustix-openpty]
version = "0.2.0"
[dev-dependencies.libc]
version = "0.2.155"
[dev-dependencies.static_assertions]
version = "1.1.0"
[build-dependencies.cc]
version = "1.0.68"
optional = true
[target.'cfg(not(target_arch = "arm"))'.dependencies.unwinding]
version = "0.2.3"
features = [
"unwinder",
"dwarf-expr",
"hide-trace",
"fde-phdr-dl",
"fde-registry",
"libc",
]
default-features = false