From f522688210dd2437a7ef5e85847621bcd0f694d4 Mon Sep 17 00:00:00 2001 From: Oliver Gould Date: Wed, 6 Jul 2022 21:29:53 +0000 Subject: [PATCH] rust: Change feature name from `http_types` to `http-types` In preparation to add new features, this change renames the Rust crate's `http_types` feature to `http-types`. We generally prefer hyphens to underscores in crate and feature names. This change will help to keep the crate consistent as we introduce new hyphenated features. Signed-off-by: Oliver Gould --- Cargo.toml | 6 +++--- src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f7a18c7fe..8b131fb17 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,12 +14,12 @@ rust-version = "1.59" [features] default = [] arbitrary = ["quickcheck"] -destination = ["http_types", "net", "prost-types", "tonic/codegen"] -http_types = ["http", "thiserror"] +destination = ["http-types", "net", "prost-types", "tonic/codegen"] +http-types = ["http", "thiserror"] identity = ["prost-types", "tonic/codegen"] inbound = ["net", "prost-types", "tonic/codegen"] net = ["ipnet", "thiserror"] -tap = ["h2", "http_types", "net", "prost-types", "tonic/codegen"] +tap = ["h2", "http-types", "net", "prost-types", "tonic/codegen"] [package.metadata.docs.rs] rustdoc-args = ["--cfg", "docsrs"] diff --git a/src/lib.rs b/src/lib.rs index 394122e69..c04ab261f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,7 @@ #[cfg(feature = "net")] pub mod net; -#[cfg(feature = "http_types")] +#[cfg(feature = "http-types")] pub mod http_types; #[cfg(feature = "destination")]