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.
|
|
|
|
//
|
|
|
|
|
2023-03-07 22:37:55 +00:00
|
|
|
//! # Monero Wire
|
|
|
|
//!
|
|
|
|
//! A crate defining Monero network messages and network addresses,
|
2023-07-17 17:43:34 +00:00
|
|
|
//! built on top of the levin-cuprate crate.
|
2023-03-07 22:37:55 +00:00
|
|
|
//!
|
|
|
|
//! ## License
|
|
|
|
//!
|
|
|
|
//! This project is licensed under the MIT License.
|
|
|
|
|
|
|
|
// Coding conventions
|
|
|
|
#![forbid(unsafe_code)]
|
|
|
|
#![deny(non_upper_case_globals)]
|
|
|
|
#![deny(non_camel_case_types)]
|
|
|
|
#![deny(unused_mut)]
|
2023-04-24 21:37:40 +00:00
|
|
|
//#![deny(missing_docs)]
|
2023-03-07 22:37:55 +00:00
|
|
|
|
|
|
|
pub mod messages;
|
|
|
|
pub mod network_address;
|
|
|
|
|
|
|
|
pub use network_address::NetworkAddress;
|
2023-07-17 17:43:34 +00:00
|
|
|
|
|
|
|
pub use messages::*;
|
|
|
|
|
|
|
|
pub type MoneroWireCodec = levin_cuprate::codec::LevinMessageCodec<Message>;
|