Skip to main content

Module install

Module install 

Source
Expand description

rpi install — install a prebuilt or explicitly built Rust cdylib extension.

Cargo’s cargo install command is intended for binaries and does not copy dynamic-library targets. rpi extensions are cdylibs loaded by rpi-extensions. The default async path uses the prebuilt distribution protocol; the explicit source backend 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.
run_async
Default to the versioned prebuilt distribution protocol. Cargo builds are explicit (–build or –path) and run off the async worker.
uninstall
Remove a Rust-native extension installed by rpi install.