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

Commit 8accc8d

Browse files
committed
Include version and build information in binary and output to aid in debugging
Change-Id: I394069317390d22ee92523cada842b00487c7c9e
1 parent 0c2cdc2 commit 8accc8d

File tree

5 files changed

+226
-4
lines changed

5 files changed

+226
-4
lines changed

ibis/Cargo.lock

+200
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ibis/Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition = "2021"
55
description = "Ibis - a knowledge engine for type checking asynchronously communicating modules"
66
repository = "https://github.com/project-oak/arcsjs-provable"
77
license = "See LICENSE"
8+
build = "build.rs"
89

910
[lib]
1011
name = "ibis"
@@ -20,6 +21,7 @@ dot = [] # Support the generation of dot graphs (for debugging)
2021
wasm = [ "wasm-bindgen", "console_error_panic_hook" ] # Support wasm-bindgen API
2122

2223
[dependencies]
24+
shadow-rs = { version = "0.9", default-features = false }
2325
nom = "7.1.0"
2426
paste = "1.0.6"
2527
crepe = "0.1.6"
@@ -34,6 +36,9 @@ console_error_panic_hook = { version = "0.1.7", optional = true }
3436
pretty_assertions = "1.0.0"
3537
criterion = { version = "0.3", features = ["html_reports"] }
3638

39+
[build-dependencies]
40+
shadow-rs = "0.9"
41+
3742
[profile.release]
3843
opt-level = "z"
3944
lto = "fat"

ibis/build.rs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() -> shadow_rs::SdResult<()> {
2+
shadow_rs::new()
3+
}

ibis/src/bin/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use ibis::IbisError;
1010
use std::io::Read;
1111

1212
fn main() -> Result<(), IbisError> {
13+
ibis::print_info();
1314
let mut data = String::new();
1415
std::io::stdin()
1516
.read_to_string(&mut data)

0 commit comments

Comments
 (0)