Skip to main content

workspace_root

Function workspace_root 

Source
fn workspace_root() -> Result<PathBuf, String>
Expand description

The directory the task’s tools work on, which is the workspace root.

Asked of cargo rather than read from the working directory, so that a task started from a crate’s own directory covers the whole workspace: these tools read their configuration from the directory they are pointed at, and typos.toml and tombi.toml live at the root.