From 20feced274a792308f2f28a95787d0c168752a3b Mon Sep 17 00:00:00 2001 From: shellrow Date: Tue, 6 Jan 2026 00:25:48 +0900 Subject: [PATCH 1/7] Update crate description --- websock-tungstenite/src/lib.rs | 5 +---- websock-wasm/src/lib.rs | 3 --- websock/src/lib.rs | 7 ++----- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/websock-tungstenite/src/lib.rs b/websock-tungstenite/src/lib.rs index 5a7c2a7..fb9bf03 100644 --- a/websock-tungstenite/src/lib.rs +++ b/websock-tungstenite/src/lib.rs @@ -1,7 +1,4 @@ -//! Native transport implementation based on Tokio Tungstenite. -//! -//! Use this crate on non-wasm targets. The `stream` feature exposes -//! a `Sink`/`Stream` split API for message-oriented workflows. +//! Native transport implementation based on tokio-tungstenite. mod builder; mod connection; diff --git a/websock-wasm/src/lib.rs b/websock-wasm/src/lib.rs index b8af369..84d600e 100644 --- a/websock-wasm/src/lib.rs +++ b/websock-wasm/src/lib.rs @@ -1,7 +1,4 @@ //! WebAssembly transport implementation for browser-based WebSockets. -//! -//! This crate wraps `web_sys::WebSocket` and mirrors the native transport API. -//! Enable the `stream` feature to split a connection into `Sink` and `Stream`. mod builder; mod connection; diff --git a/websock/src/lib.rs b/websock/src/lib.rs index 8111e91..916beda 100644 --- a/websock/src/lib.rs +++ b/websock/src/lib.rs @@ -1,10 +1,7 @@ -//! Cross-platform WebSocket facade for native and WebAssembly targets. -//! -//! This crate re-exports the shared protocol types and the appropriate -//! transport implementation for the current target architecture. +//! WebSocket library for native and WebAssembly targets. //! //! ## Features -//! - Native (Tokio Tungstenite) support on non-wasm targets +//! - Native (tokio-tungstenite) support on non-wasm targets //! - Browser WebSocket support on wasm32 targets pub use websock_proto::*; From 74e10bfba3e31ec52f7abc9b92d28eccb42a7ed7 Mon Sep 17 00:00:00 2001 From: shellrow Date: Tue, 6 Jan 2026 00:27:12 +0900 Subject: [PATCH 2/7] Update package metadata --- websock-proto/Cargo.toml | 6 ++++++ websock-tungstenite/Cargo.toml | 6 ++++++ websock-wasm/Cargo.toml | 6 ++++++ websock/Cargo.toml | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/websock-proto/Cargo.toml b/websock-proto/Cargo.toml index e6d0a25..399ef1d 100644 --- a/websock-proto/Cargo.toml +++ b/websock-proto/Cargo.toml @@ -3,6 +3,12 @@ name = "websock-proto" version.workspace = true edition.workspace = true authors.workspace = true +description = "Protocol-level primitives shared across websock transports." +repository = "https://github.com/foctal/websock" +readme = "../README.md" +keywords = ["network", "websocket", "native", "wasm"] +categories = ["network-programming", "web-programming", "websocket"] +license = "MIT" [dependencies] bytes = { workspace = true } diff --git a/websock-tungstenite/Cargo.toml b/websock-tungstenite/Cargo.toml index a1b2549..6fb753b 100644 --- a/websock-tungstenite/Cargo.toml +++ b/websock-tungstenite/Cargo.toml @@ -3,6 +3,12 @@ name = "websock-tungstenite" version.workspace = true edition.workspace = true authors.workspace = true +description = "Native transport implementation based on tokio-tungstenite." +repository = "https://github.com/foctal/websock" +readme = "../README.md" +keywords = ["network", "websocket", "native", "wasm"] +categories = ["network-programming", "web-programming", "websocket"] +license = "MIT" [dependencies] websock-proto = { workspace = true } diff --git a/websock-wasm/Cargo.toml b/websock-wasm/Cargo.toml index 2eaeb75..fb82039 100644 --- a/websock-wasm/Cargo.toml +++ b/websock-wasm/Cargo.toml @@ -3,6 +3,12 @@ name = "websock-wasm" version.workspace = true edition.workspace = true authors.workspace = true +description = "WebAssembly transport implementation for browser-based WebSockets." +repository = "https://github.com/foctal/websock" +readme = "../README.md" +keywords = ["network", "websocket", "native", "wasm"] +categories = ["network-programming", "web-programming", "websocket"] +license = "MIT" [dependencies] websock-proto = { workspace = true } diff --git a/websock/Cargo.toml b/websock/Cargo.toml index cb2ef99..4d448e8 100644 --- a/websock/Cargo.toml +++ b/websock/Cargo.toml @@ -3,6 +3,12 @@ name = "websock" version.workspace = true edition.workspace = true authors.workspace = true +description = "WebSocket library for native and WebAssembly" +repository = "https://github.com/foctal/websock" +readme = "../README.md" +keywords = ["network", "websocket", "native", "wasm"] +categories = ["network-programming", "web-programming", "websocket"] +license = "MIT" [dependencies] websock-proto = { workspace = true } From e2837adae99aa3417d86e3fd84059a44d1a65ba2 Mon Sep 17 00:00:00 2001 From: shellrow Date: Tue, 6 Jan 2026 00:27:31 +0900 Subject: [PATCH 3/7] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a5ec640..da716d9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,10 @@ -[examples-url]: https://github.com/shellrow/websock/tree/main/websock/examples +[crates-badge]: https://img.shields.io/crates/v/websock.svg +[crates-url]: https://crates.io/crates/websock [doc-url]: https://docs.rs/websock/latest/websock +[license-badge]: https://img.shields.io/crates/l/websock.svg +[examples-url]: https://github.com/shellrow/websock/tree/main/websock/examples -# websock +# websock [![Crates.io][crates-badge]][crates-url] ![License][license-badge] A minimal WebSocket library for native and WebAssembly. From de0aae3520620a739aaa54c5eae6a5197a5b82a5 Mon Sep 17 00:00:00 2001 From: shellrow Date: Tue, 6 Jan 2026 00:54:38 +0900 Subject: [PATCH 4/7] Update package keywords --- websock-proto/Cargo.toml | 2 +- websock-tungstenite/Cargo.toml | 2 +- websock-wasm/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/websock-proto/Cargo.toml b/websock-proto/Cargo.toml index 399ef1d..4854c11 100644 --- a/websock-proto/Cargo.toml +++ b/websock-proto/Cargo.toml @@ -6,7 +6,7 @@ authors.workspace = true description = "Protocol-level primitives shared across websock transports." repository = "https://github.com/foctal/websock" readme = "../README.md" -keywords = ["network", "websocket", "native", "wasm"] +keywords = ["network", "websocket"] categories = ["network-programming", "web-programming", "websocket"] license = "MIT" diff --git a/websock-tungstenite/Cargo.toml b/websock-tungstenite/Cargo.toml index 6fb753b..c9a2144 100644 --- a/websock-tungstenite/Cargo.toml +++ b/websock-tungstenite/Cargo.toml @@ -6,7 +6,7 @@ authors.workspace = true description = "Native transport implementation based on tokio-tungstenite." repository = "https://github.com/foctal/websock" readme = "../README.md" -keywords = ["network", "websocket", "native", "wasm"] +keywords = ["network", "websocket", "native"] categories = ["network-programming", "web-programming", "websocket"] license = "MIT" diff --git a/websock-wasm/Cargo.toml b/websock-wasm/Cargo.toml index fb82039..657a1f1 100644 --- a/websock-wasm/Cargo.toml +++ b/websock-wasm/Cargo.toml @@ -6,7 +6,7 @@ authors.workspace = true description = "WebAssembly transport implementation for browser-based WebSockets." repository = "https://github.com/foctal/websock" readme = "../README.md" -keywords = ["network", "websocket", "native", "wasm"] +keywords = ["network", "websocket", "wasm"] categories = ["network-programming", "web-programming", "websocket"] license = "MIT" From 0565b8fee55c336fbf60035fcfb3680e2dcb4112 Mon Sep 17 00:00:00 2001 From: shellrow Date: Wed, 7 Jan 2026 21:24:11 +0900 Subject: [PATCH 5/7] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index da716d9..deabde6 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [crates-url]: https://crates.io/crates/websock [doc-url]: https://docs.rs/websock/latest/websock [license-badge]: https://img.shields.io/crates/l/websock.svg -[examples-url]: https://github.com/shellrow/websock/tree/main/websock/examples +[examples-url]: https://github.com/foctal/websock/tree/main/websock/examples # websock [![Crates.io][crates-badge]][crates-url] ![License][license-badge] @@ -31,4 +31,4 @@ See [examples][examples-url]. ### WebAssembly -The `websock-wasm-demo` crate contains a small browser demo that connects to a echo server. +The `websock-wasm-demo` crate contains a small browser demo that connects to an echo server. From d9c9252b5b4fa70b1fa2427459b7076be44261e8 Mon Sep 17 00:00:00 2001 From: shellrow Date: Wed, 7 Jan 2026 21:25:13 +0900 Subject: [PATCH 6/7] Update crate metadata categories --- websock-proto/Cargo.toml | 2 +- websock-tungstenite/Cargo.toml | 2 +- websock-wasm/Cargo.toml | 2 +- websock/Cargo.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/websock-proto/Cargo.toml b/websock-proto/Cargo.toml index 4854c11..0abbb26 100644 --- a/websock-proto/Cargo.toml +++ b/websock-proto/Cargo.toml @@ -7,7 +7,7 @@ description = "Protocol-level primitives shared across websock transports." repository = "https://github.com/foctal/websock" readme = "../README.md" keywords = ["network", "websocket"] -categories = ["network-programming", "web-programming", "websocket"] +categories = ["network-programming", "web-programming"] license = "MIT" [dependencies] diff --git a/websock-tungstenite/Cargo.toml b/websock-tungstenite/Cargo.toml index c9a2144..2c3455d 100644 --- a/websock-tungstenite/Cargo.toml +++ b/websock-tungstenite/Cargo.toml @@ -7,7 +7,7 @@ description = "Native transport implementation based on tokio-tungstenite." repository = "https://github.com/foctal/websock" readme = "../README.md" keywords = ["network", "websocket", "native"] -categories = ["network-programming", "web-programming", "websocket"] +categories = ["network-programming", "web-programming"] license = "MIT" [dependencies] diff --git a/websock-wasm/Cargo.toml b/websock-wasm/Cargo.toml index 657a1f1..4a0553c 100644 --- a/websock-wasm/Cargo.toml +++ b/websock-wasm/Cargo.toml @@ -7,7 +7,7 @@ description = "WebAssembly transport implementation for browser-based WebSockets repository = "https://github.com/foctal/websock" readme = "../README.md" keywords = ["network", "websocket", "wasm"] -categories = ["network-programming", "web-programming", "websocket"] +categories = ["network-programming", "web-programming"] license = "MIT" [dependencies] diff --git a/websock/Cargo.toml b/websock/Cargo.toml index 4d448e8..80e3164 100644 --- a/websock/Cargo.toml +++ b/websock/Cargo.toml @@ -7,7 +7,7 @@ description = "WebSocket library for native and WebAssembly" repository = "https://github.com/foctal/websock" readme = "../README.md" keywords = ["network", "websocket", "native", "wasm"] -categories = ["network-programming", "web-programming", "websocket"] +categories = ["network-programming", "web-programming"] license = "MIT" [dependencies] From 15debda02fec118dced1b119627a2174fb0af66f Mon Sep 17 00:00:00 2001 From: shellrow Date: Wed, 7 Jan 2026 21:26:13 +0900 Subject: [PATCH 7/7] Mark the wasm demo crate as non-publishable --- websock-wasm-demo/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/websock-wasm-demo/Cargo.toml b/websock-wasm-demo/Cargo.toml index 0fd3a7a..b10e7dd 100644 --- a/websock-wasm-demo/Cargo.toml +++ b/websock-wasm-demo/Cargo.toml @@ -3,6 +3,7 @@ name = "websock-wasm-demo" version.workspace = true edition.workspace = true authors.workspace = true +publish = false [lib] crate-type = ["cdylib"]