Mercurial > hg
annotate rust/rhg/Cargo.toml @ 45050:18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Clap has been choosen for argument parsing for the following reasons:
- it's a wildly used and maintained crate
- it can deal with OS encoding making it suitable for any encoding
- it supports nonambiguous prefix matching as already available in hg
- it will soon allow for structopts-style declarative pattern instead of the
currently used builder pattern
Differential Revision: https://phab.mercurial-scm.org/D8613
author | Antoine Cezar <antoine.cezar@octobus.net> |
---|---|
date | Tue, 07 Jul 2020 14:05:15 +0530 |
parents | 513b3ef277a3 |
children | b1cea0dc9db0 |
rev | line source |
---|---|
44981 | 1 [package] |
2 name = "rhg" | |
3 version = "0.1.0" | |
4 authors = ["Antoine Cezar <antoine.cezar@octobus.net>"] | |
5 edition = "2018" | |
6 | |
7 [dependencies] | |
45049
513b3ef277a3
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`
Antoine Cezar <antoine.cezar@octobus.net>
parents:
44981
diff
changeset
|
8 hg-core = { path = "../hg-core"} |
45050
18f8d3b31baa
rhg: add a limited `rhg root` subcommand
Antoine Cezar <antoine.cezar@octobus.net>
parents:
45049
diff
changeset
|
9 clap = "2.33.1" |
44981 | 10 |