mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
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.
This commit is contained in:
parent
0537d8255d
commit
4e1fd69760
2 changed files with 3 additions and 0 deletions
|
@ -88,6 +88,7 @@ pub use crate::resources::Resource;
|
||||||
pub use crate::resources::ResourceId;
|
pub use crate::resources::ResourceId;
|
||||||
pub use crate::resources::ResourceTable;
|
pub use crate::resources::ResourceTable;
|
||||||
pub use crate::runtime::CompiledWasmModuleStore;
|
pub use crate::runtime::CompiledWasmModuleStore;
|
||||||
|
pub use crate::runtime::CrossIsolateStore;
|
||||||
pub use crate::runtime::GetErrorClassFn;
|
pub use crate::runtime::GetErrorClassFn;
|
||||||
pub use crate::runtime::JsErrorCreateFn;
|
pub use crate::runtime::JsErrorCreateFn;
|
||||||
pub use crate::runtime::JsRuntime;
|
pub use crate::runtime::JsRuntime;
|
||||||
|
@ -96,6 +97,7 @@ pub use crate::runtime::SharedArrayBufferStore;
|
||||||
pub use crate::runtime::Snapshot;
|
pub use crate::runtime::Snapshot;
|
||||||
// pub use crate::runtime_modules::include_js_files!;
|
// pub use crate::runtime_modules::include_js_files!;
|
||||||
pub use crate::extensions::Extension;
|
pub use crate::extensions::Extension;
|
||||||
|
pub use crate::extensions::ExtensionBuilder;
|
||||||
pub use crate::extensions::OpMiddlewareFn;
|
pub use crate::extensions::OpMiddlewareFn;
|
||||||
pub use crate::extensions::OpPair;
|
pub use crate::extensions::OpPair;
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
mod in_memory_broadcast_channel;
|
mod in_memory_broadcast_channel;
|
||||||
|
|
||||||
pub use in_memory_broadcast_channel::InMemoryBroadcastChannel;
|
pub use in_memory_broadcast_channel::InMemoryBroadcastChannel;
|
||||||
|
pub use in_memory_broadcast_channel::InMemoryBroadcastChannelResource;
|
||||||
|
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
use deno_core::error::AnyError;
|
use deno_core::error::AnyError;
|
||||||
|
|
Loading…
Reference in a new issue