mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-06 21:03:13 +00:00
Remove strum crate dependency; add protobuf nix dependency
This commit is contained in:
@@ -31,9 +31,6 @@ md-5 = "0.9"
|
||||
nom = "7.1"
|
||||
sha2 = "0.9"
|
||||
|
||||
strum = "0.23"
|
||||
strum_macros = "0.23"
|
||||
|
||||
futures = "0.3"
|
||||
futures-util = "0.3"
|
||||
pin-project = "1.0"
|
||||
|
||||
@@ -135,7 +135,7 @@ async fn handler_inner(garage: Arc<Garage>, req: Request<Body>) -> Result<Respon
|
||||
|
||||
Context::current()
|
||||
.span()
|
||||
.update_name::<String>(format!("S3 API {}", endpoint));
|
||||
.update_name::<String>(format!("S3 API {}", endpoint.name()));
|
||||
|
||||
// Some endpoints are processed early, before we even check for an API key
|
||||
if let Endpoint::PostObject = endpoint {
|
||||
|
||||
@@ -5,8 +5,6 @@ use std::borrow::Cow;
|
||||
use hyper::header::HeaderValue;
|
||||
use hyper::{HeaderMap, Method, Request};
|
||||
|
||||
use strum_macros::Display;
|
||||
|
||||
/// This macro is used to generate very repetitive match {} blocks in this module
|
||||
/// It is _not_ made to be used anywhere else
|
||||
macro_rules! s3_match {
|
||||
@@ -135,7 +133,7 @@ s3_match! {@func
|
||||
/// query parameters). Parameters it may receive by header are left out, however headers are
|
||||
/// considered when required to determine between one endpoint or another (for CopyObject and
|
||||
/// UploadObject, for instance).
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Display)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum Endpoint {
|
||||
AbortMultipartUpload {
|
||||
key: String,
|
||||
|
||||
Reference in New Issue
Block a user