fix(CI): toolchain will be determined and test against by CI (#3778)

* fix(CI): toolchain will be determined and test against by CI

* chore: formatting examples

* fix: clippy
This commit is contained in:
Saber Haj Rabiee
2025-03-23 10:10:52 -07:00
committed by GitHub
parent 2c1194a71a
commit f24e804985
73 changed files with 111 additions and 168 deletions

View File

@@ -1,2 +0,0 @@
[toolchain]
channel = "stable" # test change

View File

@@ -26,8 +26,7 @@ async fn main() {
};
use axum_js_ssr::app::*;
use http_body_util::BodyExt;
use leptos::logging::log;
use leptos::prelude::*;
use leptos::{logging::log, prelude::*};
use leptos_axum::{generate_route_list, LeptosRoutes};
latency::LATENCY.get_or_init(|| [0, 4, 40, 400].iter().cycle().into());

View File

@@ -1,6 +1,4 @@
extend = [
{ path = "./lint.toml" }
]
extend = [{ path = "./lint.toml" }]
[tasks.make-target-site-dir]
command = "mkdir"
@@ -24,13 +22,11 @@ clear = true
dependencies = ["check-debug", "check-release"]
[tasks.check-debug]
toolchain = "stable"
command = "cargo"
args = ["check-all-features"]
install_crate = "cargo-all-features"
[tasks.check-release]
toolchain = "stable"
command = "cargo"
args = ["check-all-features", "--release"]
install_crate = "cargo-all-features"
@@ -41,4 +37,5 @@ dependencies = ["make-target-site-dir", "check-style"]
[tasks.start-client]
dependencies = ["install-cargo-leptos"]
command = "cargo"
args = ["leptos", "watch", "--release", "-P"]
args = ["leptos", "watch", "--release", "-P"]

View File

@@ -16,13 +16,11 @@ clear = true
dependencies = ["check-debug", "check-release"]
[tasks.check-debug]
toolchain = "stable"
command = "cargo"
args = ["check-all-features"]
install_crate = "cargo-all-features"
[tasks.check-release]
toolchain = "stable"
command = "cargo"
args = ["check-all-features", "--release"]
install_crate = "cargo-all-features"

View File

@@ -1,11 +1,9 @@
[tasks.build]
toolchain = "stable"
command = "cargo"
args = ["build-all-features"]
install_crate = "cargo-all-features"
[tasks.check]
toolchain = "stable"
command = "cargo"
args = ["check-all-features"]
install_crate = "cargo-all-features"

View File

@@ -14,13 +14,11 @@ clear = true
dependencies = ["check-debug", "check-release"]
[tasks.check-debug]
toolchain = "stable"
command = "cargo"
args = ["check-all-features"]
install_crate = "cargo-all-features"
[tasks.check-release]
toolchain = "stable"
command = "cargo"
args = ["check-all-features", "--release"]
install_crate = "cargo-all-features"

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,9 +1,7 @@
#![allow(dead_code)]
use counter::*;
use leptos::mount::mount_to;
use leptos::prelude::*;
use leptos::task::tick;
use leptos::{mount::mount_to, prelude::*, task::tick};
use wasm_bindgen::JsCast;
use wasm_bindgen_test::*;

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,17 +1,15 @@
extend = [
{ path = "../cargo-make/main.toml" },
{ path = "../cargo-make/wasm-test.toml" },
{ path = "../cargo-make/trunk_server.toml" },
{ path = "../cargo-make/main.toml" },
{ path = "../cargo-make/wasm-test.toml" },
{ path = "../cargo-make/trunk_server.toml" },
]
[tasks.build]
toolchain = "stable"
command = "cargo"
args = ["build-all-features"]
install_crate = "cargo-all-features"
[tasks.check]
toolchain = "stable"
command = "cargo"
args = ["check-all-features"]
install_crate = "cargo-all-features"

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -5,8 +5,7 @@ use wasm_bindgen_test::*;
wasm_bindgen_test_configure!(run_in_browser);
use counters::Counters;
use leptos::prelude::*;
use leptos::task::tick;
use leptos::{prelude::*, task::tick};
use web_sys::HtmlElement;
#[wasm_bindgen_test]
@@ -24,8 +23,9 @@ async fn inc() {
assert_eq!(
div.inner_html(),
"<button>Add Counter</button><button>Add 1000 \
Counters</button><button>Clear Counters</button><p>Total: \
<span data-testid=\"total\">0</span> from <span data-testid=\"counters\">0</span> counters.</p><ul><!----></ul>"
Counters</button><button>Clear Counters</button><p>Total: <span \
data-testid=\"total\">0</span> from <span \
data-testid=\"counters\">0</span> counters.</p><ul><!----></ul>"
);
// add 3 counters
@@ -39,8 +39,9 @@ async fn inc() {
assert_eq!(
div.inner_html(),
"<button>Add Counter</button><button>Add 1000 \
Counters</button><button>Clear Counters</button><p>Total: \
<span data-testid=\"total\">0</span> from <span data-testid=\"counters\">3</span> \
Counters</button><button>Clear Counters</button><p>Total: <span \
data-testid=\"total\">0</span> from <span \
data-testid=\"counters\">3</span> \
counters.</p><ul><li><button>-1</button><input \
type=\"text\"><span>0</span><button>+1</button><button>x</button></\
li><li><button>-1</button><input \
@@ -81,8 +82,9 @@ async fn inc() {
assert_eq!(
div.inner_html(),
"<button>Add Counter</button><button>Add 1000 \
Counters</button><button>Clear Counters</button><p>Total: \
<span data-testid=\"total\">6</span> from <span data-testid=\"counters\">3</span> \
Counters</button><button>Clear Counters</button><p>Total: <span \
data-testid=\"total\">6</span> from <span \
data-testid=\"counters\">3</span> \
counters.</p><ul><li><button>-1</button><input \
type=\"text\"><span>1</span><button>+1</button><button>x</button></\
li><li><button>-1</button><input \
@@ -106,8 +108,9 @@ async fn inc() {
assert_eq!(
div.inner_html(),
"<button>Add Counter</button><button>Add 1000 \
Counters</button><button>Clear Counters</button><p>Total: \
<span data-testid=\"total\">5</span> from <span data-testid=\"counters\">2</span> \
Counters</button><button>Clear Counters</button><p>Total: <span \
data-testid=\"total\">5</span> from <span \
data-testid=\"counters\">2</span> \
counters.</p><ul><li><button>-1</button><input \
type=\"text\"><span>2</span><button>+1</button><button>x</button></\
li><li><button>-1</button><input \

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,5 +1,4 @@
use serde::de::DeserializeOwned;
use serde::{Deserialize, Serialize};
use serde::{de::DeserializeOwned, Deserialize, Serialize};
pub fn story(path: &str) -> String {
format!("https://node-hnapi.herokuapp.com/{path}")

View File

@@ -1,9 +1,7 @@
use crate::api;
use leptos::either::Either;
use leptos::prelude::*;
use leptos::{either::Either, prelude::*};
use leptos_meta::Meta;
use leptos_router::components::A;
use leptos_router::hooks::use_params_map;
use leptos_router::{components::A, hooks::use_params_map};
#[component]
pub fn Story() -> impl IntoView {

View File

@@ -1,6 +1,5 @@
use crate::api::{self, User};
use leptos::server::Resource;
use leptos::{either::Either, prelude::*};
use leptos::{either::Either, prelude::*, server::Resource};
use leptos_router::hooks::use_params_map;
#[component]

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,6 +1,5 @@
use leptos::logging;
use serde::de::DeserializeOwned;
use serde::{Deserialize, Serialize};
use serde::{de::DeserializeOwned, Deserialize, Serialize};
pub fn story(path: &str) -> String {
format!("https://node-hnapi.herokuapp.com/{path}")

View File

@@ -1,9 +1,7 @@
use crate::api;
use leptos::either::Either;
use leptos::prelude::*;
use leptos::{either::Either, prelude::*};
use leptos_meta::Meta;
use leptos_router::components::A;
use leptos_router::hooks::use_params_map;
use leptos_router::{components::A, hooks::use_params_map};
#[component]
pub fn Story() -> impl IntoView {

View File

@@ -1,6 +1,5 @@
use crate::api::{self, User};
use leptos::server::Resource;
use leptos::{either::Either, prelude::*};
use leptos::{either::Either, prelude::*, server::Resource};
use leptos_router::hooks::use_params_map;
#[component]

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,9 +1,7 @@
use crate::api;
use leptos::either::Either;
use leptos::prelude::*;
use leptos::{either::Either, prelude::*};
use leptos_meta::Meta;
use leptos_router::components::A;
use leptos_router::hooks::use_params_map;
use leptos_router::{components::A, hooks::use_params_map};
#[server]
pub async fn fetch_story(

View File

@@ -1,6 +1,5 @@
use crate::api;
use leptos::server::Resource;
use leptos::{either::Either, prelude::*};
use leptos::{either::Either, prelude::*, server::Resource};
use leptos_router::hooks::use_params_map;
#[server]

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,17 +1,15 @@
extend = [
{ path = "../cargo-make/main.toml" },
{ path = "../cargo-make/wasm-test.toml" },
{ path = "../cargo-make/trunk_server.toml" },
{ path = "../cargo-make/main.toml" },
{ path = "../cargo-make/wasm-test.toml" },
{ path = "../cargo-make/trunk_server.toml" },
]
[tasks.build]
toolchain = "stable"
command = "cargo"
args = ["build-all-features", "--target", "wasm32-unknown-unknown"]
install_crate = "cargo-all-features"
[tasks.check]
toolchain = "stable"
command = "cargo"
args = ["check-all-features", "--target", "wasm32-unknown-unknown"]
install_crate = "cargo-all-features"

View File

@@ -1,2 +0,0 @@
[toolchain]
channel = "stable"

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,6 +1,4 @@
use leptos::control_flow::Show;
use leptos::portal::Portal;
use leptos::prelude::*;
use leptos::{control_flow::Show, portal::Portal, prelude::*};
#[component]
pub fn App() -> impl IntoView {

View File

@@ -5,8 +5,7 @@ use wasm_bindgen::JsCast;
use wasm_bindgen_test::*;
wasm_bindgen_test_configure!(run_in_browser);
use leptos::task::tick;
use leptos::{leptos_dom::helpers::document, mount::mount_to};
use leptos::{leptos_dom::helpers::document, mount::mount_to, task::tick};
use web_sys::HtmlButtonElement;
#[wasm_bindgen_test]
@@ -30,7 +29,16 @@ async fn portal() {
tick().await;
// check HTML
assert_eq!(div.inner_html(), "<div><button id=\"btn-show\">Show Overlay</button><div>Show</div><!----></div><div><div style=\"position: fixed; z-index: 10; width: 100vw; height: 100vh; top: 0; left: 0; background: rgba(0, 0, 0, 0.8); color: white;\"><p>This is in the body element</p><button id=\"btn-hide\">Close Overlay</button><button id=\"btn-toggle\">Toggle inner</button>Hidden</div></div>");
assert_eq!(
div.inner_html(),
"<div><button id=\"btn-show\">Show \
Overlay</button><div>Show</div><!----></div><div><div \
style=\"position: fixed; z-index: 10; width: 100vw; height: 100vh; \
top: 0; left: 0; background: rgba(0, 0, 0, 0.8); color: \
white;\"><p>This is in the body element</p><button \
id=\"btn-hide\">Close Overlay</button><button \
id=\"btn-toggle\">Toggle inner</button>Hidden</div></div>"
);
let toggle_button = document
.get_element_by_id("btn-toggle")
@@ -39,7 +47,16 @@ async fn portal() {
toggle_button.click();
assert_eq!(div.inner_html(), "<div><button id=\"btn-show\">Show Overlay</button><div>Show</div><!----></div><div><div style=\"position: fixed; z-index: 10; width: 100vw; height: 100vh; top: 0; left: 0; background: rgba(0, 0, 0, 0.8); color: white;\"><p>This is in the body element</p><button id=\"btn-hide\">Close Overlay</button><button id=\"btn-toggle\">Toggle inner</button>Hidden</div></div>");
assert_eq!(
div.inner_html(),
"<div><button id=\"btn-show\">Show \
Overlay</button><div>Show</div><!----></div><div><div \
style=\"position: fixed; z-index: 10; width: 100vw; height: 100vh; \
top: 0; left: 0; background: rgba(0, 0, 0, 0.8); color: \
white;\"><p>This is in the body element</p><button \
id=\"btn-hide\">Close Overlay</button><button \
id=\"btn-toggle\">Toggle inner</button>Hidden</div></div>"
);
let hide_button = document
.get_element_by_id("btn-hide")
@@ -48,5 +65,14 @@ async fn portal() {
hide_button.click();
assert_eq!(div.inner_html(), "<div><button id=\"btn-show\">Show Overlay</button><div>Show</div><!----></div><div><div style=\"position: fixed; z-index: 10; width: 100vw; height: 100vh; top: 0; left: 0; background: rgba(0, 0, 0, 0.8); color: white;\"><p>This is in the body element</p><button id=\"btn-hide\">Close Overlay</button><button id=\"btn-toggle\">Toggle inner</button>Hidden</div></div>");
assert_eq!(
div.inner_html(),
"<div><button id=\"btn-show\">Show \
Overlay</button><div>Show</div><!----></div><div><div \
style=\"position: fixed; z-index: 10; width: 100vw; height: 100vh; \
top: 0; left: 0; background: rgba(0, 0, 0, 0.8); color: \
white;\"><p>This is in the body element</p><button \
id=\"btn-hide\">Close Overlay</button><button \
id=\"btn-toggle\">Toggle inner</button>Hidden</div></div>"
);
}

View File

@@ -1,3 +1,3 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]
components = ["rust-src"]

View File

@@ -1,7 +1,6 @@
mod api;
use crate::api::*;
use leptos::either::Either;
use leptos::prelude::*;
use leptos::{either::Either, prelude::*};
use leptos_router::{
components::{
Form, Outlet, ParentRoute, ProtectedRoute, Redirect, Route, Router,

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -532,7 +532,7 @@ pub fn FileUploadWithProgress() -> impl IntoView {
let len = len
.split('\n')
.filter(|n| !n.is_empty())
.last()
.next_back()
.expect(
"expected at least one non-empty value from \
newline-delimited rows",

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,2 +0,0 @@
[toolchain]
channel = "nightly-2025-03-05"

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,8 +1,5 @@
use std::sync::LazyLock;
use leptos::prelude::*;
use leptos_meta::MetaTags;
use leptos_meta::*;
use leptos_meta::{MetaTags, *};
use leptos_router::{
components::{FlatRoutes, ProtectedRoute, Route, Router},
hooks::use_params,
@@ -12,6 +9,7 @@ use leptos_router::{
use serde::{Deserialize, Serialize};
#[cfg(feature = "ssr")]
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::LazyLock;
use thiserror::Error;
pub fn shell(options: LeptosOptions) -> impl IntoView {

View File

@@ -2,8 +2,7 @@
#[tokio::main]
async fn main() {
use axum::Router;
use leptos::logging::log;
use leptos::prelude::*;
use leptos::{logging::log, prelude::*};
use leptos_axum::{generate_route_list, LeptosRoutes};
use ssr_modes_axum::app::*;

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,9 +1,6 @@
use std::path::Path;
use futures::{channel::mpsc, Stream};
use leptos::prelude::*;
use leptos_meta::MetaTags;
use leptos_meta::*;
use leptos_meta::{MetaTags, *};
use leptos_router::{
components::{FlatRoutes, Redirect, Route, Router},
hooks::use_params,
@@ -13,6 +10,7 @@ use leptos_router::{
SsrMode,
};
use serde::{Deserialize, Serialize};
use std::path::Path;
use thiserror::Error;
pub fn shell(options: LeptosOptions) -> impl IntoView {
@@ -204,8 +202,7 @@ pub struct Post {
#[server]
pub async fn list_slugs() -> Result<Vec<String>, ServerFnError> {
use tokio::fs;
use tokio_stream::wrappers::ReadDirStream;
use tokio_stream::StreamExt;
use tokio_stream::{wrappers::ReadDirStream, StreamExt};
let files = ReadDirStream::new(fs::read_dir("./posts").await?);
Ok(files
@@ -295,8 +292,7 @@ fn watch_path(path: &Path) -> impl Stream<Item = ()> {
#[cfg(feature = "ssr")]
{
use notify::RecursiveMode;
use notify::Watcher;
use notify::{RecursiveMode, Watcher};
let mut watcher =
notify::recommended_watcher(move |res: Result<_, _>| {

View File

@@ -2,8 +2,7 @@
#[tokio::main]
async fn main() {
use axum::Router;
use leptos::logging::log;
use leptos::prelude::*;
use leptos::{logging::log, prelude::*};
use leptos_axum::{generate_route_list_with_ssg, LeptosRoutes};
use static_routing::app::*;

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,10 +1,8 @@
use std::sync::atomic::{AtomicUsize, Ordering};
use chrono::{Local, NaiveDate};
use leptos::logging::warn;
use leptos::prelude::*;
use leptos::{logging::warn, prelude::*};
use reactive_stores::{Field, Patch, Store};
use serde::{Deserialize, Serialize};
use std::sync::atomic::{AtomicUsize, Ordering};
// ID starts higher than 0 because we have a few starting todos by default
static NEXT_ID: AtomicUsize = AtomicUsize::new(3);

View File

@@ -71,10 +71,8 @@ pub async fn instrumented_counts(
let mut actual = Vec::<(&str, u32)>::new();
for (selector, _) in expected.iter() {
actual.push((
selector,
find::instrumented_count(client, selector).await?,
))
actual
.push((selector, find::instrumented_count(client, selector).await?))
}
assert_eq!(actual, expected);
@@ -82,19 +80,27 @@ pub async fn instrumented_counts(
Ok(())
}
pub async fn link_text_is_aria_current(client: &Client, text: &str) -> Result<()> {
pub async fn link_text_is_aria_current(
client: &Client,
text: &str,
) -> Result<()> {
let link = find::link_with_text(client, text).await?;
link.attr("aria-current").await?
link.attr("aria-current")
.await?
.expect(format!("aria-current missing for {text}").as_str());
Ok(())
}
pub async fn link_text_is_not_aria_current(client: &Client, text: &str) -> Result<()> {
pub async fn link_text_is_not_aria_current(
client: &Client,
text: &str,
) -> Result<()> {
let link = find::link_with_text(client, text).await?;
link.attr("aria-current").await?
link.attr("aria-current")
.await?
.map(|_| anyhow::bail!("aria-current mistakenly set for {text}"))
.unwrap_or(Ok(()))
}

View File

@@ -85,12 +85,11 @@ pub async fn instrumented_count(
.wait()
.for_element(Locator::Id(selector))
.await
.expect(format!("Element #{selector} not found.")
.as_str());
.expect(format!("Element #{selector} not found.").as_str());
let text = element.text().await?;
let count = text.parse::<u32>()
.expect(format!("Element #{selector} does not contain a number.")
.as_str());
let count = text.parse::<u32>().expect(
format!("Element #{selector} does not contain a number.").as_str(),
);
Ok(count)
}

View File

@@ -1,6 +1,6 @@
use crate::fixtures::{action, world::AppWorld};
use anyhow::{Ok, Result};
use cucumber::{given, when, gherkin::Step};
use cucumber::{gherkin::Step, given, when};
#[given("I see the app")]
#[when("I open the app")]

View File

@@ -1,6 +1,6 @@
use crate::fixtures::{check, world::AppWorld};
use anyhow::{Ok, Result};
use cucumber::{then, gherkin::Step};
use cucumber::{gherkin::Step, then};
#[then(regex = r"^I see the page title is (.*)$")]
async fn i_see_the_page_title_is(
@@ -141,7 +141,8 @@ async fn i_see_the_following_counters_under_section(
// FIXME ideally check the mode; for now leave it because effort
let client = &world.client;
if let Some(table) = step.table.as_ref() {
let expected = table.rows
let expected = table
.rows
.iter()
.skip(1)
.map(|row| (row[0].as_str(), row[1].parse::<u32>().unwrap()))

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,5 +1,4 @@
use leptos::either::Either;
use leptos::prelude::*;
use leptos::{either::Either, prelude::*};
use serde::{Deserialize, Serialize};
use server_fn::ServerFnError;

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,6 +1,5 @@
use crate::error_template::ErrorTemplate;
use leptos::either::Either;
use leptos::prelude::*;
use leptos::{either::Either, prelude::*};
use serde::{Deserialize, Serialize};
use server_fn::ServerFnError;

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,6 +1,5 @@
use crate::error_template::ErrorTemplate;
use leptos::either::Either;
use leptos::prelude::*;
use leptos::{either::Either, prelude::*};
use serde::{Deserialize, Serialize};
use server_fn::ServerFnError;

View File

@@ -1,3 +1,2 @@
[toolchain]
channel = "stable"
targets = ["wasm32-unknown-unknown"]

View File

@@ -1,6 +1,4 @@
use leptos::ev;
use leptos::html::Input;
use leptos::prelude::*;
use leptos::{ev, html::Input, prelude::*};
use serde::{Deserialize, Serialize};
use uuid::Uuid;
use web_sys::KeyboardEvent;

View File

@@ -3,21 +3,21 @@ extend = { path = "../cargo-make/main.toml" }
[tasks.test]
clear = true
dependencies = [
"test-all",
"test-leptos_macro-example",
"doc-leptos_macro-example",
"test-all",
"test-leptos_macro-example",
"doc-leptos_macro-example",
]
[tasks.test-leptos_macro-example]
description = "Tests the leptos_macro/example to check if macro handles doc comments correctly"
command = "cargo"
args = ["+nightly-2025-03-05", "test", "--doc"]
args = ["test", "--doc"]
cwd = "example"
install_crate = false
[tasks.doc-leptos_macro-example]
description = "Docs the leptos_macro/example to check if macro handles doc comments correctly"
command = "cargo"
args = ["+nightly-2025-03-05", "doc"]
args = ["doc"]
cwd = "example"
install_crate = false

View File

@@ -1,2 +0,0 @@
[toolchain]
channel = "stable" # test change

View File

@@ -1,3 +0,0 @@
[toolchain]
channel = "nightly"

View File

@@ -1,2 +0,0 @@
[toolchain]
channel = "nightly"

View File

@@ -1,2 +0,0 @@
[toolchain]
channel = "stable" # test change

View File

@@ -1,3 +0,0 @@
[toolchain]
channel = "nightly"