Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 6685624

Browse files
authored
Merge pull request #1 from xmtp/insipx/headless-tests
(chore) bump dependencies, fix ci
2 parents c1c4da6 + 3a5e52d commit 6685624

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

.github/workflows/test-wasm.yml renamed to .github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
pull_request:
77
# only run tests when related changes are made
88
paths:
9-
- ".github/workflows/test-wasm.yml"
9+
- ".github/workflows/test.yml"
1010
- "src/**"
1111
- "Cargo.toml"
1212
- "Cargo.lock"

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18.19.1

Cargo.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ targets = ["wasm32-unknown-unknown"]
2020
talc = { version = "4.4", default-features = false, features = ["lock_api"] }
2121
diesel = { version = "2.2", features = ["i-implement-a-third-party-backend-and-opt-into-breaking-changes"] }
2222
diesel_derives = "2.2"
23-
wasm-bindgen = "=0.2.92"
23+
wasm-bindgen = "=0.2.93"
2424
wasm-bindgen-futures = "0.4"
2525
js-sys = { version = "0.3" }
26-
tracing = "0.1"
26+
tracing = { "0.1", default-features = false }
2727
tokio = { version = "1.38", default-features = false, features = ["sync"] }
2828
serde = { version = "1.0", default-features = false, features = ["derive"] }
2929
serde-wasm-bindgen = "0.6"
3030
thiserror = "1"
3131

3232
[dev-dependencies]
33+
wasm-bindgen-test = "=0.3.43"
3334
console_error_panic_hook = { version = "0.1"}
3435
rand = "0.8"
3536
getrandom = { version = "0.2", features = ["js"] }
36-
wasm-bindgen-test = "0.3.42"
3737
web-sys = { version = "0.3", features = ["console"] }
3838
chrono = { version = "0.4", features = ["wasmbind", "serde"] }
3939
diesel_migrations = "2.2"
@@ -45,9 +45,10 @@ tracing-subscriber = { version = "0.3", features = ["env-filter", "tracing-log"]
4545
diesel = { git = "https://github.com/xmtp/diesel", branch = "insipx/sqlite-replace-ignore-pub" }
4646
diesel_derives = { git = "https://github.com/xmtp/diesel", branch = "insipx/sqlite-replace-ignore-pub" }
4747
diesel_migrations = { git = "https://github.com/xmtp/diesel", branch = "insipx/sqlite-replace-ignore-pub" }
48-
wasm-bindgen = { git = "https://github.com/rustwasm/wasm-bindgen", branch = "main" }
49-
# [profile.release]
50-
# opt-level = "s"
48+
49+
[profile.release]
50+
opt-level = "s"
51+
lto = true
5152

5253
[lib]
5354
crate-type = ["cdylib", "rlib"]

flake.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@
4343
cargo-sweep
4444
cargo-cache
4545
cargo-machete
46+
cargo-features-manager
47+
cargo-bloat
48+
cargo-mutants
49+
cargo-deny
50+
cargo-audit
51+
chromedriver
52+
geckodriver
4653
] ++ lib.optionals isDarwin [
4754
libiconv
4855
frameworks.CoreServices

tests/common/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
use prelude::*;
33

44
use tokio::sync::OnceCell;
5-
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
65

76
static INIT: OnceCell<()> = OnceCell::const_new();
87

0 commit comments

Comments
 (0)