Documentation

repo-root

Find the root directory of a project.

CLI

    cargo install repo-root

Library

  cargo add repo-root

Supported project types

  • git:.git dir
  • Docker: Dockerfile file
  • NodeJS: package.json file
  • Rust: Cargo.toml file
  • Python: pyproject.toml file
  • Nix: flake.nix file

Custom

See examples/custom_project_type.rs