From c612aa9bac806072c0921b9b32ec82e5d8bf9a21 Mon Sep 17 00:00:00 2001 From: itsscb Date: Wed, 28 Aug 2024 20:05:20 +0200 Subject: [PATCH] chore: updates dependencies --- Cargo.toml | 6 +++--- flake.nix | 7 +++++++ frontend/Cargo.toml | 4 ++-- frontend/tailwind.config.js | 16 ++++++---------- 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2f06763..b659d9f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,11 +4,11 @@ version = "0.1.0" edition = "2021" [dependencies] -axum = "0.7.4" +axum = "0.7.5" http = "1.1.0" rand = "0.8.5" -shuttle-axum = "0.45.0" -shuttle-runtime = "0.45.0" +shuttle-axum = "0.47.0" +shuttle-runtime = "0.47.0" tower-http = { version = "0.5.2", features = ["fs", "cors"] } tracing = "0.1.40" diff --git a/flake.nix b/flake.nix index e7a0e0f..adf3ea8 100644 --- a/flake.nix +++ b/flake.nix @@ -27,12 +27,19 @@ clippy tailwindcss cargo-shuttle + cargo-edit + + openssl + pkg-config ]; shellHook = '' export PATH=${rustToolchain}/bin:$PATH export RUSTC_VERSION=$(rustc --version) export RUST_SRC_PATH="${rustToolchain}/lib/rustlib/src/rust/library" + export OPENSSL_DIR="${pkgs.openssl.dev}" + export OPENSSL_LIB_DIR="${pkgs.openssl.out}/lib" + export OPENSSL_INCLUDE_DIR="${pkgs.openssl.dev}/include" ''; packages = pkgs.lib.optionals pkgs.stdenv.isDarwin (with pkgs; [ libiconv ]); diff --git a/frontend/Cargo.toml b/frontend/Cargo.toml index 8a41701..304fff5 100644 --- a/frontend/Cargo.toml +++ b/frontend/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -web-sys = { version = "0.3.69", features = [ +web-sys = { version = "0.3.70", features = [ "HtmlElement", "HtmlInputElement", "KeyboardEvent", @@ -17,4 +17,4 @@ wasm-bindgen-futures = "0.4.43" wasm-bindgen = "0.2.93" yewdux = "0.10.0" gloo-net = "0.6.0" -serde = { version = "1.0.198", features = ["derive"] } \ No newline at end of file +serde = { version = "1.0.209", features = ["derive"] } diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index dc3cb54..deb6901 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -1,14 +1,10 @@ module.exports = { - purge: { - mode: "all", - content: [ - "./src/**/*.rs", - "./src/pages/documents.rs", - "./index.html", - "./src/**/*.html", - "./src/**/*.css", - ], - }, + content: [ + "./src/**/*.rs", + "./index.html", + "./src/**/*.html", + "./src/**/*.css", + ], theme: {}, variants: {}, plugins: [],