Files
third_party_rust_linux-raw-sys/Cargo.toml
T
Dan Gohman 1b7dfcdda0 Add tests to ensure that the C type definitions match libc. (#27)
* Add tests to ensure that the C type definitions match libc.

In no-std mode, we don't depend on libc. But, we still want to be sure
that our types match those of libc. This adds a libc dev-dependency and
checks that the types are the same in cargo-test.

* Use `cargo check --tests` instead of `cargo test`.

We only have static-assertion tests, and `cargo check --tests` is enough
for those, and doesn't require installing cross-compilers.
2022-02-16 10:24:12 -08:00

36 lines
1.0 KiB
TOML

[package]
name = "linux-raw-sys"
version = "0.0.42"
authors = ["Dan Gohman <dev@sunfishcode.online>"]
description = "Generated bindings for Linux's userspace API"
documentation = "https://docs.rs/linux-raw-sys"
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
repository = "https://github.com/sunfishcode/linux-raw-sys"
edition = "2018"
keywords = ["linux", "uapi", "ffi"]
categories = ["external-ffi-bindings"]
exclude = ["/gen", "/.*"]
[dependencies]
core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" }
compiler_builtins = { version = '0.1.49', optional = true }
[dev-dependencies]
static_assertions = "1.1.0"
libc = "0.2.100"
[package.metadata.docs.rs]
features = ["default", "ioctl", "netlink"]
targets = ["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu"]
# The rest of this file is auto-generated!
[features]
errno = []
general = []
ioctl = []
netlink = []
default = ["std", "general", "errno"]
std = []
no_std = []
rustc-dep-of-std = ["core", "compiler_builtins", "no_std"]