Expand description
Plug-in artifact identity and boundary primitives for NautilusTrader.
This crate provides the public contract that lets an independently compiled
Rust cdylib identify itself to a Nautilus host. It defines versioned build
metadata, allocator-safe boundary values, opaque host tokens, and the
nautilus_plugin! macro for exporting the standard entry symbol and
manifest.
Re-exports§
pub use boundary::BorrowedStr;pub use boundary::OwnedBytes;pub use boundary::PluginError;pub use boundary::PluginErrorCode;pub use boundary::PluginResult;pub use boundary::Slice;pub use host::HostContext;pub use host::HostVTable;pub use manifest::PluginBuildId;pub use manifest::PluginInitFn;pub use manifest::PluginManifest;
Modules§
- boundary
- Primitive
#[repr(C)]types used at the plug-in boundary. - host
- Opaque host-side ABI tokens.
- manifest
- Static plug-in metadata returned from
nautilus_plugin_init. - panic
- Catch-unwind wrapper used by every plug-in
extern "C"thunk. - prelude
- Re-exports that plug-in crates typically want in scope.
Macros§
- nautilus_
plugin - Defines a plug-in’s static metadata manifest and emits the
nautilus_plugin_initentry symbol.
Constants§
- NAUTILUS_
PLUGIN_ ABI_ VERSION - ABI version of the public plug-in metadata contract.
- NAUTILUS_
PLUGIN_ INIT_ SYMBOL - Name of the single
extern "C"entry symbol every plug-in cdylib exports. - PLUGIN_
BUILD_ ID_ VERSION - Schema version for
manifest::PluginBuildId.