From 6b32f3ee05aad43e726da97c62d256b316dd9f6c Mon Sep 17 00:00:00 2001 From: Romulus21 Date: Mon, 21 Oct 2024 18:12:07 +0200 Subject: [PATCH] cargo add mail --- .gitignore | 1 + Cargo.lock | 4 ++-- Cargo.toml | 2 +- migrations/20221207194615_init.up.sql | 2 ++ src/main.rs | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index b84e84a..deeab56 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ Todos.db target/ +site/ style/output.css .env diff --git a/Cargo.lock b/Cargo.lock index 4a7695b..cc333c9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1320,9 +1320,9 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.10.0" +version = "2.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "187674a687eed5fe42285b40c6291f9a01517d415fad1c3cbc6a9f778af7fcd4" +checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" [[package]] name = "itertools" diff --git a/Cargo.toml b/Cargo.toml index 0dd737c..31c2db3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -119,7 +119,7 @@ lib-features = ["hydrate"] # Optional. Defaults to false. lib-default-features = false -#bin-target-triple = "aarch64-unknown-linux-gnu" +bin-target-triple = "aarch64-unknown-linux-gnu" tailwind-input-file = "input.css" tailwind-config-file = "tailwind.config.js" diff --git a/migrations/20221207194615_init.up.sql b/migrations/20221207194615_init.up.sql index 0d64a1e..7608048 100644 --- a/migrations/20221207194615_init.up.sql +++ b/migrations/20221207194615_init.up.sql @@ -7,3 +7,5 @@ CREATE TABLE IF NOT EXISTS donnees ( date_donnee datetime NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +CREATE INDEX grafana_index ON donnees(date_donnee, capteur, type); diff --git a/src/main.rs b/src/main.rs index 2a5db52..a94f24b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ #[cfg(feature = "ssr")] #[tokio::main] async fn main() { - rust_leptos::setup::init_app(None).await; + rust_leptos::setup::init_app(Some("Cargo.toml")).await; } #[cfg(not(feature = "ssr"))]