summaryrefslogtreecommitdiff
path: root/core/lib.rs
diff options
context:
space:
mode:
authorAndreu Botella <abb@randomunok.com>2021-12-30 02:05:26 +0100
committerGitHub <noreply@github.com>2021-12-30 02:05:26 +0100
commit0ead12d673ecc8c19bdf77043550b80b8eb81475 (patch)
treeb015dd80d596766c8e3e1e9f338ac6de10e49cd4 /core/lib.rs
parent167982be9e7af35e6c12ef6c40c002200bf5e0c0 (diff)
fix(doc): Make private types which show up in the rustdocs public (#13230)
`CrossIsolateStore`, `ExtensionBuilder` and `InMemoryChannelResource` are private types which are referred to by other public APIs, and so don't show up as links in the rustdoc. This is especially confusing for `ExtensionBuilder`, since there is nothing in the docs that explains how to build an extension. Exposing these three types doesn't add any new capabilities: `ExtensionBuilder` can be created from `Extension::builder()`, `SharedArrayBufferStore` and `CompiledWasmModuleStore` already enable doing anything that `CrossIsolateStore` can do by itself, and `InMemoryChannelResource` isn't constructable.
Diffstat (limited to 'core/lib.rs')
-rw-r--r--core/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/lib.rs b/core/lib.rs
index 606304ad5..acaa273e2 100644
--- a/core/lib.rs
+++ b/core/lib.rs
@@ -88,6 +88,7 @@ pub use crate::resources::Resource;
pub use crate::resources::ResourceId;
pub use crate::resources::ResourceTable;
pub use crate::runtime::CompiledWasmModuleStore;
+pub use crate::runtime::CrossIsolateStore;
pub use crate::runtime::GetErrorClassFn;
pub use crate::runtime::JsErrorCreateFn;
pub use crate::runtime::JsRuntime;
@@ -96,6 +97,7 @@ pub use crate::runtime::SharedArrayBufferStore;
pub use crate::runtime::Snapshot;
// pub use crate::runtime_modules::include_js_files!;
pub use crate::extensions::Extension;
+pub use crate::extensions::ExtensionBuilder;
pub use crate::extensions::OpMiddlewareFn;
pub use crate::extensions::OpPair;