Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: helium/proto
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e518827b7ab606d06cc9d94fb801cdb680342222
Choose a base ref
..
head repository: helium/proto
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6d12141fc9de9740901ab679a06b38814dd231c9
Choose a head ref
Showing with 0 additions and 10 deletions.
  1. +0 −10 build.rs
10 changes: 0 additions & 10 deletions build.rs
Original file line number Diff line number Diff line change
@@ -2,18 +2,9 @@ use std::io::Result;

#[cfg(feature = "services")]
fn main() -> Result<()> {
let format = match std::env::var("PROFILE") {
Ok(profile) => match profile.as_str() {
"release" => (false),
_ => (true),
},
Err(_) => true,
};

tonic_build::configure()
.build_server(false)
.type_attribute(".", "#[derive(serde_derive::Serialize)]")
.format(format)
.compile(
&[
"src/blockchain_txn.proto",
@@ -27,7 +18,6 @@ fn main() -> Result<()> {
tonic_build::configure()
.build_server(true)
.type_attribute(".", "#[derive(serde_derive::Serialize)]")
.format(format)
.compile(&["src/service/local.proto"], &["src"])?;
Ok(())
}