From e13a18275e02110ab98953956ab05df74e58cb99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ad=C3=A4?= Date: Thu, 30 Nov 2023 07:49:56 +0100 Subject: [PATCH] more cfg alias targets (#2236) --- build.rs | 3 +++ src/lib.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/build.rs b/build.rs index 4535af1f04..6db634d44f 100644 --- a/build.rs +++ b/build.rs @@ -6,11 +6,14 @@ fn main() { dragonfly: { target_os = "dragonfly" }, ios: { target_os = "ios" }, freebsd: { target_os = "freebsd" }, + fuchsia: { target_os = "fuchsia" }, + haiku: { target_os = "haiku" }, illumos: { target_os = "illumos" }, linux: { target_os = "linux" }, macos: { target_os = "macos" }, netbsd: { target_os = "netbsd" }, openbsd: { target_os = "openbsd" }, + redox: { target_os = "redox" }, solaris: { target_os = "solaris" }, watchos: { target_os = "watchos" }, tvos: { target_os = "tvos" }, diff --git a/src/lib.rs b/src/lib.rs index 0d4416926f..fdcd092378 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -92,6 +92,7 @@ #![cfg_attr(docsrs, feature(doc_cfg))] #![deny(clippy::cast_ptr_alignment)] #![deny(unsafe_op_in_unsafe_fn)] +#![allow(clippy::mismatched_target_os)] // Re-exported external crates pub use libc;