Compare commits

..

No commits in common. "974d0ed72cb3c799686ea021cb86ff9d82749d1f" and "c92734913af83377699d66b1dc293316804ebfa2" have entirely different histories.

3 changed files with 4 additions and 12 deletions

2
Cargo.lock generated
View File

@ -546,7 +546,7 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
[[package]]
name = "expose-dir-via-http"
version = "1.0.1"
version = "1.0.0"
dependencies = [
"actix-files",
"actix-web",

View File

@ -1,16 +1,8 @@
[package]
name = "expose-dir-via-http"
version = "1.0.1"
version = "1.0.0"
edition = "2021"
[lints.rust]
unsafe_code = "forbid"
[lints.clippy]
pedantic = "warn"
todo = "warn"
unwrap_used = "warn"
[dependencies]
actix-web = { version = "4", features = ["experimental-io-uring"] }
actix-files = "0.6"

View File

@ -1,6 +1,6 @@
use std::{
env,
net::{IpAddr, SocketAddr},
num::NonZeroUsize,
thread::available_parallelism,
};
@ -39,7 +39,7 @@ async fn main() -> std::io::Result<()> {
.prefer_utf8(true),
)
})
.workers(available_parallelism().map_or(1, NonZeroUsize::get))
.workers(available_parallelism().unwrap().get())
.bind(sock)?
.run()
.await