##// END OF EJS Templates
rhg: use `Command::exec` instead of `Command::status`...
rhg: use `Command::exec` instead of `Command::status` `rhg` is supposed to be a transparent executable, using a subprocess defeats that purpose. See inline comments for more details. This also introduces the `which` crate to check if the fallback executable actually exists to help debugging (plain `execve` doesn't give much information). The error code 253 is used to signify that the fallback is not found, but may mean in the future that it is otherwise invalid if we start being more specific. Differential Revision: https://phab.mercurial-scm.org/D12578

File last commit:

r45238:9fc9526e default
r50043:006688e3 stable
Show More
Cargo.toml
22 lines | 474 B | text/plain | TOMLLexer
Yuya Nishihara
rust-chg: add project skeleton...
r40003 [package]
name = "chg"
version = "0.1.0"
authors = ["Yuya Nishihara <yuya@tcha.org>"]
description = "Client for Mercurial command server with cHg extension"
license = "GPL-2.0+"
Yuya Nishihara
rust-chg: upgrade to 2018 edition and remove useless extern crates...
r45179 edition = "2018"
Yuya Nishihara
rust-chg: add project skeleton...
r40003
[dependencies]
Yuya Nishihara
rust-chg: upgrade to futures-0.3 based libraries...
r45231 async-trait = "0.1"
bytes = "0.5"
futures = "0.3"
Yuya Nishihara
rust-chg: add project skeleton...
r40003 libc = "0.2"
Yuya Nishihara
rust-chg: depend on log and tokio_timer...
r40323 log = { version = "0.4", features = ["std"] }
Yuya Nishihara
rust-chg: upgrade to futures-0.3 based libraries...
r45231 tokio-hglib = "0.3"
[dependencies.tokio]
version = "0.2"
features = ["rt-core", "io-util", "time", "process", "macros"]
Yuya Nishihara
rust-chg: add project skeleton...
r40003
[build-dependencies]
cc = "1.0"