Skip to main content

cmd_install

Function cmd_install 

Source
pub fn cmd_install(
    plugins_dir: &Path,
    name: &str,
    version: Option<&str>,
) -> Result<()>
Expand description

Install a plugin from crates.io.

  1. Resolves the crate name from the short name.
  2. Creates a temporary directory and runs cargo install with --target-dir to build the cdylib.
  3. Copies the shared library to ~/.room/plugins/.
  4. Writes .meta.json alongside it.