From 3a5e52d800f5c81ec7061b636cf678adcdd3c459 Mon Sep 17 00:00:00 2001 From: Andrew Plaza Date: Fri, 4 Oct 2024 15:55:13 -0400 Subject: [PATCH] (chore) bump dependencies, fix ci --- .github/workflows/{test-wasm.yml => test.yml} | 2 +- .node-version | 1 + Cargo.toml | 13 +++++++------ flake.nix | 7 +++++++ tests/common/mod.rs | 1 - 5 files changed, 16 insertions(+), 8 deletions(-) rename .github/workflows/{test-wasm.yml => test.yml} (97%) create mode 100644 .node-version diff --git a/.github/workflows/test-wasm.yml b/.github/workflows/test.yml similarity index 97% rename from .github/workflows/test-wasm.yml rename to .github/workflows/test.yml index e6b0a8b..995d10a 100644 --- a/.github/workflows/test-wasm.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ on: pull_request: # only run tests when related changes are made paths: - - ".github/workflows/test-wasm.yml" + - ".github/workflows/test.yml" - "src/**" - "Cargo.toml" - "Cargo.lock" diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..3c5535c --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +18.19.1 diff --git a/Cargo.toml b/Cargo.toml index 6809293..fcbb1d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,20 +20,20 @@ targets = ["wasm32-unknown-unknown"] talc = { version = "4.4", default-features = false, features = ["lock_api"] } diesel = { version = "2.2", features = ["i-implement-a-third-party-backend-and-opt-into-breaking-changes"] } diesel_derives = "2.2" -wasm-bindgen = "=0.2.92" +wasm-bindgen = "=0.2.93" wasm-bindgen-futures = "0.4" js-sys = { version = "0.3" } -tracing = "0.1" +tracing = { "0.1", default-features = false } tokio = { version = "1.38", default-features = false, features = ["sync"] } serde = { version = "1.0", default-features = false, features = ["derive"] } serde-wasm-bindgen = "0.6" thiserror = "1" [dev-dependencies] +wasm-bindgen-test = "=0.3.43" console_error_panic_hook = { version = "0.1"} rand = "0.8" getrandom = { version = "0.2", features = ["js"] } -wasm-bindgen-test = "0.3.42" web-sys = { version = "0.3", features = ["console"] } chrono = { version = "0.4", features = ["wasmbind", "serde"] } diesel_migrations = "2.2" @@ -45,9 +45,10 @@ tracing-subscriber = { version = "0.3", features = ["env-filter", "tracing-log"] diesel = { git = "https://github.com/xmtp/diesel", branch = "insipx/sqlite-replace-ignore-pub" } diesel_derives = { git = "https://github.com/xmtp/diesel", branch = "insipx/sqlite-replace-ignore-pub" } diesel_migrations = { git = "https://github.com/xmtp/diesel", branch = "insipx/sqlite-replace-ignore-pub" } -wasm-bindgen = { git = "https://github.com/rustwasm/wasm-bindgen", branch = "main" } -# [profile.release] -# opt-level = "s" + +[profile.release] +opt-level = "s" +lto = true [lib] crate-type = ["cdylib", "rlib"] diff --git a/flake.nix b/flake.nix index bd93ec0..b708674 100644 --- a/flake.nix +++ b/flake.nix @@ -43,6 +43,13 @@ cargo-sweep cargo-cache cargo-machete + cargo-features-manager + cargo-bloat + cargo-mutants + cargo-deny + cargo-audit + chromedriver + geckodriver ] ++ lib.optionals isDarwin [ libiconv frameworks.CoreServices diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 26d3092..776ee60 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -2,7 +2,6 @@ use prelude::*; use tokio::sync::OnceCell; -use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt}; static INIT: OnceCell<()> = OnceCell::const_new();