hyperlight_common/
lib.rs

1/*
2Copyright 2025  The Hyperlight Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8    http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17#![cfg_attr(not(any(test, debug_assertions)), warn(clippy::panic))]
18#![cfg_attr(not(any(test, debug_assertions)), warn(clippy::expect_used))]
19#![cfg_attr(not(any(test, debug_assertions)), warn(clippy::unwrap_used))]
20// We use Arbitrary during fuzzing, which requires std
21#![cfg_attr(not(feature = "fuzzing"), no_std)]
22
23extern crate alloc;
24
25pub mod flatbuffer_wrappers;
26/// cbindgen:ignore
27/// FlatBuffers-related utilities and (mostly) generated code
28#[allow(
29    dead_code,
30    unused_imports,
31    clippy::all,
32    clippy::unwrap_used,
33    unsafe_op_in_unsafe_fn,
34    non_camel_case_types
35)]
36mod flatbuffers;
37/// cbindgen:ignore
38pub mod mem;
39
40/// cbindgen:ignore
41pub mod outb;
42
43/// cbindgen:ignore
44pub mod resource;