# 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.63"
name = "linux-raw-sys"
version = "0.4.15"
authors = ["Dan Gohman <dev@sunfishcode.online>"]
build = false
exclude = [
    "/gen",
    "/.*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generated bindings for Linux's userspace API"
documentation = "https://docs.rs/linux-raw-sys"
readme = "README.md"
keywords = [
    "linux",
    "uapi",
    "ffi",
]
categories = ["external-ffi-bindings"]
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
repository = "https://github.com/sunfishcode/linux-raw-sys"

[package.metadata.docs.rs]
features = [
    "default",
    "bootparam",
    "btrfs",
    "elf_uapi",
    "ioctl",
    "landlock",
    "netlink",
    "io_uring",
    "if_arp",
    "if_ether",
    "if_packet",
    "net",
    "ptrace",
    "prctl",
    "elf",
    "xdp",
    "mempolicy",
    "system",
    "loop_device",
]
targets = [
    "x86_64-unknown-linux-gnu",
    "i686-unknown-linux-gnu",
]

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

[dependencies.compiler_builtins]
version = "0.1.49"
optional = true

[dependencies.core]
version = "1.0.0"
optional = true
package = "rustc-std-workspace-core"

[dev-dependencies.libc]
version = "0.2.100"

[dev-dependencies.static_assertions]
version = "1.1.0"

[features]
bootparam = []
btrfs = []
default = [
    "std",
    "general",
    "errno",
]
elf = []
elf_uapi = []
errno = []
general = []
if_arp = []
if_ether = []
if_packet = []
io_uring = []
ioctl = []
landlock = []
loop_device = []
mempolicy = []
net = []
netlink = []
no_std = []
prctl = []
ptrace = []
rustc-dep-of-std = [
    "core",
    "compiler_builtins",
    "no_std",
]
std = []
system = []
xdp = []

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(target_arch, values("xtensa"))']
