# 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.65"
name = "libc"
version = "0.2.186"
authors = ["The Rust Project Developers"]
build = "build.rs"
exclude = [
    "/ci/*",
    "/.github/*",
    "/triagebot.toml",
    "cherry-pick-stable.sh",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Raw FFI bindings to platform libraries like libc."
readme = "README.md"
keywords = [
    "libc",
    "ffi",
    "bindings",
    "operating",
    "system",
]
categories = [
    "external-ffi-bindings",
    "no-std",
    "os",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-lang/libc"

[package.metadata.docs.rs]
features = ["extra_traits"]
default-target = "x86_64-unknown-linux-gnu"
targets = [
    "aarch64-apple-darwin",
    "aarch64-pc-windows-msvc",
    "aarch64-unknown-linux-gnu",
    "i686-pc-windows-msvc",
    "i686-unknown-linux-gnu",
    "x86_64-pc-windows-gnu",
    "x86_64-pc-windows-msvc",
    "x86_64-unknown-linux-gnu",
    "aarch64-pc-windows-gnullvm",
    "aarch64-unknown-linux-musl",
    "aarch64-unknown-linux-ohos",
    "arm-unknown-linux-gnueabi",
    "arm-unknown-linux-gnueabihf",
    "armv7-unknown-linux-gnueabihf",
    "armv7-unknown-linux-ohos",
    "i686-pc-windows-gnu",
    "loongarch64-unknown-linux-gnu",
    "loongarch64-unknown-linux-musl",
    "powerpc-unknown-linux-gnu",
    "powerpc64-unknown-linux-gnu",
    "powerpc64le-unknown-linux-gnu",
    "powerpc64le-unknown-linux-musl",
    "riscv64gc-unknown-linux-gnu",
    "s390x-unknown-linux-gnu",
    "sparcv9-sun-solaris",
    "x86_64-apple-darwin",
    "x86_64-pc-solaris",
    "x86_64-pc-windows-gnullvm",
    "x86_64-unknown-freebsd",
    "x86_64-unknown-illumos",
    "x86_64-unknown-linux-musl",
    "x86_64-unknown-linux-ohos",
    "x86_64-unknown-netbsd",
    "aarch64-apple-ios",
    "aarch64-apple-tvos",
    "aarch64-apple-visionos",
    "aarch64-apple-watchos",
    "aarch64-linux-android",
    "aarch64-unknown-fuchsia",
    "arm-linux-androideabi",
    "arm-unknown-linux-musleabi",
    "arm-unknown-linux-musleabihf",
    "arm64ec-pc-windows-msvc",
    "armv5te-unknown-linux-gnueabi",
    "armv5te-unknown-linux-musleabi",
    "armv7-linux-androideabi",
    "armv7-unknown-linux-musleabihf",
    "i586-unknown-linux-gnu",
    "i586-unknown-linux-musl",
    "i686-linux-android",
    "i686-unknown-freebsd",
    "i686-unknown-linux-musl",
    "nvptx64-nvidia-cuda",
    "riscv64gc-unknown-linux-musl",
    "sparc64-unknown-linux-gnu",
    "thumbv7neon-linux-androideabi",
    "thumbv7neon-unknown-linux-gnueabihf",
    "wasm32-unknown-emscripten",
    "wasm32-unknown-unknown",
    "wasm32-wasip1",
    "wasm32-wasip2",
    "x86_64-fortanix-unknown-sgx",
    "x86_64-linux-android",
    "x86_64-unknown-fuchsia",
    "x86_64-unknown-linux-gnux32",
    "x86_64-unknown-redox",
    "aarch64-unknown-freebsd",
    "aarch64-unknown-hermit",
    "aarch64-unknown-illumos",
    "aarch64-unknown-netbsd",
    "aarch64-unknown-nto-qnx800",
    "aarch64-unknown-openbsd",
    "aarch64-unknown-redox",
    "aarch64-wrs-vxworks",
    "aarch64_be-unknown-linux-gnu",
    "aarch64_be-unknown-linux-musl",
    "armebv7r-none-eabi",
    "armebv7r-none-eabihf",
    "armv7-linux-androideabi",
    "armv7-wrs-vxworks-eabihf",
    "armv7r-none-eabi",
    "armv7r-none-eabihf",
    "hexagon-unknown-linux-musl",
    "i686-unknown-haiku",
    "i686-unknown-netbsd",
    "i686-unknown-openbsd",
    "i686-wrs-vxworks",
    "mips-unknown-linux-gnu",
    "mips-unknown-linux-musl",
    "mips64-unknown-linux-gnuabi64",
    "mips64-unknown-linux-muslabi64",
    "mips64el-unknown-linux-gnuabi64",
    "mips64el-unknown-linux-muslabi64",
    "mipsel-sony-psp",
    "mipsel-unknown-linux-gnu",
    "mipsel-unknown-linux-musl",
    "powerpc-unknown-linux-gnuspe",
    "powerpc-unknown-netbsd",
    "powerpc-wrs-vxworks",
    "powerpc-wrs-vxworks-spe",
    "powerpc64-ibm-aix",
    "powerpc64-unknown-freebsd",
    "powerpc64-unknown-linux-gnu",
    "powerpc64-unknown-linux-musl",
    "powerpc64-wrs-vxworks",
    "riscv32-wrs-vxworks",
    "riscv32gc-unknown-linux-musl",
    "riscv32i-unknown-none-elf",
    "riscv32imac-unknown-none-elf",
    "riscv32imc-unknown-none-elf",
    "riscv64-wrs-vxworks",
    "riscv64gc-unknown-freebsd",
    "riscv64gc-unknown-hermit",
    "riscv64gc-unknown-none-elf",
    "riscv64imac-unknown-none-elf",
    "s390x-unknown-linux-musl",
    "sparc-unknown-linux-gnu",
    "sparc64-unknown-netbsd",
    "thumbv6m-none-eabi",
    "thumbv7em-none-eabi",
    "thumbv7em-none-eabihf",
    "thumbv7m-none-eabi",
    "wasm32-wasip3",
    "x86_64-apple-ios",
    "x86_64-pc-cygwin",
    "x86_64-unknown-dragonfly",
    "x86_64-unknown-haiku",
    "x86_64-unknown-hermit",
    "x86_64-unknown-hurd-gnu",
    "x86_64-unknown-l4re-uclibc",
    "x86_64-unknown-openbsd",
    "x86_64-wrs-vxworks",
]
cargo-args = ["-Zbuild-std=core"]

[package.metadata.cargo-semver-checks.lints]
repr_align_removed = "warn"
global_value_marked_deprecated = "warn"

[features]
align = []
const-extern-fn = []
default = ["std"]
extra_traits = []
rustc-dep-of-std = [
    "align",
    "rustc-std-workspace-core",
]
std = []
use_std = ["std"]

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

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

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

[lints.clippy]
expl_impl_clone_on_copy = "allow"
explicit_iter_loop = "warn"
identity_op = "allow"
manual_assert = "warn"
map_unwrap_or = "warn"
missing_safety_doc = "allow"
non_minimal_cfg = "allow"
ptr_as_ptr = "warn"
uninlined_format_args = "allow"
unnecessary_cast = "allow"
unnecessary_semicolon = "warn"
used_underscore_binding = "allow"

[lints.rust]
unused_qualifications = "allow"
