Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing the last extern crate macro use old idiom #5546

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions quickwit/quickwit-proto/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

tonic_build::configure()
.enum_attribute(".", "#[serde(rename_all=\"snake_case\")]")
.type_attribute(".", "#[derive(Serialize, Deserialize, utoipa::ToSchema)]")
.type_attribute(
".",
"#[derive(serde::Serialize, serde::Deserialize, utoipa::ToSchema)]",
)
.type_attribute("PartialHit", "#[derive(Eq, Hash)]")
.type_attribute("PartialHit.sort_value", "#[derive(Copy)]")
.type_attribute("SearchRequest", "#[derive(Eq, Hash)]")
Expand Down Expand Up @@ -214,7 +217,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

let protos = find_protos("protos/third-party/opentelemetry");
tonic_build::configure()
.type_attribute(".", "#[derive(Serialize, Deserialize)]")
.type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]")
.type_attribute("StatusCode", r#"#[serde(rename_all = "snake_case")]"#)
.type_attribute(
"ExportLogsServiceResponse",
Expand Down
1 change: 1 addition & 0 deletions quickwit/quickwit-proto/src/cluster/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

use quickwit_common::rate_limited_error;
use quickwit_common::tower::MakeLoadShedError;
use serde::{Deserialize, Serialize};
use thiserror;

use crate::error::{ServiceError, ServiceErrorCode};
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading