Skip to content

Commit e13a182

Browse files
authored
more cfg alias targets (#2236)
1 parent 39ad47b commit e13a182

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

build.rs

+3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ fn main() {
66
dragonfly: { target_os = "dragonfly" },
77
ios: { target_os = "ios" },
88
freebsd: { target_os = "freebsd" },
9+
fuchsia: { target_os = "fuchsia" },
10+
haiku: { target_os = "haiku" },
911
illumos: { target_os = "illumos" },
1012
linux: { target_os = "linux" },
1113
macos: { target_os = "macos" },
1214
netbsd: { target_os = "netbsd" },
1315
openbsd: { target_os = "openbsd" },
16+
redox: { target_os = "redox" },
1417
solaris: { target_os = "solaris" },
1518
watchos: { target_os = "watchos" },
1619
tvos: { target_os = "tvos" },

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
#![cfg_attr(docsrs, feature(doc_cfg))]
9393
#![deny(clippy::cast_ptr_alignment)]
9494
#![deny(unsafe_op_in_unsafe_fn)]
95+
#![allow(clippy::mismatched_target_os)]
9596

9697
// Re-exported external crates
9798
pub use libc;

0 commit comments

Comments
 (0)