Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit a439e42

Browse files
authored
fix build data in the api (#560)
* fix build data in the Api * Update lock files
1 parent e2d74da commit a439e42

File tree

7 files changed

+50
-50
lines changed

7 files changed

+50
-50
lines changed

Cargo.lock

Lines changed: 42 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace.package]
2-
version = "0.5.5-dev"
2+
version = "0.5.6-dev"
33
authors = ["Webb Developers <drew@webb.tools>"]
44
license = "Apache-2.0"
55
documentation = "https://docs.rs/webb-relayer"

crates/relayer-handlers/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ axum = { workspace = true }
3434
axum-client-ip = "0.4.0"
3535
tokio-stream = { version = "^0.1" }
3636

37+
[build-dependencies]
38+
build-data = "0.1.4"

crates/relayer-handlers/src/routes/info.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ pub async fn handle_relayer_info(
8080

8181
// Build info
8282
let build_info = BuildInfo {
83-
version: std::env::var("CARGO_PKG_VERSION").unwrap_or_default(),
84-
commit: std::env::var("GIT_COMMIT").unwrap_or_default(),
85-
timestamp: std::env::var("SOURCE_TIMESTAMP").unwrap_or_default(),
83+
version: env!("CARGO_PKG_VERSION").into(),
84+
commit: env!("GIT_COMMIT").into(),
85+
timestamp: env!("SOURCE_TIMESTAMP").into(),
8686
};
8787
let relayer_config = RelayerConfig {
8888
config,

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
pkgs.clang
3232
# Mold Linker for faster builds (only on Linux)
3333
(lib.optionals pkgs.stdenv.isLinux pkgs.mold)
34+
(lib.optionals pkgs.stdenv.isDarwin pkgs.darwin.apple_sdk.frameworks.Security)
3435
];
3536
buildInputs = [
3637
# Used for DVC
@@ -53,7 +54,7 @@
5354
# Environment variables
5455
RUST_SRC_PATH = "${toolchain}/lib/rustlib/src/rust/library";
5556
# Needed for running DKG/Tangle locally
56-
LD_LIBRARY_PATH = "${pkgs.gmp}/lib";
57+
LD_LIBRARY_PATH = lib.makeLibraryPath [ pkgs.gmp ];
5758
};
5859
});
5960
}

services/webb-relayer/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ documentation = { workspace = true }
1010
homepage = { workspace = true }
1111
repository = { workspace = true }
1212

13-
[build-dependencies]
14-
build-data = "0.1.4"
15-
1613
[lib]
1714
doctest = false
1815

0 commit comments

Comments
 (0)