#origin #root #project #git

project-origins

Resolve project origins and kinds from a path

8 stable releases

1.4.1 Feb 9, 2025
1.4.0 Apr 28, 2024
1.3.0 Jan 1, 2024
1.2.1 Nov 26, 2023
1.0.0 Jun 16, 2022

#1687 in Filesystem

Download history 8832/week @ 2025-01-14 9164/week @ 2025-01-21 11546/week @ 2025-01-28 10782/week @ 2025-02-04 11850/week @ 2025-02-11 10491/week @ 2025-02-18 9912/week @ 2025-02-25 8606/week @ 2025-03-04 9785/week @ 2025-03-11 11750/week @ 2025-03-18 15672/week @ 2025-03-25 14414/week @ 2025-04-01 13690/week @ 2025-04-08 15627/week @ 2025-04-15 17467/week @ 2025-04-22 17027/week @ 2025-04-29

66,066 downloads per month
Used in 36 crates (7 directly)

Apache-2.0

16KB
241 lines

Resolve project origins and kinds from a path.

This crate originated in Watchexec: it is used to resolve where a project's origin (or root) is, starting either at that origin, or within a subdirectory of it.

This crate also provides the kind of project it is, and defines two categories within this: version control systems, and software development environments.

As it is possible to find several project origins, of different or similar kinds, from a given directory and walking up, origins returns a set, rather than a single path. Determining which of these is the "one true origin" (if necessary) is left to the caller.


Crates.io page API Docs Crate license: Apache 2.0 CI status

Project origins

Resolve project origins and kinds from a path.

Dependencies

~2.6–8.5MB
~61K SLoC