diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-08-28 22:30:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-28 15:30:46 -0600 |
commit | bd034e360d036d9634d8526a6eea73979b3ad9e1 (patch) | |
tree | f10130a89208b13bfee039ea661623d81a120e5d /runtime/lib.rs | |
parent | 7adaf613bfbeab0f6aed92294e3eea912990d819 (diff) |
refactor(runtime): factor out code between build.rs and worker.rs (#20299)
Adds `runtime/shared.rs` which is imported by both `build.rs` and the
rest of the crate, containing utilities used by both.
Renames the `snapshot_from_snapshot` feature to
`exclude_runtime_main_js` since that's what it does and it's relevant
outside of snapshotting when `__runtime_js_sources` is specified.
Diffstat (limited to 'runtime/lib.rs')
-rw-r--r-- | runtime/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/lib.rs b/runtime/lib.rs index 248ef94de..bc49a2fef 100644 --- a/runtime/lib.rs +++ b/runtime/lib.rs @@ -34,6 +34,8 @@ pub mod web_worker; pub mod worker; mod worker_bootstrap; -pub use worker::runtime; pub use worker_bootstrap::BootstrapOptions; pub use worker_bootstrap::WorkerLogLevel; + +mod shared; +pub use shared::runtime; |