mirror of
https://github.com/smoltcp-rs/smoltcp.git
synced 2025-10-01 06:40:46 +00:00
Merge pull request #969 from thvdveld/fix-cfgs
Fix target-arch names and remove unknonwn fuzzing cfg warning
This commit is contained in:
commit
2d4dde7c92
@ -16,6 +16,9 @@ license = "0BSD"
|
||||
# ensure that the correct features are enabled.
|
||||
autoexamples = false
|
||||
|
||||
[lints.rust]
|
||||
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
|
||||
|
||||
[dependencies]
|
||||
managed = { version = "0.8", default-features = false, features = ["map"] }
|
||||
byteorder = { version = "1.0", default-features = false }
|
||||
|
@ -9,12 +9,12 @@ pub const ETH_P_IEEE802154: libc::c_short = 0x00F6;
|
||||
// https://github.com/golang/sys/blob/master/unix/zerrors_linux_<arch>.go
|
||||
pub const TUNSETIFF: libc::c_ulong = if cfg!(any(
|
||||
target_arch = "mips",
|
||||
all(target_arch = "mips", target_endian = "little"),
|
||||
target_arch = "mips64",
|
||||
target_arch = "mips64el",
|
||||
target_arch = "mipsel",
|
||||
all(target_arch = "mips64", target_endian = "little"),
|
||||
target_arch = "powerpc",
|
||||
target_arch = "powerpc64",
|
||||
target_arch = "powerpc64le",
|
||||
all(target_arch = "powerpc64", target_endian = "little"),
|
||||
target_arch = "sparc64"
|
||||
)) {
|
||||
0x800454CA
|
||||
|
Loading…
x
Reference in New Issue
Block a user