Skip to content

Commit

Permalink
feat: support dispatching the runtime events (#351)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nyannyacha authored Nov 23, 2024
1 parent e19cac9 commit 997f2d9
Show file tree
Hide file tree
Showing 21 changed files with 1,033 additions and 58 deletions.
9 changes: 9 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ url = { version = "< 2.5.0", features = ["serde", "expose_internals"] } # upgrad
eszip = "=0.72.2"
log = "0.4.20"
anyhow = "1.0.57"
libc = "0.2.126"
libc = "0.2.144"
libz-sys = { version = "1.1", default-features = false }
num-traits = "0.2"
enum-as-inner = "0.6.0"
serde = { version = "1.0.149", features = ["derive"] }
serde_json = "1.0.85"
Expand Down
3 changes: 3 additions & 0 deletions crates/base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,14 @@ rustls-pemfile.workspace = true
tracing.workspace = true
reqwest_v011.workspace = true
tracing-subscriber = { workspace = true, optional = true, features = ["env-filter", "tracing-log"] }
num-traits.workspace = true

tls-listener = { version = "0.10", features = ["rustls"] }
strum = { version = "0.25", features = ["derive"] }
flume = "0.11.0"
cooked-waker = "5"
tokio-rustls = "0.25.0"
arc-swap = "1.7"

[dev-dependencies]
tokio-util = { workspace = true, features = ["rt", "compat"] }
Expand Down
Loading

0 comments on commit 997f2d9

Please sign in to comment.