Skip to content

Commit

Permalink
Update changelog and readme for compat layer
Browse files Browse the repository at this point in the history
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
  • Loading branch information
sticnarf committed Jul 27, 2024
1 parent 6e5ffe7 commit 7c547cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 0.5.2

* Added SOCKS4 support `bind` and `connect`.
* `tokio` becomes an optional dependency and [`futures-io`](https://github.com/rust-lang/futures-rs/tree/0.3.30/futures-io) traits are supported through the `futures-io` feature.

# 0.5.1

Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ Asynchronous SOCKS proxy support for Rust.

## Compatibility with Other Async Runtimes

By default use `tokio` feature, as the crate name suggests.
By default, the `tokio` feature is enabled, as the crate name suggests.

Compatibility with `futures-io` can be enabled by enabling the `futures-io` feature
and `use tokio_socks::io::FuturesIoCompatExt`.
Users can opt out `tokio` by setting `default-features = false`. The `*_with_socket` functions accept types implementing the `AsyncSocket` trait.

When using `default-features = false` with `futures-io`, tokio is not pulled in as a dependency.
The crate provides `io::Compat` that implements `AsyncSocket` for `futures-io` types (requiring the `futures-io` feature).

## License

Expand Down

0 comments on commit 7c547cb

Please sign in to comment.