iceoryx2_pal_os_api/
lib.rs

1// Copyright (c) 2025 Contributors to the Eclipse Foundation
2//
3// See the NOTICE file(s) distributed with this work for additional
4// information regarding copyright ownership.
5//
6// This program and the accompanying materials are made available under the
7// terms of the Apache Software License 2.0 which is available at
8// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
9// which is available at https://opensource.org/licenses/MIT.
10//
11// SPDX-License-Identifier: Apache-2.0 OR MIT
12
13#![no_std]
14#![allow(clippy::missing_safety_doc)]
15#![warn(clippy::alloc_instead_of_core)]
16#![warn(clippy::std_instead_of_alloc)]
17#![warn(clippy::std_instead_of_core)]
18
19#[cfg(all(target_os = "linux", not(feature = "libc_platform")))]
20#[path = "linux-bindgen/mod.rs"]
21pub mod linux;
22
23#[cfg(all(target_os = "linux", feature = "libc_platform"))]
24#[path = "linux-libc/mod.rs"]
25pub mod linux;
26
27#[cfg(all(not(feature = "libc_platform"), target_os = "linux"))]
28pub(crate) mod internal {
29    #![allow(non_upper_case_globals)]
30    #![allow(non_camel_case_types)]
31    #![allow(non_snake_case)]
32    #![allow(unused)]
33    #![allow(improper_ctypes)]
34    #![allow(unknown_lints)]
35    #![allow(unnecessary_transmutes)]
36    #![allow(clippy::all)]
37    include!(concat!(
38        env!("OUT_DIR"),
39        env!("BAZEL_BINDGEN_PATH_CORRECTION"),
40        "/os_api_generated.rs"
41    ));
42}