#![recursion_limit = "256"]
#![deny(
warnings,
//dead_code,
//missing_docs
)]
#![allow(unused_variables, dead_code)]
#![allow(clippy::needless_borrow)]
#[macro_use]
extern crate amplify;
#[macro_use]
extern crate strict_encoding;
extern crate chacha20poly1305;
#[cfg(feature = "url")]
extern crate url_crate as url;
#[cfg(feature = "serde")]
extern crate serde_crate as serde;
#[cfg(feature = "derive")]
pub extern crate inet2_derive as derive;
pub extern crate inet2_addr as addr;
#[cfg(feature = "derive")]
pub use inet2_derive::Api;
pub mod presentation;
pub mod session;
pub mod transport;
pub use presentation::{
sphinx, tlv, CreateUnmarshaller, Payload, TypeId, TypedEnum,
UnknownTypeError, Unmarshall, UnmarshallFn, Unmarshaller,
};
pub use session::{
noise, Decrypt, Encrypt, NoiseDecryptor, NoiseEncryptor, NoiseTranscoder,
PlainTranscoder, SendRecvMessage, Session, Split, Transcode,
};
#[cfg(feature = "zmq")]
pub use transport::zeromq;
pub use transport::{DuplexConnection, RoutedFrame};
#[cfg(feature = "zmq")]
pub use transport::{ZmqConnectionType, ZmqSocketType};
pub const BRONTIDE_MSG_MAX_LEN: usize = u16::MAX as usize;
pub const BRONTOZAUR_MSG_MAX_LEN: usize = 0xFFFFFF;
pub trait UrlString {
fn url_scheme(&self) -> &'static str;
fn to_url_string(&self) -> String;
}