pub fn refresh(crate_dir: &Path) -> Result<Refreshed>
Regenerates the binding layer (lib.rs, index.cjs, js.rs) from the signatures in port.rs, and adds the dependencies they need to Cargo.toml. Never touches port.rs.
lib.rs
index.cjs
js.rs
port.rs