pub fn generate(p: &Profile, lang: Lang, source: &str, dir: &Path) -> Result<()>
Write the crate of a source into dir (a build directory under the code root).
dir