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(clippy::all)]
19#![doc = include_str!("../README.md")]
20
21include!(concat!(env!("OUT_DIR"), "/php_bindings.rs"));