mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
4e0660a94c
Summary: This largely moves connection accepting from old style bytes, futures and tokio to updated versions, while keeping some parts at old bytes/futures in order to remain compatible with the rest of the Mononoke codebase. Division lies on `Stdio` which maintains old channels, stream and futures, while the socket handling, connection acception and wire encoding is updated. With the updated futures, we now wait for the forwarding stream to have succeeded before considering a connection fully handled. Other notable changes: - futures_ext now a mini codec Decoder instead of relying on NetstringDecoder, which has been updated to use bytes 0.5 - hgcli has been modified to use updated NetstringDecoder - netstring now requires the updated bytes 0.5 crate - the part in connection_acceptor was handling repo/security logic is now part of repo_handler (as it should have been), connection_acceptor now only handles networking and framing - tests now verify that the shutdown handler is triggered Reviewed By: krallin Differential Revision: D22526867 fbshipit-source-id: 34e43af4a0c8b84de0000f2093d7fffd3fb0e20d
21 lines
722 B
TOML
21 lines
722 B
TOML
[package]
|
|
name = "mononoke"
|
|
edition = "2018"
|
|
version = "0.1.0"
|
|
authors = ['Facebook']
|
|
license = "GPLv2+"
|
|
include = ["src/**/*.rs"]
|
|
|
|
[dependencies]
|
|
cmdlib = { path = "../cmdlib" }
|
|
monitoring = { path = "monitoring" }
|
|
repo_listener = { path = "repo_listener" }
|
|
cloned = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
fbinit = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
secure_utils = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
anyhow = "1.0"
|
|
clap = "2.33"
|
|
futures = { version = "0.3.5", features = ["async-await", "compat"] }
|
|
openssl = "0.10"
|
|
slog = { version = "2.5", features = ["max_level_debug"] }
|