# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.83"
name = "syd"
version = "3.45.1"
authors = ["Ali Polatel <alip@chesswob.org>"]
build = "build.rs"
include = [
    "**/*.rs",
    "*.md",
    "src/*.el",
    "src/*.sh",
    "man/*.scd",
    "vim/*/*.vim",
    "Cargo.toml",
    "Cargo.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "rock-solid application kernel"
homepage = "https://man.exherbo.org"
readme = "README.md"
keywords = [
    "container",
    "linux",
    "security",
    "sandbox",
]
categories = [
    "command-line-utilities",
    "os::linux-apis",
    "security",
]
license = "GPL-3.0-only"
repository = "https://gitlab.exherbo.org/sydbox/sydbox.git"

[features]
asm = [
    "iced-x86",
    "raki",
    "yaxpeax-arch",
    "yaxpeax-arm",
]
default = [
    "asm",
    "log",
    "sh",
    "utils",
]
log = ["ringbuf"]
oci = [
    "clap",
    "libcgroups",
    "libcontainer",
    "liboci-cli",
    "oci-spec",
    "procfs",
    "tabwriter",
    "tracing",
    "tracing-subscriber",
]
prof = [
    "gperftools",
    "tcmalloc",
]
sh = ["linefeed"]
uring = ["io-uring"]
utils = []

[lib]
name = "syd"
path = "src/lib.rs"

[[bin]]
name = "syd"
path = "src/syd.rs"

[[bin]]
name = "syd-aes"
path = "src/utils/syd-aes.rs"

[[bin]]
name = "syd-asm"
path = "src/utils/syd-asm.rs"
required-features = ["asm"]

[[bin]]
name = "syd-aux"
path = "src/utils/syd-aux.rs"

[[bin]]
name = "syd-bit"
path = "src/utils/syd-bit.rs"

[[bin]]
name = "syd-cap"
path = "src/utils/syd-cap.rs"

[[bin]]
name = "syd-cat"
path = "src/utils/syd-cat.rs"
required-features = ["utils"]

[[bin]]
name = "syd-cpu"
path = "src/utils/syd-cpu.rs"

[[bin]]
name = "syd-dns"
path = "src/utils/syd-dns.rs"

[[bin]]
name = "syd-elf"
path = "src/utils/syd-elf.rs"

[[bin]]
name = "syd-emacs"
path = "src/utils/syd-emacs.rs"
required-features = ["utils"]

[[bin]]
name = "syd-env"
path = "src/utils/syd-env.rs"

[[bin]]
name = "syd-exec"
path = "src/utils/syd-exec.rs"

[[bin]]
name = "syd-fd"
path = "src/utils/syd-fd.rs"
required-features = ["utils"]

[[bin]]
name = "syd-fork"
path = "src/utils/syd-fork.rs"
required-features = ["utils"]

[[bin]]
name = "syd-hex"
path = "src/utils/syd-hex.rs"

[[bin]]
name = "syd-info"
path = "src/utils/syd-info.rs"

[[bin]]
name = "syd-key"
path = "src/utils/syd-key.rs"

[[bin]]
name = "syd-ldd"
path = "src/utils/syd-ldd.rs"
required-features = ["utils"]

[[bin]]
name = "syd-load"
path = "src/utils/syd-load.rs"
required-features = ["utils"]

[[bin]]
name = "syd-lock"
path = "src/utils/syd-lock.rs"

[[bin]]
name = "syd-ls"
path = "src/utils/syd-ls.rs"
required-features = ["utils"]

[[bin]]
name = "syd-mdwe"
path = "src/utils/syd-mdwe.rs"

[[bin]]
name = "syd-mem"
path = "src/utils/syd-mem.rs"
required-features = ["utils"]

[[bin]]
name = "syd-net"
path = "src/utils/syd-net.rs"
required-features = ["utils"]

[[bin]]
name = "syd-oci"
path = "src/utils/syd-oci.rs"
required-features = ["oci"]

[[bin]]
name = "syd-ofd"
path = "src/utils/syd-ofd.rs"

[[bin]]
name = "syd-path"
path = "src/utils/syd-path.rs"
required-features = ["utils"]

[[bin]]
name = "syd-pause"
path = "src/utils/syd-pause.rs"

[[bin]]
name = "syd-pds"
path = "src/utils/syd-pds.rs"

[[bin]]
name = "syd-poc"
path = "src/utils/syd-poc.rs"
required-features = ["utils"]

[[bin]]
name = "syd-pty"
path = "src/utils/syd-pty.rs"

[[bin]]
name = "syd-read"
path = "src/utils/syd-read.rs"
required-features = ["utils"]

[[bin]]
name = "syd-rnd"
path = "src/utils/syd-rnd.rs"
required-features = ["utils"]

[[bin]]
name = "syd-run"
path = "src/utils/syd-run.rs"
required-features = ["utils"]

[[bin]]
name = "syd-sec"
path = "src/utils/syd-sec.rs"

[[bin]]
name = "syd-sh"
path = "src/utils/syd-sh.rs"
required-features = ["sh"]

[[bin]]
name = "syd-sha"
path = "src/utils/syd-sha.rs"
required-features = ["utils"]

[[bin]]
name = "syd-size"
path = "src/utils/syd-size.rs"

[[bin]]
name = "syd-stat"
path = "src/utils/syd-stat.rs"
required-features = ["utils"]

[[bin]]
name = "syd-sys"
path = "src/utils/syd-sys.rs"
required-features = ["utils"]

[[bin]]
name = "syd-tck"
path = "src/utils/syd-tck.rs"
required-features = ["utils"]

[[bin]]
name = "syd-test"
path = "src/t/main.rs"

[[bin]]
name = "syd-test-do"
path = "src/t/do.rs"

[[bin]]
name = "syd-tor"
path = "src/utils/syd-tor.rs"

[[bin]]
name = "syd-tty"
path = "src/utils/syd-tty.rs"
required-features = ["utils"]

[[bin]]
name = "syd-utc"
path = "src/utils/syd-utc.rs"
required-features = ["utils"]

[[bin]]
name = "syd-uts"
path = "src/utils/syd-uts.rs"

[[bin]]
name = "syd-x"
path = "src/utils/syd-x.rs"

[[test]]
name = "tests"
path = "tests/tests.rs"

[[bench]]
name = "canon"
path = "bench/canon.rs"
harness = false

[[bench]]
name = "sandbox_from_str"
path = "bench/sandbox/from_str.rs"
harness = false

[[bench]]
name = "sys-exec"
path = "bench/sys/exec.rs"
harness = false

[[bench]]
name = "sys-fork"
path = "bench/sys/fork.rs"
harness = false

[[bench]]
name = "sys-getdents"
path = "bench/sys/getdents.rs"
harness = false

[[bench]]
name = "sys-getpid"
path = "bench/sys/getpid.rs"
harness = false

[[bench]]
name = "sys-gettid"
path = "bench/sys/gettid.rs"
harness = false

[[bench]]
name = "sys-kill"
path = "bench/sys/kill.rs"
harness = false

[[bench]]
name = "sys-mmap"
path = "bench/sys/mmap.rs"
harness = false

[[bench]]
name = "sys-open"
path = "bench/sys/open.rs"
harness = false

[[bench]]
name = "sys-open-read-close"
path = "bench/sys/open_read_close.rs"
harness = false

[[bench]]
name = "sys-stat"
path = "bench/sys/stat.rs"
harness = false

[[bench]]
name = "sys-unlink"
path = "bench/sys/unlink.rs"
harness = false

[dependencies.ahash]
version = "0.8"
features = ["no-rng"]

[dependencies.bitflags]
version = "2.10"
default-features = false

[dependencies.btoi]
version = "0.5"
features = ["std"]
default-features = false

[dependencies.clap]
version = "4.5"
optional = true

[dependencies.crc]
version = "3.3.0"
default-features = false

[dependencies.data-encoding]
version = "2.9"
features = ["std"]
default-features = false

[dependencies.expiringmap]
version = "0.1"
default-features = false

[dependencies.fixedbitset]
version = "0.5"
default-features = false

[dependencies.gperftools]
version = "0.2"
features = ["heap"]
optional = true
default-features = false

[dependencies.iced-x86]
version = "1.21"
features = [
    "decoder",
    "fast_fmt",
    "intel",
    "std",
]
optional = true
default-features = false

[dependencies.indexmap]
version = "2.12"
features = ["std"]
default-features = false

[dependencies.io-uring]
version = "=0.6"
optional = true
default-features = false

[dependencies.ipnet]
version = "2.11"
features = ["std"]
default-features = false

[dependencies.iprange]
version = "0.6"
default-features = false

[dependencies.itoa]
version = "1.0"
default-features = false

[dependencies.lexis]
version = "0.2"
default-features = false

[dependencies.lexopt]
version = "0.3"
default-features = false

[dependencies.libc]
version = "0.2"
default-features = false

[dependencies.libcgroups]
version = "0.5"
optional = true

[dependencies.libcontainer]
version = "0.5"
optional = true

[dependencies.libloading]
version = "0.8"
default-features = false

[dependencies.liboci-cli]
version = "0.5"
optional = true

[dependencies.libseccomp]
version = "0.4"
default-features = false

[dependencies.libseccomp-sys]
version = "0.3"

[dependencies.linefeed]
version = "0.6.0"
optional = true
default-features = false

[dependencies.md5]
version = "0.8"
features = ["std"]
default-features = false

[dependencies.memchr]
version = "2.7"
features = ["std"]
default-features = false

[dependencies.netlink-sys]
version = "0.8"
default-features = false

[dependencies.nix]
version = "=0.30.1"
features = [
    "dir",
    "env",
    "event",
    "fanotify",
    "fs",
    "hostname",
    "inotify",
    "mount",
    "mman",
    "net",
    "personality",
    "poll",
    "ptrace",
    "resource",
    "sched",
    "signal",
    "socket",
    "term",
    "time",
    "uio",
    "user",
    "zerocopy",
]
default-features = false

[dependencies.nom]
version = "8.0"
features = [
    "alloc",
    "std",
]
default-features = false

[dependencies.num_cpus]
version = "1.17"
default-features = false

[dependencies.oci-spec]
version = "0.8"
features = ["runtime"]
optional = true
default-features = false

[dependencies.parse-size]
version = "1.1"
default-features = false

[dependencies.procfs]
version = "0.18"
optional = true
default-features = false

[dependencies.procfs-core]
version = "0.18"
default-features = false

[dependencies.raki]
version = "1.3"
optional = true
default-features = false

[dependencies.retry]
version = "2.1"
default-features = false

[dependencies.ringbuf]
version = "0.4"
features = [
    "portable-atomic",
    "std",
]
optional = true
default-features = false

[dependencies.rpassword]
version = "7.4"
default-features = false

[dependencies.sendfd]
version = "0.4"
default-features = false

[dependencies.serde]
version = "1.0"
features = ["std"]
default-features = false
package = "serde_core"

[dependencies.serde_json]
version = "1.0"
features = [
    "preserve_order",
    "std",
]
default-features = false

[dependencies.sha1]
version = "0.10"
features = ["std"]
default-features = false

[dependencies.sha3]
version = "0.10"
features = ["std"]
default-features = false

[dependencies.shellexpand]
version = "3.1"
features = [
    "base-0",
    "tilde",
]
default-features = false

[dependencies.subtle]
version = "2.6"
features = ["std"]
default-features = false

[dependencies.tabwriter]
version = "1.4"
optional = true

[dependencies.tcmalloc]
version = "0.3"
optional = true
default-features = false

[dependencies.tracing]
version = "0.1"
features = ["attributes"]
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
optional = true

[dependencies.yaxpeax-arch]
version = "0.3"
features = ["std"]
optional = true
default-features = false

[dependencies.yaxpeax-arm]
version = "0.4"
features = ["std"]
optional = true
default-features = false

[dependencies.zeroize]
version = "1.8"
features = [
    "simd",
    "std",
]
default-features = false

[dev-dependencies.brunch]
version = "0.8"
default-features = false

[dev-dependencies.goblin]
version = "0.9"
features = [
    "std",
    "elf32",
    "elf64",
    "endian_fd",
]
default-features = false

[dev-dependencies.strum]
version = "0.27"
default-features = false

[dev-dependencies.strum_macros]
version = "0.27"
default-features = false

[dev-dependencies.tempfile]
version = "3.23"
default-features = false

[build-dependencies.pkg-config]
version = "0.3.32"

[target.'cfg(any(target_arch = "aarch64", target_arch = "x86_64"))'.dependencies.tick_counter]
version = "0.4"
default-features = false

[target.'cfg(target_pointer_width = "64")'.dependencies.libmimalloc-sys]
version = "0.1"
features = ["secure"]
default-features = false

[target.'cfg(target_pointer_width = "64")'.dependencies.mimalloc]
version = "0.1"
features = ["secure"]
default-features = false

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(libseccomp_v2_6)"]

[profile.dev]
panic = "unwind"

[profile.release]
lto = "thin"
debug = 2
panic = "unwind"
