Skip to content

Commit 9003b4a

Browse files
committed
Release 0.11.1
1 parent 0467da7 commit 9003b4a

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## Release 0.11.1
4+
- Reduce the bandwidth of `FramedTcp` transport using variadic encoding instead of constant padding.
5+
36
## Release 0.11.0
47
- Implemented `Serialize`/`Deserialize` for `Transport`.
58
- Implemented `Serialize`/`Deserialize` for `RemoteAddr`.

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "message-io"
3-
version = "0.11.0"
3+
version = "0.11.1"
44
authors = ["lemunozm <[email protected]>"]
55
edition = "2018"
66
readme = "README.md"

src/transport.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ pub enum Transport {
2424
#[cfg(feature = "tcp")]
2525
Tcp,
2626

27+
/// Tcp framed protocol (available through the *tcp* feature).
2728
/// Like TCP, but encoded with a slim frame layer to manage the data as a packet,
28-
/// instead of as a stream (available through the *tcp* feature).
29+
/// instead of as a stream.
30+
/// It prefixes the message using variable integer encoding with the size of the message.
2931
/// Most of the time you would want to use this instead of the raw `Tcp`.
3032
#[cfg(feature = "tcp")]
3133
FramedTcp,
@@ -39,9 +41,9 @@ pub enum Transport {
3941
Udp,
4042

4143
/// WebSocket protocol (available through the *websocket* feature).
42-
/// If you use a [`crate::network::RemoteAddr::Url`] in the `connect()` method,
43-
/// you can specify `wss` of `ws` schemas to connect with or without security.
44-
/// If you use a [`crate::network::RemoteAddr::SocketAddr`] the socket will be a normal
44+
/// If you use a [`crate::network::RemoteAddr::Str`] in the `connect()` method,
45+
/// you can specify an URL with `wss` of `ws` schemas to connect with or without security.
46+
/// If you use a [`crate::network::RemoteAddr::Socket`] the socket will be a normal
4547
/// websocket with the following uri: `ws://{SocketAddr}/message-io-default`.
4648
#[cfg(feature = "websocket")]
4749
Ws,

0 commit comments

Comments
 (0)