Skip to content

Commit

Permalink
Update offchain/Cargo.toml
Browse files Browse the repository at this point in the history
Co-authored-by: Gabriel de Quadros Ligneul <[email protected]>
  • Loading branch information
fmoura and gligneul committed Sep 20, 2023
1 parent fbfd4e0 commit 63ba667
Show file tree
Hide file tree
Showing 22 changed files with 11 additions and 29 deletions.
1 change: 0 additions & 1 deletion offchain/Cargo.lock

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

2 changes: 0 additions & 2 deletions offchain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ urlencoding = "2.1"
users = "0.11"
uuid = "1.4"

[profile.release]
strip = true # Automatically strip symbols from the binary.
[workspace.build-dependencies]
built = "0.6"

2 changes: 1 addition & 1 deletion offchain/advance-runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ testcontainers.workspace = true
tracing-subscriber = { workspace = true, features = ["env-filter"] }

[build-dependencies]
built = {workspace = true, features = ["git2"]}
built = { workspace = true, features = ["git2"] }
1 change: 0 additions & 1 deletion offchain/advance-runner/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

build_info::log_build_info(
built_info::PKG_VERSION,
built_info::BUILT_TIME_UTC,
built_info::GIT_HEAD_REF,
built_info::GIT_COMMIT_HASH,
);
Expand Down
4 changes: 2 additions & 2 deletions offchain/authority-claimer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "authority-claimer"
edition.workspace = true
license.workspace = true
version.workspace = true
build = "src/built/build.rs"
build = "../build-info/src/build.rs"


[[bin]]
Expand All @@ -29,4 +29,4 @@ tracing.workspace = true


[build-dependencies]
built = {workspace = true, features = ["chrono","git2"]}
built = { workspace = true, features = ["git2"] }
5 changes: 0 additions & 5 deletions offchain/authority-claimer/src/built/build.rs

This file was deleted.

1 change: 0 additions & 1 deletion offchain/authority-claimer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ async fn main() -> Result<(), Box<dyn Error>> {

build_info::log_build_info(
built_info::PKG_VERSION,
built_info::BUILT_TIME_UTC,
built_info::GIT_HEAD_REF,
built_info::GIT_COMMIT_HASH,
);
Expand Down
2 changes: 1 addition & 1 deletion offchain/build-info/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ license.workspace = true
version.workspace = true

[dependencies]
built = {workspace = true, features = ["chrono","git2"]}
built = {workspace = true, features = ["git2"]}
tracing.workspace = true
tracing-subscriber = { workspace = true, features = ["env-filter"] }
2 changes: 0 additions & 2 deletions offchain/build-info/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ use tracing::info;

pub fn log_build_info(
version: &str,
build_time: &str,
git_head_ref: Option<&str>,
git_commit_hash: Option<&str>,
) {
info!("Version: {}", version);
info!("Build time: {}", build_time);
match git_head_ref {
Some(v) => info!("Git ref: {}", v),
None => (),
Expand Down
3 changes: 1 addition & 2 deletions offchain/dispatcher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ types = { path = "../types" }
async-trait.workspace = true
axum.workspace = true
backoff = { workspace = true, features = ["tokio"] }
built = { workspace = true, features = ["chrono","git2"] }
clap = { workspace = true, features = ["derive", "env"] }
eth-state-client-lib.workspace = true
eth-state-fold-types = { workspace = true, features = ["ethers"] }
Expand Down Expand Up @@ -51,4 +50,4 @@ testcontainers.workspace = true
tracing-test = { workspace = true, features = ["no-env-filter"] }

[build-dependencies]
built = {workspace = true, features = ["chrono","git2"]}
built = { workspace = true, features = ["git2"] }
1 change: 0 additions & 1 deletion offchain/dispatcher/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

build_info::log_build_info(
built_info::PKG_VERSION,
built_info::BUILT_TIME_UTC,
built_info::GIT_HEAD_REF,
built_info::GIT_COMMIT_HASH,
);
Expand Down
3 changes: 1 addition & 2 deletions offchain/graphql-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ rollups-data = { path = "../data" }

actix-cors.workspace = true
actix-web.workspace = true
built = { workspace = true, features = ["chrono","git2"] }
clap = { workspace = true, features = ["derive", "env"] }
hex.workspace = true
juniper.workspace = true
Expand All @@ -39,4 +38,4 @@ serial_test.workspace = true
testcontainers.workspace = true

[build-dependencies]
built = {workspace = true, features = ["chrono","git2"]}
built = { workspace = true, features = ["git2"] }
1 change: 0 additions & 1 deletion offchain/graphql-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

build_info::log_build_info(
built_info::PKG_VERSION,
built_info::BUILT_TIME_UTC,
built_info::GIT_HEAD_REF,
built_info::GIT_COMMIT_HASH,
);
Expand Down
2 changes: 1 addition & 1 deletion offchain/host-runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ serial_test.workspace = true
tracing-test.workspace = true

[build-dependencies]
built = {workspace = true, features = ["chrono","git2"]}
built = { workspace = true, features = ["git2"] }
1 change: 0 additions & 1 deletion offchain/host-runner/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ async fn main() {

build_info::log_build_info(
built_info::PKG_VERSION,
built_info::BUILT_TIME_UTC,
built_info::GIT_HEAD_REF,
built_info::GIT_COMMIT_HASH,
);
Expand Down
1 change: 0 additions & 1 deletion offchain/indexer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

build_info::log_build_info(
built_info::PKG_VERSION,
built_info::BUILT_TIME_UTC,
built_info::GIT_HEAD_REF,
built_info::GIT_COMMIT_HASH,
);
Expand Down
1 change: 0 additions & 1 deletion offchain/inspect-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

build_info::log_build_info(
built_info::PKG_VERSION,
built_info::BUILT_TIME_UTC,
built_info::GIT_HEAD_REF,
built_info::GIT_COMMIT_HASH,
);
Expand Down
3 changes: 1 addition & 2 deletions offchain/state-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ build-info = { path = "../build-info" }
log = { path = "../log" }
types = { path = "../types" }

built = {workspace = true, features = ["chrono","git2"]}
clap = { workspace = true, features = ["derive", "env"] }
eth-block-history.workspace = true
eth-state-fold-types.workspace = true
Expand All @@ -28,4 +27,4 @@ tracing.workspace = true
url.workspace = true

[build-dependencies]
built = {workspace = true, features = ["chrono","git2"]}
built = {workspace = true, features = ["git2"]}
1 change: 0 additions & 1 deletion offchain/state-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

build_info::log_build_info(
built_info::PKG_VERSION,
built_info::BUILT_TIME_UTC,
built_info::GIT_HEAD_REF,
built_info::GIT_COMMIT_HASH,
);
Expand Down
1 change: 1 addition & 0 deletions onchain/rollups-arbitration/lib/forge-std
Submodule forge-std added at d26946
1 change: 1 addition & 0 deletions onchain/rollups-arbitration/lib/solidity-util
Submodule solidity-util added at 63f02d
1 change: 1 addition & 0 deletions onchain/rollups/lib/forge-std
Submodule forge-std added at fc560f

0 comments on commit 63ba667

Please sign in to comment.