aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorhozan23 <hozan23@proton.me>2023-12-02 05:10:33 +0300
committerhozan23 <hozan23@proton.me>2023-12-02 05:10:33 +0300
commit8cdc44b24724acf7dd458e59f5ceed4af04574be (patch)
tree1e0aad5a905508c54f7d9be4d4b800b7e8f7d532 /net
parent5111a3d5749625c3d8e26a24a5a32c4da58f18d3 (diff)
Ensure uniform usage of the name `karyon` across all files
Diffstat (limited to 'net')
-rw-r--r--net/Cargo.toml4
-rw-r--r--net/src/connection.rs2
-rw-r--r--net/src/endpoint.rs4
-rw-r--r--net/src/error.rs2
-rw-r--r--net/src/lib.rs4
-rw-r--r--net/src/listener.rs2
6 files changed, 9 insertions, 9 deletions
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<T> From<smol::channel::SendError<T>> 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();