Skip to content

Commit

Permalink
fix build data in the api (#560)
Browse files Browse the repository at this point in the history
* fix build data in the Api

* Update lock files
  • Loading branch information
shekohex authored Jul 12, 2023
1 parent e2d74da commit a439e42
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 50 deletions.
84 changes: 42 additions & 42 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "0.5.5-dev"
version = "0.5.6-dev"
authors = ["Webb Developers <[email protected]>"]
license = "Apache-2.0"
documentation = "https://docs.rs/webb-relayer"
Expand Down
2 changes: 2 additions & 0 deletions crates/relayer-handlers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ axum = { workspace = true }
axum-client-ip = "0.4.0"
tokio-stream = { version = "^0.1" }

[build-dependencies]
build-data = "0.1.4"
File renamed without changes.
6 changes: 3 additions & 3 deletions crates/relayer-handlers/src/routes/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ pub async fn handle_relayer_info(

// Build info
let build_info = BuildInfo {
version: std::env::var("CARGO_PKG_VERSION").unwrap_or_default(),
commit: std::env::var("GIT_COMMIT").unwrap_or_default(),
timestamp: std::env::var("SOURCE_TIMESTAMP").unwrap_or_default(),
version: env!("CARGO_PKG_VERSION").into(),
commit: env!("GIT_COMMIT").into(),
timestamp: env!("SOURCE_TIMESTAMP").into(),
};
let relayer_config = RelayerConfig {
config,
Expand Down
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
pkgs.clang
# Mold Linker for faster builds (only on Linux)
(lib.optionals pkgs.stdenv.isLinux pkgs.mold)
(lib.optionals pkgs.stdenv.isDarwin pkgs.darwin.apple_sdk.frameworks.Security)
];
buildInputs = [
# Used for DVC
Expand All @@ -53,7 +54,7 @@
# Environment variables
RUST_SRC_PATH = "${toolchain}/lib/rustlib/src/rust/library";
# Needed for running DKG/Tangle locally
LD_LIBRARY_PATH = "${pkgs.gmp}/lib";
LD_LIBRARY_PATH = lib.makeLibraryPath [ pkgs.gmp ];
};
});
}
3 changes: 0 additions & 3 deletions services/webb-relayer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ documentation = { workspace = true }
homepage = { workspace = true }
repository = { workspace = true }

[build-dependencies]
build-data = "0.1.4"

[lib]
doctest = false

Expand Down

0 comments on commit a439e42

Please sign in to comment.