mirror of https://github.com/fafhrd91/actix-net
Compare commits
No commits in common. "1e30f6073af60c8b3dd72c00789035f409add4af" and "e540f0a240e4aac8879e05861cf4860948f5b04d" have entirely different histories.
1e30f6073a
...
e540f0a240
|
@ -1,3 +1,4 @@
|
||||||
|
Cargo.lock
|
||||||
target/
|
target/
|
||||||
guide/build/
|
guide/build/
|
||||||
/gh-pages
|
/gh-pages
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -2,9 +2,6 @@
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
## 2.5.1
|
|
||||||
|
|
||||||
- Fix panic in test server.
|
|
||||||
- Minimum supported Rust version (MSRV) is now 1.71.
|
- Minimum supported Rust version (MSRV) is now 1.71.
|
||||||
|
|
||||||
## 2.5.0
|
## 2.5.0
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "actix-server"
|
name = "actix-server"
|
||||||
version = "2.5.1"
|
version = "2.5.0"
|
||||||
authors = [
|
authors = [
|
||||||
"Nikolay Kim <fafhrd91@gmail.com>",
|
"Nikolay Kim <fafhrd91@gmail.com>",
|
||||||
"Rob Ede <robjtede@icloud.com>",
|
"Rob Ede <robjtede@icloud.com>",
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
<!-- prettier-ignore-start -->
|
<!-- prettier-ignore-start -->
|
||||||
|
|
||||||
[](https://crates.io/crates/actix-server)
|
[](https://crates.io/crates/actix-server)
|
||||||
[](https://docs.rs/actix-server/2.5.1)
|
[](https://docs.rs/actix-server/2.5.0)
|
||||||
[](https://blog.rust-lang.org/2021/05/06/Rust-1.52.0.html)
|
[](https://blog.rust-lang.org/2021/05/06/Rust-1.52.0.html)
|
||||||

|

|
||||||
<br />
|
<br />
|
||||||
[](https://deps.rs/crate/actix-server/2.5.1)
|
[](https://deps.rs/crate/actix-server/2.5.0)
|
||||||

|

|
||||||
[](https://discord.gg/NWpN5mmg3x)
|
[](https://discord.gg/NWpN5mmg3x)
|
||||||
|
|
||||||
|
|
|
@ -123,9 +123,7 @@ impl TestServerHandle {
|
||||||
|
|
||||||
/// Connect to server, returning a Tokio `TcpStream`.
|
/// Connect to server, returning a Tokio `TcpStream`.
|
||||||
pub fn connect(&self) -> io::Result<TcpStream> {
|
pub fn connect(&self) -> io::Result<TcpStream> {
|
||||||
let stream = net::TcpStream::connect(self.addr)?;
|
TcpStream::from_std(net::TcpStream::connect(self.addr)?)
|
||||||
stream.set_nonblocking(true)?;
|
|
||||||
TcpStream::from_std(stream)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,5 @@ async fn new_with_builder() {
|
||||||
srv.connect().unwrap();
|
srv.connect().unwrap();
|
||||||
|
|
||||||
// connect to alt service defined in custom ServerBuilder
|
// connect to alt service defined in custom ServerBuilder
|
||||||
let stream = net::TcpStream::connect(alt_addr).unwrap();
|
TcpStream::from_std(net::TcpStream::connect(alt_addr).unwrap()).unwrap();
|
||||||
stream.set_nonblocking(true).unwrap();
|
|
||||||
TcpStream::from_std(stream).unwrap();
|
|
||||||
}
|
}
|
||||||
|
|
15
justfile
15
justfile
|
@ -23,8 +23,6 @@ fmt:
|
||||||
downgrade-for-msrv:
|
downgrade-for-msrv:
|
||||||
cargo update -p=clap --precise=4.4.18
|
cargo update -p=clap --precise=4.4.18
|
||||||
cargo update -p=native-tls --precise=0.2.13
|
cargo update -p=native-tls --precise=0.2.13
|
||||||
cargo update -p=litemap --precise=0.7.4
|
|
||||||
cargo update -p=zerofrom --precise=0.1.5
|
|
||||||
|
|
||||||
msrv := ```
|
msrv := ```
|
||||||
cargo metadata --format-version=1 \
|
cargo metadata --format-version=1 \
|
||||||
|
@ -72,20 +70,9 @@ test-docs toolchain="": && doc
|
||||||
test-all toolchain="": (test toolchain) (test-docs toolchain)
|
test-all toolchain="": (test toolchain) (test-docs toolchain)
|
||||||
|
|
||||||
# Document crates in workspace.
|
# Document crates in workspace.
|
||||||
doc *args: && doc-set-workspace-crates
|
doc *args:
|
||||||
rm -f "$(cargo metadata --format-version=1 | jq -r '.target_directory')/doc/crates.js"
|
|
||||||
RUSTDOCFLAGS="--cfg=docsrs -Dwarnings" cargo +nightly doc --no-deps --workspace {{ all_crate_features }} {{ args }}
|
RUSTDOCFLAGS="--cfg=docsrs -Dwarnings" cargo +nightly doc --no-deps --workspace {{ all_crate_features }} {{ args }}
|
||||||
|
|
||||||
[private]
|
|
||||||
doc-set-workspace-crates:
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
(
|
|
||||||
echo "window.ALL_CRATES ="
|
|
||||||
cargo metadata --format-version=1 \
|
|
||||||
| jq '[.packages[] | select(.source == null) | .targets | map(select(.doc) | .name)] | flatten'
|
|
||||||
echo ";"
|
|
||||||
) > "$(cargo metadata --format-version=1 | jq -r '.target_directory')/doc/crates.js"
|
|
||||||
|
|
||||||
# Document crates in workspace and watch for changes.
|
# Document crates in workspace and watch for changes.
|
||||||
doc-watch:
|
doc-watch:
|
||||||
@just doc --open
|
@just doc --open
|
||||||
|
|
Loading…
Reference in New Issue