From 3d2214be5df0fe7cf3130a32b5aa8641559974b1 Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Mon, 26 Feb 2024 08:27:52 -0500 Subject: [PATCH] Make use of protobuf-src optional in VegaFusion server --- vegafusion-server/Cargo.toml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vegafusion-server/Cargo.toml b/vegafusion-server/Cargo.toml index e42fe666..3af027a7 100644 --- a/vegafusion-server/Cargo.toml +++ b/vegafusion-server/Cargo.toml @@ -10,7 +10,7 @@ edition = "2021" description = "VegaFusion Server" [features] -protobuf-src = [ "vegafusion-core/protobuf-src",] +protobuf-src = [ "vegafusion-core/protobuf-src", "dep:protobuf-src"] [dependencies] futures-util = "0.3.21" @@ -25,6 +25,7 @@ predicates = "3.0.2" [build-dependencies] tonic-build = "0.10.2" prost-build = "0.12.1" +protobuf-src = { version="1.1.0", optional = true } [dependencies.prost] workspace = true @@ -61,6 +62,3 @@ features = [ "tls",] [dependencies.clap] version = "4.2.1" features = [ "derive",] - -[target."cfg(target_family = \"unix\")".build-dependencies] -protobuf-src = "1.1.0"