Skip to main content

add

Function add 

Source
pub fn add(root: &Path, source: &str) -> Result<Loaded, String>
Expand description

Copies the extension at source — a folder, or URL@<commit> — into the project at root, and returns it as loaded.

§Errors

The source cannot be read or fetched, is not loadable (the problems named), or its name is taken.