rust/chg/Cargo.toml
author Yuya Nishihara <yuya@tcha.org>
Fri, 10 Apr 2020 21:54:03 +0900
changeset 44737 e9e44e61042b
parent 44736 8685add122ff
child 44754 9fc9526e283a
permissions -rw-r--r--
rust-chg: upgrade to futures-0.3 based libraries And do some trivial fixes: - BytesMut::put_u32_be() -> put_u32() - tokio_process -> tokio::process, CommandExt -> Command, spawn_async() -> spawn(), stdin() -> stdin - tokio_timer::sleep() -> tokio::time::delay_for() Differential Revision: https://phab.mercurial-scm.org/D8441

[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+"
edition = "2018"

# TODO: enable auto discovery
autobins = false

[dependencies]
async-trait = "0.1"
bytes = "0.5"
futures = "0.3"
libc = "0.2"
log = { version = "0.4", features = ["std"] }
tokio-hglib = "0.3"

[dependencies.tokio]
version = "0.2"
features = ["rt-core", "io-util", "time", "process", "macros"]

[build-dependencies]
cc = "1.0"