From 8cdc44b24724acf7dd458e59f5ceed4af04574be Mon Sep 17 00:00:00 2001 From: hozan23 Date: Sat, 2 Dec 2023 05:10:33 +0300 Subject: Ensure uniform usage of the name `karyon` across all files --- net/Cargo.toml | 4 ++-- net/src/connection.rs | 2 +- net/src/endpoint.rs | 4 ++-- net/src/error.rs | 2 +- net/src/lib.rs | 4 ++-- net/src/listener.rs | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) (limited to 'net') diff --git a/net/Cargo.toml b/net/Cargo.toml index d2cb884..5fecff5 100644 --- a/net/Cargo.toml +++ b/net/Cargo.toml @@ -1,12 +1,12 @@ [package] -name = "karyons_net" +name = "karyon_net" version.workspace = true edition.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -karyons_core.workspace = true +karyon_core.workspace = true smol = "1.3.0" async-trait = "0.1.73" diff --git a/net/src/connection.rs b/net/src/connection.rs index 3c047a0..73606a2 100644 --- a/net/src/connection.rs +++ b/net/src/connection.rs @@ -40,7 +40,7 @@ pub trait Connection: Send + Sync { /// #Example /// /// ``` -/// use karyons_net::{Endpoint, dial}; +/// use karyon_net::{Endpoint, dial}; /// /// async { /// let endpoint: Endpoint = "tcp://127.0.0.1:3000".parse().unwrap(); diff --git a/net/src/endpoint.rs b/net/src/endpoint.rs index 1a1f975..fdb2735 100644 --- a/net/src/endpoint.rs +++ b/net/src/endpoint.rs @@ -13,14 +13,14 @@ use crate::{Error, Result}; /// Port defined as a u16. pub type Port = u16; -/// Endpoint defines generic network endpoints for karyons. +/// Endpoint defines generic network endpoints for karyon. /// /// # Example /// /// ``` /// use std::net::SocketAddr; /// -/// use karyons_net::Endpoint; +/// use karyon_net::Endpoint; /// /// let endpoint: Endpoint = "tcp://127.0.0.1:3000".parse().unwrap(); /// diff --git a/net/src/error.rs b/net/src/error.rs index 5dd6348..0d96d64 100644 --- a/net/src/error.rs +++ b/net/src/error.rs @@ -35,7 +35,7 @@ pub enum Error { InvalidDnsNameError(#[from] async_rustls::rustls::client::InvalidDnsNameError), #[error(transparent)] - KaryonsCore(#[from] karyons_core::error::Error), + KaryonCore(#[from] karyon_core::error::Error), } impl From> for Error { diff --git a/net/src/lib.rs b/net/src/lib.rs index ff466af..5b9bdd7 100644 --- a/net/src/lib.rs +++ b/net/src/lib.rs @@ -18,8 +18,8 @@ pub use { use error::{Error, Result}; -/// Represents karyons's Net Error +/// Represents karyon's Net Error pub use error::Error as NetError; -/// Represents karyons's Net Result +/// Represents karyon's Net Result pub use error::Result as NetResult; diff --git a/net/src/listener.rs b/net/src/listener.rs index cab5330..f12f33e 100644 --- a/net/src/listener.rs +++ b/net/src/listener.rs @@ -27,7 +27,7 @@ pub trait ConnListener: Send + Sync { /// #Example /// /// ``` -/// use karyons_net::{Endpoint, listen}; +/// use karyon_net::{Endpoint, listen}; /// /// async { /// let endpoint: Endpoint = "tcp://127.0.0.1:3000".parse().unwrap(); -- cgit v1.2.3