#![cfg_attr(not(feature = "std"), no_std)]
#![forbid(unsafe_code)]
#![doc = include_str!("../README.md")]
extern crate self as hiway;
#[cfg(all(test, not(feature = "std")))]
extern crate std;
#[cfg(feature = "std")]
mod alloc_local;
mod error;
mod event;
#[cfg(feature = "std")]
mod grant;
mod link;
mod local;
pub mod locking;
mod metadata;
#[cfg(feature = "std")]
mod resources;
mod schema;
#[cfg(feature = "std")]
mod synchronization;
pub mod transform;
pub mod transport;
#[cfg(all(feature = "tokio-io", unix))]
mod unix;
mod wire;
pub use event::{Delivery, EventId, EventSpec, EventValue};
pub use hiway_macros::{events, graph, port};
pub use link::Link;
pub use metadata::{DedupKey, EventMetadata, OriginId, SchemaRevision, WireEnvelope, WireMajor};
pub use schema::{
validate_evolution, validate_schema, FieldKind, FieldPresence, FieldSpec, Schema, SchemaError,
};
pub use transform::{AsyncTransform, Then, Transform, TransformOp};
pub use wire::{
DecodeContext, DecodeError, EnvelopeHeader, WireCodec, WireError, ENVELOPE_HEADER_BYTES,
};
#[cfg(feature = "std")]
pub use resources::{Resource, ResourceReservation};
#[cfg(feature = "std")]
pub use alloc_local::{
DynamicFabric, DynamicReceiver, DynamicSender, PreparedPublication, StreamConfig,
};
#[cfg(feature = "std")]
pub use grant::{Grant, Limits, Permission, Rights, StreamLimits};
#[cfg(all(feature = "tokio-io", unix))]
pub use unix::{IpcError, UnixAccountability, UnixLink};
pub use local::{
publish, EventPort, EventReceiver, EventSender, OwnedPortBinding, PayloadValue, Port,
PortBinding, PortExt, PortPreparation, PreparedSend, SendEventReceiver, SendEventSender,
StaticFabric, StaticPublication, StaticReceiveFuture, StaticReceiver, StaticSendFuture,
StaticSender, StaticStream, StreamItem, SubscriptionRole, Topic,
};
pub use error::{
CloseReason, PortError, ReceiveError, SendError, TopicError, TopicTypeMismatch, TrySendError,
};