#![deny(rust_2018_idioms)]
#![warn(missing_docs)]
#![cfg_attr(test, recursion_limit = "256")]
#![doc(
html_logo_url = "https://raw.githubusercontent.com/z-galaxy/zbus/9f7a90d2b594ddc48b7a5f39fda5e00cd56a7dfb/logo.png"
)]
#![cfg_attr(all(feature = "proxy", feature = "service"), doc = include_str!("../README.md"))]
#",
doc = "for an overview of the crate."
)]
# and the [bus name types](crate::names) are \
compiled in.\n"
)]
#![doc(test(attr(
warn(unused),
deny(warnings),
allow(dead_code),
// W/o this, we seem to get some bogus warning about `extern crate zbus`.
allow(unused_extern_crates),
)))]
#[cfg(all(doctest, feature = "comms"))]
mod doctests {
#[cfg(all(feature = "proxy", feature = "service"))]
doc_comment::doctest!("../../README.md");
#[cfg(feature = "proxy")]
doc_comment::doctest!("../../book/src/client.md");
doc_comment::doctest!("../../book/src/concepts.md");
#[cfg(feature = "p2p")]
doc_comment::doctest!("../../book/src/connection.md");
doc_comment::doctest!("../../book/src/contributors.md");
doc_comment::doctest!("../../book/src/introduction.md");
#[cfg(all(feature = "proxy", feature = "service"))]
doc_comment::doctest!("../../book/src/service.md");
#[cfg(all(feature = "proxy", feature = "service"))]
doc_comment::doctest!("../../book/src/upgrading-to-6.md");
#[cfg(all(feature = "proxy", feature = "service"))]
doc_comment::doctest!("../../book/src/faq.md");
}
mod error;
pub use error::*;
pub mod wire;
#[doc(inline)]
pub use wire::{
Array, Basic, DeserializeDict, Dict, DynamicTuple, DynamicType, FilePath, NoneValue,
ObjectPath, Optional, OwnedObjectPath, OwnedStructure, OwnedVariant, SerializeDict, Signature,
Str, Structure, Type, Variant, as_variant,
};
#[cfg(unix)]
#[doc(inline)]
pub use wire::{Fd, OwnedFd};
#[doc(inline)]
pub use zbus_macros::signature;
pub mod names;
#[deprecated(
since = "6.0.0",
note = "zvariant was merged into zbus; use `zbus` for types, `zbus::wire` for codecs"
)]
pub mod zvariant;
#[cfg(all(feature = "comms", windows))]
mod win32;
#[cfg(feature = "comms")]
mod dbus_error;
#[cfg(feature = "comms")]
pub use dbus_error::*;
#[cfg(feature = "comms")]
pub mod address;
#[cfg(feature = "comms")]
pub use address::Address;
#[cfg(feature = "comms")]
mod guid;
#[cfg(feature = "comms")]
pub use guid::*;
#[cfg(feature = "comms")]
pub mod message;
#[cfg(feature = "comms")]
pub use message::Message;
#[cfg(feature = "comms")]
pub mod connection;
#[cfg(feature = "comms")]
pub use connection as conn;
#[cfg(feature = "comms")]
pub use connection::Connection;
#[cfg(feature = "comms")]
mod message_stream;
#[cfg(feature = "comms")]
pub use message_stream::*;
#[cfg(feature = "comms")]
pub mod runtime;
#[cfg(feature = "comms")]
pub use runtime::AsyncDrop;
#[cfg(feature = "comms")]
pub mod match_rule;
#[cfg(feature = "comms")]
pub use match_rule::{MatchRule, OwnedMatchRule};
#[cfg(feature = "proxy")]
pub mod proxy;
#[cfg(feature = "proxy")]
pub use proxy::Proxy;
#[cfg(feature = "service")]
pub mod object_server;
#[cfg(feature = "service")]
pub use object_server::ObjectServer;
#[cfg(feature = "comms")]
mod log;
#[cfg(feature = "comms")]
mod utils;
#[cfg(feature = "comms")]
pub use utils::*;
#[cfg(feature = "comms")]
#[macro_use]
pub mod fdo;
#[cfg(feature = "comms")]
pub use zbus_macros::DBusError;
#[cfg(feature = "service")]
pub use zbus_macros::interface;
#[cfg(feature = "proxy")]
pub use zbus_macros::proxy;
#[cfg(feature = "proxy")]
#[doc(hidden)]
#[macro_export]
macro_rules! __if_proxy_feature {
($($item:tt)*) => { $($item)* };
}
#[cfg(not(feature = "proxy"))]
#[doc(hidden)]
#[macro_export]
macro_rules! __if_proxy_feature {
($($item:tt)*) => {};
}
extern crate self as zbus;
#[cfg(feature = "comms")]
#[doc(hidden)]
pub mod export {
pub use async_trait;
pub use futures_core;
pub use ordered_stream;
pub use serde;
}