Skip to content

Commit 997f2d9

Browse files
authored
feat: support dispatching the runtime events (#351)
* chore: add dependency * chore: update `Cargo.lock` * stamp: add a utility function * stamp: update flags * stamp: add dependency * chore: update `Cargo.lock` * fix: update `bootstrap.js` to expose the event dispatch functions * stamp: polishing * feat: support dispatching the runtime events * stamp: must be used `CallbackScope` instead of `HandleScope` while dispatching event * stamp: oops * stamp: use `beforeunload` instead of `willterminate` * stamp: resolve merge conflicts * stamp: polishing * chore: add integration tests * stamp: make clippy happy
1 parent e19cac9 commit 997f2d9

File tree

21 files changed

+1033
-58
lines changed

21 files changed

+1033
-58
lines changed

Cargo.lock

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ url = { version = "< 2.5.0", features = ["serde", "expose_internals"] } # upgrad
6868
eszip = "=0.72.2"
6969
log = "0.4.20"
7070
anyhow = "1.0.57"
71-
libc = "0.2.126"
71+
libc = "0.2.144"
7272
libz-sys = { version = "1.1", default-features = false }
73+
num-traits = "0.2"
7374
enum-as-inner = "0.6.0"
7475
serde = { version = "1.0.149", features = ["derive"] }
7576
serde_json = "1.0.85"

crates/base/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,14 @@ rustls-pemfile.workspace = true
7676
tracing.workspace = true
7777
reqwest_v011.workspace = true
7878
tracing-subscriber = { workspace = true, optional = true, features = ["env-filter", "tracing-log"] }
79+
num-traits.workspace = true
7980

8081
tls-listener = { version = "0.10", features = ["rustls"] }
82+
strum = { version = "0.25", features = ["derive"] }
8183
flume = "0.11.0"
8284
cooked-waker = "5"
8385
tokio-rustls = "0.25.0"
86+
arc-swap = "1.7"
8487

8588
[dev-dependencies]
8689
tokio-util = { workspace = true, features = ["rt", "compat"] }

0 commit comments

Comments
 (0)