xref: /rust-libc-0.2.174/Cargo.toml (revision ce31fdaf)
168fe98bdSAlex Crichton[package]
268fe98bdSAlex Crichtonname = "libc"
3*ce31fdafSTrevor Grossversion = "0.2.174"
47afe55beSgnzlbgkeywords = ["libc", "ffi", "bindings", "operating", "system"]
57afe55beSgnzlbgcategories = ["external-ffi-bindings", "no-std", "os"]
66ea4b313SYuki Okushiexclude = ["/ci/*", "/.github/*", "/.cirrus.yml", "/triagebot.toml"]
7952bc814SYuri Astrakhandescription = "Raw FFI bindings to platform libraries like libc."
8952bc814SYuri Astrakhanauthors = ["The Rust Project Developers"]
9952bc814SYuri Astrakhanedition = "2021"
10952bc814SYuri Astrakhanlicense = "MIT OR Apache-2.0"
11952bc814SYuri Astrakhanrepository = "https://github.com/rust-lang/libc"
127ddddc55STrevor Grossrust-version = "1.63"
132c57e36eSAlex Crichton
14b083a611SAlan Somers[package.metadata.docs.rs]
15674cc1f4STrevor Grossfeatures = ["extra_traits"]
1653fdfe27SGuillaume Gomezdefault-target = "x86_64-unknown-linux-gnu"
1753fdfe27SGuillaume Gomeztargets = [
18558acf1cSYuki Okushi    "aarch64-apple-darwin",
19a38f1400SGuillaume Gomez    "aarch64-apple-ios",
2053fdfe27SGuillaume Gomez    "aarch64-linux-android",
2153fdfe27SGuillaume Gomez    "aarch64-pc-windows-msvc",
2253fdfe27SGuillaume Gomez    "aarch64-unknown-freebsd",
2353fdfe27SGuillaume Gomez    "aarch64-unknown-fuchsia",
2453fdfe27SGuillaume Gomez    "aarch64-unknown-hermit",
2553fdfe27SGuillaume Gomez    "aarch64-unknown-linux-gnu",
2653fdfe27SGuillaume Gomez    "aarch64-unknown-linux-musl",
2753fdfe27SGuillaume Gomez    "aarch64-unknown-netbsd",
2853fdfe27SGuillaume Gomez    "aarch64-unknown-openbsd",
2953fdfe27SGuillaume Gomez    "aarch64-wrs-vxworks",
3053fdfe27SGuillaume Gomez    "arm-linux-androideabi",
3153fdfe27SGuillaume Gomez    "arm-unknown-linux-gnueabi",
3253fdfe27SGuillaume Gomez    "arm-unknown-linux-gnueabihf",
3353fdfe27SGuillaume Gomez    "arm-unknown-linux-musleabi",
3453fdfe27SGuillaume Gomez    "arm-unknown-linux-musleabihf",
3553fdfe27SGuillaume Gomez    "armebv7r-none-eabi",
3653fdfe27SGuillaume Gomez    "armebv7r-none-eabihf",
3753fdfe27SGuillaume Gomez    "armv5te-unknown-linux-gnueabi",
3853fdfe27SGuillaume Gomez    "armv5te-unknown-linux-musleabi",
3953fdfe27SGuillaume Gomez    "armv7-linux-androideabi",
4053fdfe27SGuillaume Gomez    "armv7-unknown-linux-gnueabihf",
4153fdfe27SGuillaume Gomez    "armv7-unknown-linux-musleabihf",
4253fdfe27SGuillaume Gomez    "armv7-wrs-vxworks-eabihf",
4353fdfe27SGuillaume Gomez    "armv7r-none-eabi",
4453fdfe27SGuillaume Gomez    "armv7r-none-eabihf",
45c919faf0STrevor Gross    # FIXME(hexagon): excluded due to duplicate symbol errors
46c919faf0STrevor Gross    # "hexagon-unknown-linux-musl",
4753fdfe27SGuillaume Gomez    "i586-unknown-linux-gnu",
4853fdfe27SGuillaume Gomez    "i586-unknown-linux-musl",
4953fdfe27SGuillaume Gomez    "i686-linux-android",
5053fdfe27SGuillaume Gomez    "i686-pc-windows-gnu",
5153fdfe27SGuillaume Gomez    "i686-pc-windows-msvc",
5253fdfe27SGuillaume Gomez    "i686-pc-windows-msvc",
5353fdfe27SGuillaume Gomez    "i686-unknown-freebsd",
5453fdfe27SGuillaume Gomez    "i686-unknown-haiku",
5553fdfe27SGuillaume Gomez    "i686-unknown-linux-gnu",
5653fdfe27SGuillaume Gomez    "i686-unknown-linux-musl",
5753fdfe27SGuillaume Gomez    "i686-unknown-netbsd",
5853fdfe27SGuillaume Gomez    "i686-unknown-openbsd",
5953fdfe27SGuillaume Gomez    "i686-wrs-vxworks",
6053fdfe27SGuillaume Gomez    "mips-unknown-linux-gnu",
6153fdfe27SGuillaume Gomez    "mips-unknown-linux-musl",
6253fdfe27SGuillaume Gomez    "mips64-unknown-linux-gnuabi64",
6353fdfe27SGuillaume Gomez    "mips64-unknown-linux-muslabi64",
6453fdfe27SGuillaume Gomez    "mips64el-unknown-linux-gnuabi64",
6553fdfe27SGuillaume Gomez    "mips64el-unknown-linux-muslabi64",
6653fdfe27SGuillaume Gomez    "mipsel-sony-psp",
6753fdfe27SGuillaume Gomez    "mipsel-unknown-linux-gnu",
6853fdfe27SGuillaume Gomez    "mipsel-unknown-linux-musl",
6953fdfe27SGuillaume Gomez    "nvptx64-nvidia-cuda",
7053fdfe27SGuillaume Gomez    "powerpc-unknown-linux-gnu",
7153fdfe27SGuillaume Gomez    "powerpc-unknown-linux-gnuspe",
7253fdfe27SGuillaume Gomez    "powerpc-unknown-netbsd",
7353fdfe27SGuillaume Gomez    "powerpc-wrs-vxworks",
7453fdfe27SGuillaume Gomez    "powerpc-wrs-vxworks-spe",
756595c614SXing Xue    "powerpc64-ibm-aix",
7653fdfe27SGuillaume Gomez    "powerpc64-unknown-freebsd",
7753fdfe27SGuillaume Gomez    "powerpc64-unknown-linux-gnu",
7853fdfe27SGuillaume Gomez    "powerpc64-wrs-vxworks",
7953fdfe27SGuillaume Gomez    "powerpc64le-unknown-linux-gnu",
8053fdfe27SGuillaume Gomez    "riscv32gc-unknown-linux-gnu",
8153fdfe27SGuillaume Gomez    "riscv32i-unknown-none-elf",
8253fdfe27SGuillaume Gomez    "riscv32imac-unknown-none-elf",
8353fdfe27SGuillaume Gomez    "riscv32imc-unknown-none-elf",
843c09095cSB I Mohammed Abbas    "riscv32-wrs-vxworks",
8553fdfe27SGuillaume Gomez    "riscv64gc-unknown-freebsd",
8654f63b79SMartin Kröning    "riscv64gc-unknown-hermit",
8753fdfe27SGuillaume Gomez    "riscv64gc-unknown-linux-gnu",
8853fdfe27SGuillaume Gomez    "riscv64gc-unknown-linux-musl",
8953fdfe27SGuillaume Gomez    "riscv64gc-unknown-none-elf",
9053fdfe27SGuillaume Gomez    "riscv64imac-unknown-none-elf",
913c09095cSB I Mohammed Abbas    "riscv64-wrs-vxworks",
9253fdfe27SGuillaume Gomez    "s390x-unknown-linux-gnu",
9353fdfe27SGuillaume Gomez    "s390x-unknown-linux-musl",
9453fdfe27SGuillaume Gomez    "sparc-unknown-linux-gnu",
9553fdfe27SGuillaume Gomez    "sparc64-unknown-linux-gnu",
9653fdfe27SGuillaume Gomez    "sparc64-unknown-netbsd",
9753fdfe27SGuillaume Gomez    "sparcv9-sun-solaris",
9853fdfe27SGuillaume Gomez    "thumbv6m-none-eabi",
9953fdfe27SGuillaume Gomez    "thumbv7em-none-eabi",
10053fdfe27SGuillaume Gomez    "thumbv7em-none-eabihf",
10153fdfe27SGuillaume Gomez    "thumbv7m-none-eabi",
10253fdfe27SGuillaume Gomez    "thumbv7neon-linux-androideabi",
10353fdfe27SGuillaume Gomez    "thumbv7neon-unknown-linux-gnueabihf",
10453fdfe27SGuillaume Gomez    "wasm32-unknown-emscripten",
10553fdfe27SGuillaume Gomez    "wasm32-unknown-unknown",
106a38f1400SGuillaume Gomez    "x86_64-apple-darwin",
107a38f1400SGuillaume Gomez    "x86_64-apple-ios",
10853fdfe27SGuillaume Gomez    "x86_64-fortanix-unknown-sgx",
10953fdfe27SGuillaume Gomez    "x86_64-linux-android",
11053fdfe27SGuillaume Gomez    "x86_64-pc-solaris",
11153fdfe27SGuillaume Gomez    "x86_64-pc-windows-gnu",
11253fdfe27SGuillaume Gomez    "x86_64-pc-windows-msvc",
11353fdfe27SGuillaume Gomez    "x86_64-unknown-dragonfly",
11453fdfe27SGuillaume Gomez    "x86_64-unknown-freebsd",
11553fdfe27SGuillaume Gomez    "x86_64-unknown-fuchsia",
11653fdfe27SGuillaume Gomez    "x86_64-unknown-haiku",
11753fdfe27SGuillaume Gomez    "x86_64-unknown-hermit",
11853fdfe27SGuillaume Gomez    "x86_64-unknown-illumos",
11953fdfe27SGuillaume Gomez    "x86_64-unknown-l4re-uclibc",
12053fdfe27SGuillaume Gomez    "x86_64-unknown-linux-gnu",
12153fdfe27SGuillaume Gomez    "x86_64-unknown-linux-gnux32",
12253fdfe27SGuillaume Gomez    "x86_64-unknown-linux-musl",
12353fdfe27SGuillaume Gomez    "x86_64-unknown-netbsd",
12453fdfe27SGuillaume Gomez    "x86_64-unknown-openbsd",
12553fdfe27SGuillaume Gomez    "x86_64-unknown-redox",
12653fdfe27SGuillaume Gomez    "x86_64-wrs-vxworks"
12753fdfe27SGuillaume Gomez]
128bcecfe54SGuillaume Gomezcargo-args = ["-Zbuild-std=core"]
129b083a611SAlan Somers
13091bd079eSAlex Crichton[dependencies]
13191bd079eSAlex Crichtonrustc-std-workspace-core = { version = "1.0.0", optional = true }
13291bd079eSAlex Crichton
1332c57e36eSAlex Crichton[features]
1345d2b17f3STrevor Grossdefault = ["std"]
1354ac26afaSgnzlbgstd = []
13691bd079eSAlex Crichtonrustc-dep-of-std = ['align', 'rustc-std-workspace-core']
137a17a91cdSgnzlbgextra_traits = []
138674cc1f4STrevor Gross
139674cc1f4STrevor Gross# `const-extern-function` is deprecated and no longer does anything
1405dfc2c82SAaron Hillconst-extern-fn = []
141b5b553d0STrevor Gross
142b5b553d0STrevor Gross# `align` is deprecated and no longer does anything
143b5b553d0STrevor Grossalign = []
144b5b553d0STrevor Gross
1454ac26afaSgnzlbg# use_std is deprecated, use `std` instead
1464ac26afaSgnzlbguse_std = ['std']
147739edbc4SAlex Crichton
148739edbc4SAlex Crichton[workspace]
149a45a6c3fSTrevor Grossmembers = [
150a45a6c3fSTrevor Gross    "ctest",
151600d8adcSmbyx    "ctest-next",
152a45a6c3fSTrevor Gross    "libc-test",
153a45a6c3fSTrevor Gross]
154e70b031fSYuri Astrakhan
155c544ee4dSYuri Astrakhan# FIXME(msrv): These should be renamed as `[workspace.lints.*]` once MSRV is above 1.64
156e70b031fSYuri Astrakhan#       This way all crates can use it with `[lints] workspace=true` section
157e70b031fSYuri Astrakhan
158e70b031fSYuri Astrakhan[lints.rust]
159c544ee4dSYuri Astrakhan# FIXME(cleanup): make ident usage consistent in each file
160e70b031fSYuri Astrakhanunused_qualifications = "allow"
161e70b031fSYuri Astrakhan
162e70b031fSYuri Astrakhan[lints.clippy]
163a598506fSYuri Astrakhan# Enable pedantic lints - use this manually once in a while, but don't enable by default
164a598506fSYuri Astrakhan# pedantic = { level = "warn", priority = -1 }
165c544ee4dSYuri Astrakhan
166a598506fSYuri Astrakhan# We are okay with the current state of these lints
167a598506fSYuri Astrakhanexplicit_iter_loop = "warn"
168a598506fSYuri Astrakhanidentity_op = "allow"  # some expressions like `0 | x` are clearer for bit ops
169a598506fSYuri Astrakhanmanual_assert = "warn"
170a598506fSYuri Astrakhanmap_unwrap_or = "warn"
171a598506fSYuri Astrakhanmissing_safety_doc = "allow"  # safety? in libc? seriously?
172a598506fSYuri Astrakhannon_minimal_cfg = "allow"  # for some reason cfg_if! sometimes trigger this
173a598506fSYuri Astrakhanptr_as_ptr = "warn"
174a598506fSYuri Astrakhanunnecessary_semicolon = "warn"
175a598506fSYuri Astrakhan
176a598506fSYuri Astrakhan# FIXME(clippy): these should be fixed if possible
177a598506fSYuri Astrakhanexpl_impl_clone_on_copy = "allow"
178a598506fSYuri Astrakhanuninlined_format_args = "allow"
179a598506fSYuri Astrakhanunnecessary_cast = "allow"  # some casts like `as usize` are only needed for some targets
180a598506fSYuri Astrakhanused_underscore_binding = "allow"
181