pub use ruststream::RequestReply;
pub use ruststream::prelude::*;
pub use crate::endpoint::ZmqEndpoint;
pub use crate::{
ZmqFanout, ZmqFanoutPublish, ZmqQueue, ZmqQueuePublish, ZmqRpc, ZmqRpcPublish, fanout, queue,
rpc,
};
#[cfg(test)]
mod tests {
mod queue {
use crate::queue::prelude::*;
#[expect(dead_code, reason = "the bound is the assertion; nothing calls it")]
fn handler_bound<T: Publisher>() {}
#[test]
fn the_mount_site_vocabulary_is_the_bare_name() {
let _: Publish = Publish;
}
}
mod fanout {
use crate::fanout::prelude::*;
#[expect(dead_code, reason = "the bound is the assertion; nothing calls it")]
fn handler_bound<T: Publisher>() {}
#[test]
fn the_mount_site_vocabulary_is_the_bare_name() {
let _: Publish = Publish;
}
}
mod rpc {
use crate::rpc::prelude::*;
#[expect(dead_code, reason = "the bounds are the assertion; nothing calls them")]
fn handler_bound<T: Publisher>() {}
#[expect(dead_code, reason = "the bounds are the assertion; nothing calls them")]
fn request_bound<T: RequestReply>() {}
#[test]
fn the_mount_site_vocabulary_is_the_bare_name() {
let _: Publish = Publish;
}
}
mod root {
use crate::prelude::*;
#[expect(dead_code, reason = "the bound is the assertion; nothing calls it")]
fn handler_bound<T: Publisher>() {}
#[test]
fn the_three_policies_arrive_under_their_prefixed_names() {
let _: ZmqQueuePublish = ZmqQueuePublish;
let _: ZmqFanoutPublish = ZmqFanoutPublish;
let _: ZmqRpcPublish = ZmqRpcPublish;
}
}
}