Skip to main content

Module install

Module install 

Source
Expand description

rpi install — install a Rust cdylib extension from crates.io.

Cargo’s cargo install command is intended for binaries and does not copy dynamic-library targets. rpi extensions are cdylibs loaded by rpi-extensions, so this command creates a tiny temporary Cargo workspace, resolves the requested crate through Cargo, builds the dependency in release mode, and copies its cdylib into the same global directory scanned during normal startup.

Structs§

InstalledNativePackage
A Rust-native extension installed through rpi install.

Enums§

NativePackageRegistry
The on-disk state of the Rust-native extension registry.

Functions§

installed_native_packages
Read the registry for best-effort discovery and startup update notices.
print_help
read_native_package_registry
Read and validate the Rust-native extension registry without hiding errors.
run
Run rpi install .... This is intentionally synchronous: it is a short lived package operation and keeping Cargo’s build output attached to the user’s terminal makes failures actionable.
uninstall
Remove a Rust-native extension installed by rpi install.