Skip to content

Commit

Permalink
fix: disable prost build without grpc feature
Browse files Browse the repository at this point in the history
  • Loading branch information
TroyKomodo committed Feb 2, 2024
1 parent 78bfbb2 commit dea8fee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

7 changes: 3 additions & 4 deletions utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "scuffle-utils"
version = "0.0.4"
version = "0.0.5"
edition = "2021"
authors = ["Scuffle <[email protected]>"]
description = "Scuffle Utility Library"
Expand All @@ -13,7 +13,7 @@ name = "scuffle_utils"
path = "src/lib.rs"

[features]
grpc = ["dep:tonic", "dep:async-trait", "dep:futures", "dep:http", "dep:tower", "dep:trust-dns-resolver", "dep:tracing"]
grpc = ["dep:tonic", "dep:async-trait", "dep:futures", "dep:http", "dep:tower", "dep:trust-dns-resolver", "dep:tracing", "dep:tonic-build"]
context = ["dep:tokio", "dep:tokio-util"]
prelude = ["dep:tokio", "dep:futures"]
signal = ["tokio/signal", "tokio/process"]
Expand Down Expand Up @@ -61,10 +61,9 @@ ulid = { version = "1.1", optional = true }

[dev-dependencies]
ulid = "1.1"
prost = "0.12"
tempfile = "3.8"
portpicker = "0.1"
dotenvy = "0.15"

[build-dependencies]
tonic-build = "0.10"
tonic-build = { version = "0.10", optional = true }
1 change: 1 addition & 0 deletions utils/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
fn main() {
#[cfg(feature = "grpc")]
tonic_build::compile_protos("proto/test.proto").unwrap();
}

0 comments on commit dea8fee

Please sign in to comment.