2023-03-07 23:36:48 +00:00
|
|
|
// Rust Levin Library
|
|
|
|
// Written in 2023 by
|
|
|
|
// Cuprate Contributors
|
|
|
|
//
|
|
|
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
// of this software and associated documentation files (the "Software"), to deal
|
|
|
|
// in the Software without restriction, including without limitation the rights
|
|
|
|
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
// copies of the Software, and to permit persons to whom the Software is
|
|
|
|
// furnished to do so, subject to the following conditions:
|
|
|
|
//
|
|
|
|
// The above copyright notice and this permission notice shall be included in all
|
|
|
|
// copies or substantial portions of the Software.
|
|
|
|
//
|
|
|
|
|
2024-07-04 20:05:22 +00:00
|
|
|
//! # Cuprate Wire
|
2023-03-07 22:37:55 +00:00
|
|
|
//!
|
|
|
|
//! A crate defining Monero network messages and network addresses,
|
2024-07-04 20:05:22 +00:00
|
|
|
//! built on top of the [`cuprate_levin`] crate.
|
2023-03-07 22:37:55 +00:00
|
|
|
//!
|
|
|
|
//! ## License
|
|
|
|
//!
|
|
|
|
//! This project is licensed under the MIT License.
|
|
|
|
|
|
|
|
pub mod network_address;
|
2023-10-09 20:09:14 +00:00
|
|
|
pub mod p2p;
|
2023-03-07 22:37:55 +00:00
|
|
|
|
2024-06-24 01:30:47 +00:00
|
|
|
pub use cuprate_levin::BucketError;
|
2023-11-30 18:09:05 +00:00
|
|
|
pub use network_address::{NetZone, NetworkAddress};
|
2023-10-09 20:09:14 +00:00
|
|
|
pub use p2p::*;
|
2023-07-17 17:43:34 +00:00
|
|
|
|
2024-03-05 01:29:57 +00:00
|
|
|
// re-export.
|
2024-06-24 01:30:47 +00:00
|
|
|
pub use cuprate_levin as levin;
|
2024-03-05 01:29:57 +00:00
|
|
|
|
2024-06-24 01:30:47 +00:00
|
|
|
pub type MoneroWireCodec = cuprate_levin::codec::LevinMessageCodec<Message>;
|