ant_node/ant_protocol/mod.rs
1//! Wire protocol re-exports from the [`ant_protocol`] crate.
2//!
3//! This module existed as first-party ant-node code until version 0.11.
4//! The wire contract now lives in the [`ant_protocol`] crate so
5//! `ant-client` and `ant-node` can evolve their release cycles
6//! independently. Everything this module previously exported is
7//! re-exported below verbatim, including the `chunk` submodule path so
8//! downstream callers of `ant_node::ant_protocol::chunk::*` keep working.
9//!
10//! Internal ant-node code can keep using `crate::ant_protocol::…`; the
11//! imports resolve to the same types they always did. New code should
12//! prefer `ant_protocol::…` directly.
13
14// Re-export the submodule so `ant_node::ant_protocol::chunk::*` keeps
15// resolving. Using the fully-qualified path `::ant_protocol::chunk`
16// disambiguates from `crate::ant_protocol` (this module).
17pub use ::ant_protocol::chunk;
18
19pub use ::ant_protocol::chunk::{
20 ChunkGetRequest, ChunkGetResponse, ChunkMessage, ChunkMessageBody, ChunkPutRequest,
21 ChunkPutResponse, ChunkQuoteRequest, ChunkQuoteResponse, MerkleCandidateQuoteRequest,
22 MerkleCandidateQuoteResponse, ProtocolError, XorName, CHUNK_PROTOCOL_ID, CLOSE_GROUP_MAJORITY,
23 CLOSE_GROUP_SIZE, DATA_TYPE_CHUNK, MAX_CHUNK_SIZE, MAX_WIRE_MESSAGE_SIZE, PROOF_TAG_MERKLE,
24 PROOF_TAG_SINGLE_NODE, PROTOCOL_VERSION, XORNAME_LEN,
25};