Something went wrong. Try again.
a few hacks on top of zed
Something went wrong. Try again.
12345678910use 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")}