phper_sys/lib.rs
1// Copyright (c) 2022 PHPER Framework Team
2// PHPER is licensed under Mulan PSL v2.
3// You can use this software according to the terms and conditions of the Mulan
4// PSL v2. You may obtain a copy of Mulan PSL v2 at:
5// http://license.coscl.org.cn/MulanPSL2
6// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
7// KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
8// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
9// See the Mulan PSL v2 for more details.
10
11#![warn(rust_2018_idioms)]
12#![warn(clippy::dbg_macro, clippy::print_stdout)]
13#![allow(non_upper_case_globals)]
14#![allow(non_camel_case_types)]
15#![allow(non_snake_case)]
16// TODO Because `bindgen` generates codes contains deref nullptr, temporary suppression.
17#![allow(deref_nullptr)]
18// Allow specific clippy lints triggered by bindgen-generated code.
19#![allow(
20 clippy::missing_safety_doc,
21 clippy::too_many_arguments,
22 clippy::useless_transmute,
23 clippy::redundant_static_lifetimes,
24 clippy::unreadable_literal,
25 clippy::ptr_offset_with_cast
26)]
27// TODO unsafe_op_in_unsafe_fn warning in edition 2024, temporary suppression.
28#![allow(unsafe_op_in_unsafe_fn)]
29#![doc = include_str!("../README.md")]
30#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/112468984?s=200&v=4")]
31
32include!(concat!(env!("OUT_DIR"), "/php_bindings.rs"));