Skip to main content

Crate nautilus_plugin

Crate nautilus_plugin 

Source
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_init entry 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.