pub fn rust_workspace(root: &Path, members: &[&str]) -> Result<()>Expand description
Convenience: build a multi-crate Rust workspace under root.
Creates a top-level Cargo.toml with [workspace] and a member
crate per name in members. Each member gets its own
Cargo.toml and src/lib.rs.
ยงExample
use dev_fixtures::tree::rust_workspace;
let dir = tempfile::tempdir().unwrap();
rust_workspace(dir.path(), &["a", "b"]).unwrap();
assert!(dir.path().join("a/Cargo.toml").exists());
assert!(dir.path().join("b/Cargo.toml").exists());