pub async fn install(source: &str, pin: Option<&str>) -> Result<PathBuf>Expand description
Install a plugin from a file path or HTTPS URL.
For HTTPS URLs, --pin <sha256> is required. The pin must equal
the SHA-256 of the downloaded bytes (hex, lowercase).
On success, the plugin is written to
<user-plugins-dir>/<manifest-name>.wasm.
ยงErrors
Returns an error if the source cannot be fetched, the pin does not verify, the plugin manifest fails validation, or the install dir cannot be written to.