fidl_next/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright 2024 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

//! Next-generation FIDL Rust bindings library.

#![deny(
    future_incompatible,
    missing_docs,
    nonstandard_style,
    unused,
    warnings,
    clippy::all,
    clippy::alloc_instead_of_core,
    clippy::missing_safety_doc,
    clippy::std_instead_of_core,
    // TODO: re-enable this lint after justifying unsafe blocks
    // clippy::undocumented_unsafe_blocks,
    rustdoc::broken_intra_doc_links,
    rustdoc::missing_crate_level_docs
)]
#![forbid(unsafe_op_in_unsafe_fn)]

pub use bitflags::bitflags;
pub use munge::munge;
pub use rend::{f32_le, f64_le, i16_le, i32_le, i64_le, u16_le, u32_le, u64_le};
pub use zerocopy::{FromBytes, IntoBytes};

pub use self::chunk::*;
pub use self::decode::*;
pub use self::decoder::{Decoder, DecoderExt};
pub use self::encode::*;
pub use self::encoder::{Encoder, EncoderExt};
pub use self::endpoint::*;
#[cfg(target_os = "fuchsia")]
pub use self::fuchsia::*;
pub use self::owned::*;
pub use self::slot::*;
pub use self::take::*;
pub use self::wire::*;

#[cfg(test)]
#[macro_use]
mod testing;

mod chunk;
pub mod decode;
pub mod decoder;
pub mod encode;
pub mod encoder;
mod endpoint;
#[cfg(target_os = "fuchsia")]
pub mod fuchsia;
mod owned;
pub mod protocol;
mod slot;
mod take;
mod wire;