pub fn cmd_install(
plugins_dir: &Path,
name: &str,
version: Option<&str>,
) -> Result<()>Expand description
Install a plugin from crates.io.
- Resolves the crate name from the short name.
- Creates a temporary directory and runs
cargo installwith--target-dirto build the cdylib. - Copies the shared library to
~/.room/plugins/. - Writes
.meta.jsonalongside it.