pub fn build(
p: &Profile,
env: &Env,
lang: Lang,
source: &str,
log: &mut dyn FnMut(&str),
) -> Result<Built>Available on crate feature
native-plugins only.Expand description
Build (or find in the cache) the plugin of a source. Cached libraries are content
addressed and replaced by rename, never rewritten, so a loaded one stays valid. A
plugin source is copied in under its trust hash. log gets cargo’s output lines.