Re-re-fork (#23)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
use anyhow::{Context as _, Result};
|
||||
use cargo_metadata::{Metadata, MetadataCommand};
|
||||
|
||||
/// Returns the Cargo workspace.
|
||||
pub fn load_workspace() -> Result<Metadata> {
|
||||
MetadataCommand::new()
|
||||
.exec()
|
||||
.context("failed to load cargo metadata")
|
||||
}
|
||||
Reference in New Issue
Block a user