fidl_next/
lib.rs

1// Copyright 2024 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5//! Next-generation FIDL Rust bindings library.
6
7#![deny(
8    future_incompatible,
9    missing_docs,
10    nonstandard_style,
11    unused,
12    warnings,
13    clippy::all,
14    clippy::alloc_instead_of_core,
15    clippy::missing_safety_doc,
16    clippy::std_instead_of_core,
17    // TODO: re-enable this lint after justifying unsafe blocks
18    // clippy::undocumented_unsafe_blocks,
19    rustdoc::broken_intra_doc_links,
20    rustdoc::missing_crate_level_docs
21)]
22#![forbid(unsafe_op_in_unsafe_fn)]
23
24pub use ::fidl_next_bind::*;
25pub use ::fidl_next_codec::*;
26pub use ::fidl_next_protocol::{
27    self as protocol, Flexible, FlexibleResult, FrameworkError, ProtocolError, RecvFuture,
28    SendFuture, Transport, WireFlexible, WireFlexibleResult, WireFrameworkError,
29};
30
31/// Fuchsia-specific FIDL extensions.
32#[cfg(target_os = "fuchsia")]
33pub mod fuchsia {
34    pub use ::fidl_next_bind::fuchsia::*;
35    pub use ::fidl_next_codec::fuchsia::*;
36    pub use ::fidl_next_protocol::fuchsia::*;
37}