mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
48544b0233
Summary: Add an `errors` module containing an `ErrorKind` implemented via `thiserror`. All errors in the server's HTTP handles been annotated with an appropriate `ErrorKind` via `anyhow::Context`. Notably, there is specialized handling of `MononokeError`s from the `mononoke_api` crate via a new `MononokeErrorExt` trait. Reviewed By: krallin Differential Revision: D22012237 fbshipit-source-id: 5f6948696e4741816636f1c6fee12069ee1a4b32
43 lines
1.5 KiB
TOML
43 lines
1.5 KiB
TOML
[package]
|
|
name = "edenapi_server"
|
|
edition = "2018"
|
|
version = "0.1.0"
|
|
authors = ['Facebook']
|
|
license = "GPLv2+"
|
|
include = ["src/**/*.rs"]
|
|
|
|
[dependencies]
|
|
blobrepo_factory = { path = "../blobrepo/factory" }
|
|
cmdlib = { path = "../cmdlib" }
|
|
context = { path = "../server/context" }
|
|
edenapi_types = { path = "../../scm/lib/edenapi/types" }
|
|
gotham_ext = { path = "../gotham_ext" }
|
|
mercurial_types = { path = "../mercurial/types" }
|
|
mononoke_api = { path = "../mononoke_api" }
|
|
mononoke_types = { path = "../mononoke_types" }
|
|
permission_checker = { path = "../permission_checker" }
|
|
types = { path = "../../scm/lib/types" }
|
|
cloned = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
fbinit = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
scuba = { 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"
|
|
async-trait = "0.1.29"
|
|
bytes = { version = "0.5", features = ["serde"] }
|
|
clap = "2.33"
|
|
futures = { version = "0.3", features = ["async-await", "compat"] }
|
|
gotham = { version = "=0.5.0-dev", default-features = false }
|
|
gotham_derive = "=0.5.0-dev"
|
|
http = "0.2"
|
|
hyper = "0.13"
|
|
mime = "0.3.14"
|
|
once_cell = "1.2"
|
|
serde = { version = "1.0", features = ["derive", "rc"] }
|
|
serde_cbor = "0.11"
|
|
serde_derive = "1.0"
|
|
serde_json = "1.0"
|
|
slog = { version = "2.5", features = ["max_level_debug"] }
|
|
thiserror = "1.0"
|
|
tokio = { version = "=0.2.13", features = ["full"] }
|
|
tokio-openssl = "0.4"
|