Skip to main content

install

Function install 

Source
pub async fn install(
    preserve_mtime: bool,
    network_mode: NetworkMode,
) -> Result<()>
Expand description

Installs dependencies for the current project

Behavior depends on the manifest type:

  • Package: Installs dependencies listed in the [dependencies] section
  • Workspace: Installs dependencies for all workspace members

ยงArguments

  • preserve_mtime - If true, local dependencies preserve their modification time
  • network_mode - Controls whether network requests are allowed