mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
83c54b48f8
Summary: Move `ScubaMiddleware` out of the LFS server and into `gotham_ext`. This change required splitting up the `ScubaKey` enum to separate generally useful column names (e.g., HTTP columns that would be applicable to any HTTP service) from LFS-specific columns. `ScubaMiddlwareState` has been modified to accept any type that implements `Into<String>` as a key, and the `ScubaKey` enum has been split up into `HttpScubaKey` (in `gotham_ext`) and `LfsScubaKey` (in `lfs_server`). The middleware now takes a type parameter to specify a "handler" (implementing the new `ScubaHandler` trait) which allows the application to add application-specific Scuba columns in addition to the default columns. The application-specific columns will be added immediately prior to the sample being logged. Reviewed By: krallin Differential Revision: D23458748 fbshipit-source-id: 3e99f3e0b5d3475a4f5ac9eaefade2eeff12c2fa
35 lines
1.1 KiB
TOML
35 lines
1.1 KiB
TOML
[package]
|
|
name = "gotham_ext"
|
|
edition = "2018"
|
|
version = "0.1.0"
|
|
authors = ['Facebook']
|
|
license = "GPLv2+"
|
|
include = ["src/**/*.rs"]
|
|
|
|
[dependencies]
|
|
permission_checker = { path = "../permission_checker" }
|
|
cached_config = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
scuba = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
time_ext = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
anyhow = "1.0"
|
|
async-trait = "0.1.29"
|
|
bytes = { version = "0.5", features = ["serde"] }
|
|
dns-lookup = "1.0"
|
|
failure = "0.1"
|
|
futures = { version = "0.3.5", features = ["async-await", "compat"] }
|
|
gotham = { version = "=0.5.0-dev", default-features = false }
|
|
gotham_derive = "=0.5.0-dev"
|
|
hex = "0.4"
|
|
http = "0.2"
|
|
hyper = "0.13"
|
|
itertools = "0.8"
|
|
lazy_static = "1.0"
|
|
mime = "0.3.14"
|
|
openssl = "0.10"
|
|
percent-encoding = "2.1"
|
|
serde = { version = "1.0", features = ["derive", "rc"] }
|
|
serde_derive = "1.0"
|
|
serde_json = "1.0"
|
|
slog = { version = "2.5", features = ["max_level_debug"] }
|
|
tokio = { version = "=0.2.13", features = ["full"] }
|