Skip to content

Commit 2a37214

Browse files
authored
refactor!: use new iroh-metrics version, no more global tracking (#58)
## Description Adapts iroh-metrics for n0-computer/iroh-metrics#15 and n0-computer/iroh#3262 Depends on n0-computer/iroh#3262 ## Breaking Changes * `metrics::Metrics` now implements `MetricsGroup` from the ì[email protected]` * Metrics are no longer tracked into the `static_core` from `iroh-metrics`, but instead are tracked per `Gossip` and exposed via `Gossip::metrics` * `proto::state::State::handle` now takes `Option<&Metrics>` as new 4th parameter ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [x] Tests if relevant. - [x] All breaking changes documented.
1 parent dbec9b0 commit 2a37214

File tree

9 files changed

+434
-378
lines changed

9 files changed

+434
-378
lines changed

.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[target.wasm32-unknown-unknown]
2+
runner = "wasm-bindgen-test-runner"
3+
rustflags = ['--cfg', 'getrandom_backend="wasm_js"']

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ jobs:
150150
wasm_build:
151151
name: Build wasm32
152152
runs-on: ubuntu-latest
153+
env:
154+
RUSTFLAGS: '--cfg getrandom_backend="wasm_js"'
153155
steps:
154156
- name: Checkout sources
155157
uses: actions/checkout@v4

0 commit comments

Comments
 (0)