Skip to content

Commit

Permalink
chore: bump nightly version in examples (#2479)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Apr 1, 2024
1 parent bfac4cb commit 41f3c46
Show file tree
Hide file tree
Showing 71 changed files with 122 additions and 122 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-changed-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
with:
directory: ${{ matrix.directory }}
cargo_make_task: "ci"
toolchain: nightly-2024-01-29
toolchain: nightly-2024-03-31
2 changes: 1 addition & 1 deletion .github/workflows/ci-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
with:
directory: ${{ matrix.directory }}
cargo_make_task: "ci"
toolchain: nightly-2024-01-29
toolchain: nightly-2024-03-31
4 changes: 2 additions & 2 deletions .github/workflows/ci-semver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
test:
needs: [get-leptos-changed]
if: needs.get-leptos-changed.outputs.leptos_changed == 'true'
name: Run semver check (nightly-2024-01-29)
name: Run semver check (nightly-2024-03-31)
runs-on: ubuntu-latest

steps:
Expand All @@ -19,4 +19,4 @@ jobs:
- name: Sember Checks
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
rust-toolchain: nightly-2024-01-29
rust-toolchain: nightly-2024-03-31
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
with:
directory: ${{ matrix.directory }}
cargo_make_task: "ci"
toolchain: nightly-2024-01-29
toolchain: nightly-2024-03-31
3 changes: 3 additions & 0 deletions .github/workflows/run-cargo-make-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
- name: Install wasm-bindgen
run: cargo binstall wasm-bindgen-cli --no-confirm

- name: Install wasm-pack
run: cargo binstall wasm-pack --no-confirm

- name: Install cargo-leptos
run: cargo binstall cargo-leptos --no-confirm

Expand Down
2 changes: 1 addition & 1 deletion cargo-make/check.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ alias = "check-all"

[tasks.check-all]
command = "cargo"
args = ["+nightly-2024-01-29", "check-all-features"]
args = ["+nightly-2024-03-31", "check-all-features"]
install_crate = "cargo-all-features"
8 changes: 3 additions & 5 deletions cargo-make/lint.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ args = ["fmt", "--", "--check", "--config-path", "${LEPTOS_PROJECT_DIRECTORY}"]
dependencies = ["install-clippy"]
command = "cargo"
args = [
"hack",
"clippy",
"--all",
"--each-feature",
"--no-dev-deps",
"--all-features",
"--no-deps",
"--",
"-D",
"clippy::print_stdout"
"clippy::print_stdout",
]
2 changes: 1 addition & 1 deletion cargo-make/test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ alias = "test-all"

[tasks.test-all]
command = "cargo"
args = ["+nightly-2024-01-29", "test-all-features"]
args = ["+nightly-2024-03-31", "test-all-features"]
install_crate = "cargo-all-features"
4 changes: 2 additions & 2 deletions examples/cargo-make/cargo-leptos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ clear = true
dependencies = ["check-debug", "check-release"]

[tasks.check-debug]
toolchain = "nightly-2024-01-29"
toolchain = "nightly-2024-03-31"
command = "cargo"
args = ["check-all-features"]
install_crate = "cargo-all-features"

[tasks.check-release]
toolchain = "nightly-2024-01-29"
toolchain = "nightly-2024-03-31"
command = "cargo"
args = ["check-all-features", "--release"]
install_crate = "cargo-all-features"
Expand Down
4 changes: 2 additions & 2 deletions examples/cargo-make/compile.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[tasks.build]
toolchain = "nightly-2024-01-29"
toolchain = "nightly-2024-03-31"
command = "cargo"
args = ["build-all-features"]
install_crate = "cargo-all-features"

[tasks.check]
toolchain = "nightly-2024-01-29"
toolchain = "nightly-2024-03-31"
command = "cargo"
args = ["check-all-features"]
install_crate = "cargo-all-features"
4 changes: 2 additions & 2 deletions examples/cargo-make/deno-build.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ clear = true
dependencies = ["check-debug", "check-release"]

[tasks.check-debug]
toolchain = "nightly-2024-01-29"
toolchain = "nightly-2024-03-31"
command = "cargo"
args = ["check-all-features"]
install_crate = "cargo-all-features"

[tasks.check-release]
toolchain = "nightly-2024-01-29"
toolchain = "nightly-2024-03-31"
command = "cargo"
args = ["check-all-features", "--release"]
install_crate = "cargo-all-features"
2 changes: 1 addition & 1 deletion examples/counter/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/counter_url_query/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/counter_without_macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use leptos::{ev, html::*, *};
use leptos::{html::*, *};

/// A simple counter view.
// A component is really just a function call: it runs once to create the DOM and reactive system
Expand Down
2 changes: 1 addition & 1 deletion examples/counters/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/counters/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use leptos::{For, *};
use leptos::*;

const MANY_COUNTERS: usize = 1000;

Expand Down
2 changes: 1 addition & 1 deletion examples/directives/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/error_boundary/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/errors_axum/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/errors_axum/src/error_template.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::errors::AppError;
use leptos::{logging::log, Errors, *};
use leptos::{logging::log, *};
#[cfg(feature = "ssr")]
use leptos_axum::ResponseOptions;

Expand Down
2 changes: 1 addition & 1 deletion examples/fetch/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/hackernews/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/hackernews_axum/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/hackernews_islands_axum/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
4 changes: 2 additions & 2 deletions examples/js-framework-benchmark/Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ extend = [
]

[tasks.build]
toolchain = "nightly-2024-01-29"
toolchain = "nightly-2024-03-31"
command = "cargo"
args = ["build-all-features", "--target", "wasm32-unknown-unknown"]
install_crate = "cargo-all-features"

[tasks.check]
toolchain = "nightly-2024-01-29"
toolchain = "nightly-2024-03-31"
command = "cargo"
args = ["check-all-features", "--target", "wasm32-unknown-unknown"]
install_crate = "cargo-all-features"
Expand Down
2 changes: 1 addition & 1 deletion examples/js-framework-benchmark/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use leptos::{ev, *};
use leptos::*;

#[component]
pub fn CredentialsForm(
Expand Down
3 changes: 2 additions & 1 deletion examples/login_with_token_csr_only/server/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl AppState {
credentials: Credentials,
) -> Result<(), CreateUserError> {
let Credentials { email, password } = credentials;
let user_exists = self.users.get(&email).is_some();
let user_exists = self.users.contains_key(&email);
if user_exists {
return Err(CreateUserError::UserExists);
}
Expand Down Expand Up @@ -124,6 +124,7 @@ impl EmailAddress {
#[derive(Clone)]
pub struct CurrentUser {
pub email: EmailAddress,
#[allow(dead_code)] // possibly a lint regression, this is used at line 65
pub token: Uuid,
}

Expand Down
2 changes: 1 addition & 1 deletion examples/parent_child/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/portal/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/router/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/server_fns_axum/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/server_fns_axum/src/error_template.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::errors::TodoAppError;
use leptos::{Errors, *};
use leptos::*;
#[cfg(feature = "ssr")]
use leptos_axum::ResponseOptions;

Expand Down
2 changes: 1 addition & 1 deletion examples/session_auth_axum/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/session_auth_axum/src/error_template.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::errors::TodoAppError;
use leptos::{Errors, *};
use leptos::*;
#[cfg(feature = "ssr")]
use leptos_axum::ResponseOptions;

Expand Down
2 changes: 1 addition & 1 deletion examples/slots/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
4 changes: 2 additions & 2 deletions examples/sso_auth_axum/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ use axum::{
Router,
};
use axum_session::{Key, SessionConfig, SessionLayer, SessionStore};
use axum_session_auth::{AuthConfig, AuthSessionLayer, SessionSqlitePool};
use axum_session_auth::{AuthConfig, AuthSessionLayer};
use leptos::{get_configuration, logging::log, provide_context, view};
use leptos_axum::{
generate_route_list, handle_server_fns_with_context, LeptosRoutes,
};
use sqlx::{sqlite::SqlitePoolOptions, SqlitePool};
use sqlx::sqlite::SqlitePoolOptions;
use sso_auth_axum::{
auth::*, fallback::file_and_error_handler, state::AppState,
};
Expand Down
2 changes: 1 addition & 1 deletion examples/ssr_modes/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/ssr_modes_axum/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/tailwind_actix/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/tailwind_axum/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/tailwind_csr/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/timer/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/todo_app_sqlite/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/todo_app_sqlite_axum/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/todo_app_sqlite_axum/src/error_template.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::errors::TodoAppError;
use leptos::{Errors, *};
use leptos::*;
#[cfg(feature = "ssr")]
use leptos_axum::ResponseOptions;

Expand Down
2 changes: 1 addition & 1 deletion examples/todo_app_sqlite_csr/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
2 changes: 1 addition & 1 deletion examples/todo_app_sqlite_csr/src/error_template.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::errors::TodoAppError;
use leptos::{Errors, *};
use leptos::*;
#[cfg(feature = "ssr")]
use leptos_axum::ResponseOptions;

Expand Down
2 changes: 1 addition & 1 deletion examples/todomvc/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-01-29"
channel = "nightly-2024-03-31"
19 changes: 11 additions & 8 deletions leptos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@ leptos_macro = { workspace = true }
leptos_reactive = { workspace = true }
leptos_server = { workspace = true }
leptos_config = { workspace = true }
leptos-spin-macro = { version="0.1", optional = true}
leptos-spin-macro = { version = "0.1", optional = true }
tracing = "0.1"
typed-builder = "0.18"
typed-builder-macro = "0.18"
serde = { version = "1", optional = true }
serde_json = { version = "1", optional = true }
server_fn = { workspace = true, features = ["form-redirects", "browser", "url", "cbor"] }
server_fn = { workspace = true, features = [
"form-redirects",
"browser",
"url",
"cbor",
] }
web-sys = { version = "0.3.63", features = [
"ShadowRoot",
"ShadowRootInit",
Expand Down Expand Up @@ -68,10 +73,7 @@ miniserde = ["leptos_reactive/miniserde"]
rkyv = ["leptos_reactive/rkyv"]
tracing = ["leptos_macro/tracing"]
nonce = ["leptos_dom/nonce"]
spin = [
"leptos_reactive/spin",
"leptos-spin-macro"
]
spin = ["leptos_reactive/spin", "leptos-spin-macro"]
experimental-islands = [
"leptos_dom/experimental-islands",
"leptos_macro/experimental-islands",
Expand All @@ -81,7 +83,7 @@ experimental-islands = [
]
trace-component-props = [
"leptos_dom/trace-component-props",
"leptos_macro/trace-component-props"
"leptos_macro/trace-component-props",
]

[package.metadata.cargo-all-features]
Expand All @@ -92,9 +94,10 @@ denylist = [
"rustls",
"default-tls",
"wasm-bindgen",
"rkyv", # was causing clippy issues on nightly
"trace-component-props",
"spin",
"experimental-islands"
"experimental-islands",
]
skip_feature_sets = [
[
Expand Down
5 changes: 1 addition & 4 deletions leptos/src/error_boundary.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use crate::Children;
use leptos_dom::{Errors, HydrationCtx, IntoView};
use leptos_macro::{component, view};
use leptos_reactive::{
create_rw_signal, provide_context, run_as_child, signal_prelude::*,
RwSignal,
};
use leptos_reactive::{provide_context, run_as_child, signal_prelude::*};

/// When you render a `Result<_, _>` in your view, in the `Err` case it will
/// render nothing, and search up through the view tree for an `<ErrorBoundary/>`.
Expand Down
Loading

0 comments on commit 41f3c46

Please sign in to comment.