cicero_path 0.4.0

Access paths relevant for CI code.
Documentation
#![doc = include_str!("../README.md")]

pub use cicero_path_core::target_dir;
pub use repo_path::*;

use std::path::PathBuf;


/// Root of your Cargo workspace. This is the directory where
/// your `Cargo.lock` file and `target/` folder is placed.
///
/// This is equivalent to `repo_path!()` in most projects.
/// The two differ, if your Rust code lives in a subfolder of a larger repository.
pub fn workspace_dir() -> PathBuf {
    cicero_path_core::USER_WORKSPACE_DIR.to_path_buf()
}

/// `Cargo.toml` file at the root of your workspace.
pub fn workspace_cargo_toml() -> PathBuf {
    cicero_path_core::USER_WORKSPACE_CARGO_TOML.to_path_buf()
}