Skip to main content

dittolive_ditto_base/
lib.rs

1//! This crate defines the types that Ditto uses as part of its FFI.
2//!
3//! Instead of importing this crate directly, [see Ditto's Rust SDK at
4//! `dittolive_ditto`][0].
5//!
6//! [0]: https://docs.rs/dittolive_ditto
7
8#![warn(rust_2018_idioms)]
9#![warn(clippy::correctness)]
10#![cfg_attr(not(test), warn(clippy::perf))]
11#![cfg_attr(
12    doc,
13    warn(
14        rustdoc::bare_urls,
15        rustdoc::broken_intra_doc_links,
16        rustdoc::invalid_codeblock_attributes,
17        rustdoc::invalid_rust_codeblocks,
18    )
19)]
20
21#[allow(unused_extern_crates, clippy::all)]
22#[cfg(feature = "safer-ffi-internal")]
23extern crate safer_ffi_internal as safer_ffi;
24
25#[cfg(feature = "experimental-pk")]
26/// See [`PeerPubkey`](crate::peer_pubkey::PeerPubkey)
27pub mod peer_pubkey;
28
29#[cfg(feature = "experimental-bus")]
30/// The (experimental) Stream-based low-level FFI for the the Bus.
31///
32/// This FFI is not intended to be used directly, but instead through the API provided by the
33/// [`bus`] module.
34pub mod bus_ffi;
35
36#[cfg(feature = "experimental-bus")]
37/// The (experimental) Stream-based API for the the Bus.
38pub mod bus;