Bump the cargo-deps group across 1 directory with 52 updates (#3705)

This commit is contained in:
dependabot[bot] 2024-08-04 02:45:02 +05:00 committed by GitHub
parent 4faa150104
commit d5088ee54d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
36 changed files with 759 additions and 478 deletions

1003
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -9,4 +9,4 @@ license = "MIT OR Apache-2.0"
yew = { path = "../../packages/yew", features = ["csr"] }
chrono = "0.4"
futures = "0.3"
gloo-net = "0.4"
gloo-net = "0.5"

View File

@ -12,7 +12,7 @@ getrandom = { version = "0.2", features = ["js"] }
rand = "0.8"
serde = { version = "1.0", features = ["derive"] }
yew = { path = "../../packages/yew", features = ["csr"] }
gloo = "0.10"
gloo = "0.11"
[dependencies.web-sys]
version = "0.3"

View File

@ -6,7 +6,7 @@ edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
gloo = "0.10"
gloo = "0.11"
js-sys = "0.3"
yew = { path = "../../packages/yew", features = ["csr"] }
wasm-bindgen = "0.2"

View File

@ -9,11 +9,11 @@ license = "MIT OR Apache-2.0"
js-sys = "0.3"
yew = { path = "../../packages/yew", features = ["csr"] }
slab = "0.4.9"
gloo = "0.10"
gloo = "0.11"
wasm-bindgen = "0.2"
[dependencies.web-sys]
version = "0.3.64"
version = "0.3.69"
features = [
"Document",
"Element",

View File

@ -8,8 +8,8 @@ license = "MIT OR Apache-2.0"
[dependencies]
js-sys = "0.3"
yew = { path = "../../packages/yew", features = ["csr"] }
base64 = "0.21.5"
gloo = "0.10"
base64 = "0.22.1"
gloo = "0.11"
[dependencies.web-sys]
version = "0.3"

View File

@ -7,9 +7,9 @@ license = "MIT OR Apache-2.0"
[dependencies]
serde = { version = "1.0", features = ["derive"] }
strum = "0.25"
strum_macros = "0.25"
gloo = "0.10"
strum = "0.26"
strum_macros = "0.26"
gloo = "0.11"
nanoid = "0.4"
rand = "0.8"
getrandom = { version = "0.2", features = ["js"] }

View File

@ -5,13 +5,13 @@ edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
lipsum = "0.9.0"
lipsum = "0.9.1"
log = "0.4"
rand = { version = "0.8", features = ["small_rng"] }
yew = { path = "../../packages/yew" }
yew-router = { path = "../../packages/yew-router" }
serde = { version = "1.0", features = ["derive"] }
gloo = "0.10"
gloo = "0.11"
wasm-logger = "0.2"
instant = { version = "0.1", features = ["wasm-bindgen"] }
once_cell = "1"

View File

@ -7,9 +7,9 @@ license = "MIT OR Apache-2.0"
[dependencies]
serde = { version = "1.0", features = ["derive"] }
strum = "0.25"
strum_macros = "0.25"
gloo = "0.10"
strum = "0.26"
strum_macros = "0.26"
gloo = "0.11"
yew = { path = "../../packages/yew", features = ["csr"] }
[dependencies.web-sys]

View File

@ -10,7 +10,7 @@ pulldown-cmark = { version = "0.9", default-features = false }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
yew = { path = "../../packages/yew", features = ["csr"] }
gloo = "0.10"
gloo = "0.11"
[dependencies.web-sys]
version = "0.3"

View File

@ -15,4 +15,4 @@ log = "0.4"
rand = "0.8"
wasm-logger = "0.2"
yew = { path = "../../packages/yew", features = ["csr"] }
gloo = "0.10"
gloo = "0.11"

View File

@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"
[dependencies]
yew = { path = "../../packages/yew", features = ["csr"] }
gloo = "0.10"
gloo = "0.11"
[dependencies.web-sys]
version = "0.3"

View File

@ -6,7 +6,7 @@ edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
fake = "2.9.1"
fake = "2.9.2"
getrandom = { version = "0.2", features = ["js"] }
instant = { version = "0.1", features = ["wasm-bindgen"] }
log = "0.4"

View File

@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0"
[dependencies]
wasm-bindgen = "0.2"
yew = { path = "../../packages/yew", features = ["csr"] }
gloo = "0.10"
gloo = "0.11"
[dependencies.web-sys]
version = "0.3"

View File

@ -7,8 +7,8 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
yew = { path = "../../packages/yew", features = ["csr"] }
zxcvbn = "2.2.2"
time = "0.3.30"
zxcvbn = "3.1.0"
time = "0.3.36"
js-sys = "0.3.64"
web-sys = { version = "0.3", features = ["Event","EventTarget","InputEvent"] }
wasm-bindgen = "0.2"

View File

@ -17,17 +17,16 @@ pub struct App {
}
impl App {
fn get_estimate(&self) -> Option<u8> {
zxcvbn(&self.password, &[])
.ok()
.map(|estimate| estimate.score())
fn get_estimate(&self) -> u8 {
let score = zxcvbn(&self.password, &[]).score();
score.into()
}
fn redout_top_row_text(&self) -> String {
if self.password.is_empty() {
return "Provide a password".to_string();
}
let estimate_text = match self.get_estimate().unwrap_or(0) {
let estimate_text = match self.get_estimate() {
0 => "That's a password?",
1 => "You can do a lot better.",
2 => "Meh",

View File

@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"
[dependencies]
yew = { path = "../../packages/yew", features = ["csr"] }
gloo = "0.10"
gloo = "0.11"
wasm-bindgen = "0.2"
[dependencies.web-sys]

View File

@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"
[dependencies]
instant = { version = "0.1", features = ["wasm-bindgen"] }
lipsum = "0.9.0"
lipsum = "0.9.1"
log = "0.4"
getrandom = { version = "0.2", features = ["js"] }
rand = { version = "0.8", features = ["small_rng"] }
@ -15,4 +15,4 @@ yew = { path = "../../packages/yew", features = ["csr"] }
yew-router = { path = "../../packages/yew-router" }
serde = { version = "1.0", features = ["derive"] }
once_cell = "1"
gloo = "0.10"
gloo = "0.11"

View File

@ -14,11 +14,11 @@ required-features = ["ssr"]
[dependencies]
yew = { path = "../../packages/yew" }
reqwest = { version = "0.11.22", features = ["json"] }
serde = { version = "1.0.190", features = ["derive"] }
uuid = { version = "1.5.0", features = ["serde"] }
reqwest = { version = "0.12.5", features = ["json"] }
serde = { version = "1.0.193", features = ["derive"] }
uuid = { version = "1.10.0", features = ["serde"] }
futures = "0.3"
bytes = "1.5"
bytes = "1.7"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4"
@ -26,7 +26,7 @@ wasm-logger = "0.2"
log = "0.4"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { version = "1.33.0", features = ["full"] }
tokio = { version = "1.38.1", features = ["full"] }
warp = "0.3"
clap = { version = "4", features = ["derive"] }

View File

@ -18,19 +18,20 @@ yew = { path = "../../packages/yew" }
function_router = { path = "../function_router" }
log = "0.4"
futures = { version = "0.3", features = ["std"], default-features = false }
hyper-util = "0.1.6"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4"
wasm-logger = "0.2"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { version = "1.33.0", features = ["full"] }
axum = "0.6"
tokio = { version = "1.38.1", features = ["full"] }
axum = "0.7"
tower = { version = "0.4", features = ["make"] }
tower-http = { version = "0.3", features = ["fs"] }
tower-http = { version = "0.5", features = ["fs"] }
env_logger = "0.10"
clap = { version = "4", features = ["derive"] }
hyper = { version = "0.14", features = ["server", "http1"] }
hyper = { version = "1.4", features = ["server", "http1"] }
[target.'cfg(unix)'.dependencies]
jemallocator = "0.5"

View File

@ -1,21 +1,24 @@
use std::collections::HashMap;
use std::convert::Infallible;
use std::future::Future;
use std::net::SocketAddr;
use std::path::PathBuf;
use axum::body::StreamBody;
use axum::error_handling::HandleError;
use axum::extract::{Query, State};
use axum::body::Body;
use axum::extract::{Query, Request, State};
use axum::handler::HandlerWithoutStateExt;
use axum::http::{StatusCode, Uri};
use axum::http::Uri;
use axum::response::IntoResponse;
use axum::routing::get;
use axum::Router;
use clap::Parser;
use function_router::{ServerApp, ServerAppProps};
use futures::stream::{self, StreamExt};
use hyper::server::Server;
use tower::ServiceExt;
use hyper::body::Incoming;
use hyper_util::rt::TokioIo;
use hyper_util::server;
use tokio::net::TcpListener;
use tower::Service;
use tower_http::services::ServeDir;
use yew::platform::Runtime;
@ -44,7 +47,7 @@ async fn render(
queries,
});
StreamBody::new(
Body::from_stream(
stream::once(async move { index_html_before })
.chain(renderer.render_stream())
.chain(stream::once(async move { index_html_after }))
@ -75,7 +78,7 @@ where
}
#[tokio::main]
async fn main() {
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let exec = Executor::default();
env_logger::init();
@ -92,30 +95,61 @@ async fn main() {
let index_html_after = index_html_after.to_owned();
let handle_error = |e| async move {
(
StatusCode::INTERNAL_SERVER_ERROR,
format!("error occurred: {e}"),
)
};
let app = Router::new().fallback_service(HandleError::new(
let app = Router::new().fallback_service(
ServeDir::new(opts.dir)
.append_index_html_on_directories(false)
.fallback(
get(render)
.with_state((index_html_before.clone(), index_html_after.clone()))
.into_service()
.map_err(|err| -> std::io::Error { match err {} }),
.into_service(),
),
handle_error,
));
);
let addr: SocketAddr = ([127, 0, 0, 1], 8080).into();
println!("You can view the website at: http://localhost:8080/");
Server::bind(&"127.0.0.1:8080".parse().unwrap())
.executor(exec)
.serve(app.into_make_service())
.await
.unwrap();
let listener = TcpListener::bind(addr).await?;
// Continuously accept new connections.
loop {
// In this example we discard the remote address. See `fn serve_with_connect_info` for how
// to expose that.
let (socket, _remote_addr) = listener.accept().await.unwrap();
// We don't need to call `poll_ready` because `Router` is always ready.
let tower_service = app.clone();
let exec = exec.clone();
// Spawn a task to handle the connection. That way we can handle multiple connections
// concurrently.
tokio::spawn(async move {
// Hyper has its own `AsyncRead` and `AsyncWrite` traits and doesn't use tokio.
// `TokioIo` converts between them.
let socket = TokioIo::new(socket);
// Hyper also has its own `Service` trait and doesn't use tower. We can use
// `hyper::service::service_fn` to create a hyper `Service` that calls our app through
// `tower::Service::call`.
let hyper_service = hyper::service::service_fn(move |request: Request<Incoming>| {
// We have to clone `tower_service` because hyper's `Service` uses `&self` whereas
// tower's `Service` requires `&mut self`.
//
// We don't need to call `poll_ready` since `Router` is always ready.
tower_service.clone().call(request)
});
// `server::conn::auto::Builder` supports both http1 and http2.
//
// `TokioExecutor` tells hyper to use `tokio::spawn` to spawn tasks.
if let Err(err) = server::conn::auto::Builder::new(exec)
// `serve_connection_with_upgrades` is required for websockets. If you don't need
// that you can use `serve_connection` instead.
.serve_connection_with_upgrades(socket, hyper_service)
.await
{
eprintln!("failed to serve connection: {err:#}");
}
});
}
}

View File

@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0"
[dependencies]
yew = { path = "../../packages/yew", features = ["csr"] }
gloo = { version = "0.10", features = ["futures"] }
gloo = { version = "0.11", features = ["futures"] }
wasm-bindgen-futures = "0.4"
wasm-bindgen = "0.2"

View File

@ -8,5 +8,5 @@ license = "MIT OR Apache-2.0"
[dependencies]
yew = { path = "../../packages/yew", features = ["csr"] }
js-sys = "0.3"
gloo = "0.10"
gloo = "0.11"
wasm-bindgen = "0.2"

View File

@ -6,6 +6,6 @@ edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
gloo = "0.10.0"
gloo = "0.11.0"
js-sys = "0.3.64"
yew = { path = "../../packages/yew", features = ["csr"] }

View File

@ -6,12 +6,12 @@ edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
strum = "0.25"
strum_macros = "0.25"
strum = "0.26"
strum_macros = "0.26"
serde = "1"
serde_derive = "1"
yew = { path = "../../packages/yew", features = ["csr"] }
gloo = "0.10"
gloo = "0.11"
[dependencies.web-sys]
version = "0.3"

View File

@ -7,4 +7,4 @@ license = "MIT OR Apache-2.0"
[dependencies]
yew = { path = "../../packages/yew", features = ["csr"] }
gloo = "0.10"
gloo = "0.11"

View File

@ -6,6 +6,6 @@ edition = "2021"
[dependencies]
yew-agent = { path = "../../packages/yew-agent" }
yew = { path = "../../packages/yew", features = ["csr"] }
futures = "0.3.29"
primes = "0.3.0"
serde = { version = "1.0.190", features = ["derive"] }
futures = "0.3.30"
primes = "0.4.0"
serde = { version = "1.0.193", features = ["derive"] }

View File

@ -13,11 +13,11 @@ rust-version = "1.76.0"
[dependencies]
yew = { version = "0.21.0", path = "../yew" }
gloo-worker = { version = "0.4", features = ["futures"] }
gloo-worker = { version = "0.5", features = ["futures"] }
wasm-bindgen = "0.2"
serde = { version = "1", features = ["derive"] }
futures = "0.3"
yew-agent-macro = { version = "0.2", path = "../yew-agent-macro" }
[dev-dependencies]
serde = "1.0.190"
serde = "1.0.193"

View File

@ -17,7 +17,7 @@ yew-router-macro = { version = "0.18.0", path = "../yew-router-macro" }
wasm-bindgen = "0.2"
js-sys = "0.3"
gloo = { version = "0.10", features = ["futures"] }
gloo = { version = "0.11", features = ["futures"] }
route-recognizer = "0.3"
serde = "1"
serde_urlencoded = "0.7.1"

View File

@ -18,7 +18,7 @@ rust-version = "1.76.0"
[dependencies]
console_error_panic_hook = "0.1"
gloo = "0.10"
gloo = "0.11"
indexmap = { version = "2", features = ["std"] }
js-sys = "0.3"
slab = "0.4"
@ -40,10 +40,10 @@ wasm-bindgen-futures = "0.4"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# We still need tokio as we have docs linked to it.
tokio = { version = "1.33", features = ["rt"] }
tokio = { version = "1.38", features = ["rt"] }
[dependencies.web-sys]
version = "^0.3.64"
version = "^0.3.69"
features = [
"AnimationEvent",
"Document",
@ -79,11 +79,11 @@ features = [
]
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
tokio = { version = "1.33", features = ["full"] }
tokio = { version = "1.38", features = ["full"] }
[dev-dependencies]
wasm-bindgen-test = "0.3"
gloo = { version = "0.10", features = ["futures"] }
gloo = { version = "0.11", features = ["futures"] }
wasm-bindgen-futures = "0.4"
trybuild = "1"

View File

@ -10,5 +10,5 @@ name = "vnode"
harness = false
[dependencies]
divan = "0.1.0"
divan = "0.1.14"
yew = { path = "../../packages/yew" }

View File

@ -9,9 +9,9 @@ crate-type = ["cdylib"]
[dependencies]
rand = { version = "0.8.5", features = ["small_rng"] }
getrandom = { version = "0.2.10", features = ["js"] }
wasm-bindgen = "0.2.87"
web-sys = { version = "0.3.64", features = ["Window"]}
getrandom = { version = "0.2.14", features = ["js"] }
wasm-bindgen = "0.2.92"
web-sys = { version = "0.3.69", features = ["Window"]}
yew = { version = "0.21.0", features = ["csr"], path = "../../packages/yew" }
[package.metadata.wasm-pack.profile.release]

View File

@ -8,12 +8,12 @@ edition = "2021"
[dependencies]
yew = { path = "../../packages/yew", features = ["ssr"] }
function_router = { path = "../../examples/function_router" }
tokio = { version = "1.33", features = ["full"] }
average = "0.14.1"
tabled = "0.14.0"
indicatif = "0.17.7"
serde = { version = "1.0.190", features = ["derive"] }
serde_json = "1.0.107"
tokio = { version = "1.38", features = ["full"] }
average = "0.15.1"
tabled = "0.15.0"
indicatif = "0.17.8"
serde = { version = "1.0.193", features = ["derive"] }
serde_json = "1.0.109"
clap = { version = "4", features = ["derive"] }
[target.'cfg(unix)'.dependencies]

View File

@ -9,9 +9,9 @@ crate-type = ["cdylib"]
[dependencies]
rand = { version = "0.8.5", features = ["small_rng"] }
getrandom = { version = "0.2.10", features = ["js"] }
wasm-bindgen = "0.2.87"
web-sys = { version = "0.3.64", features = ["Window"]}
getrandom = { version = "0.2.14", features = ["js"] }
wasm-bindgen = "0.2.92"
web-sys = { version = "0.3.69", features = ["Window"]}
yew = { version = "0.21.0", features = ["csr"], path = "../../packages/yew" }
[package.metadata.wasm-pack.profile.release]

View File

@ -9,11 +9,11 @@ edition = "2021"
[dependencies]
anyhow = "1"
chrono = "0.4"
git2 = "0.18"
git2 = "0.19"
regex = "1"
reqwest = { version = "0.11", features = ["blocking", "json"] }
reqwest = { version = "0.12", features = ["blocking", "json"] }
serde = { version = "1", features = ["derive"] }
strum = { version = "0.25", features = ["derive"] }
strum = { version = "0.26", features = ["derive"] }
clap = { version = "4", features = ["derive"] }
semver = "1.0"
once_cell = "1"

View File

@ -11,7 +11,7 @@ yew-agent = { path = "../../packages/yew-agent/" }
[dev-dependencies]
derive_more = "0.99"
gloo = "0.10"
gloo = "0.11"
js-sys = "0.3"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
@ -19,7 +19,7 @@ weblog = "0.3.0"
yew = { path = "../../packages/yew/", features = ["ssr", "csr"] }
yew-autoprops = "0.4.1"
yew-router = { path = "../../packages/yew-router/" }
tokio = { version = "1.33.0", features = ["rt", "macros"] }
tokio = { version = "1.38.1", features = ["rt", "macros"] }
[dev-dependencies.web-sys]
version = "0.3"