From fcad4378801d6c69137bf4e1f3e7a866ed817e2e Mon Sep 17 00:00:00 2001 From: Paul Herzog Date: Mon, 13 May 2024 13:11:09 -0400 Subject: [PATCH] Use SDK version as reported by cargo at build time, specify GNU 'ld' for build tools --- .gitignore | 2 ++ README.md | 3 ++- lib/src/internal/mod.rs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2f7896d..3212b7c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ target/ +.envrc +.direnv/ diff --git a/README.md b/README.md index 9219c61..56b0325 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,8 @@ For general usage guidance see the [Antithesis Rust SDK Documentation](http://an ### Notes -Please use llvm's link/loader from clang version 14 or greater. +GNU Binutils `ld` works reliably when building/running rust applications that use the Antithesis SDK. + To disable assertions use this feature flag for cargo builds: diff --git a/lib/src/internal/mod.rs b/lib/src/internal/mod.rs index ef76b9a..80e2e54 100644 --- a/lib/src/internal/mod.rs +++ b/lib/src/internal/mod.rs @@ -32,7 +32,7 @@ struct AntithesisSDKInfo { const PROTOCOL_VERSION: &str = "1.0.0"; // Tracks SDK releases -const SDK_VERSION: &str = "0.1.2"; +const SDK_VERSION: &str = env!("CARGO_PKG_VERSION"); pub const LOCAL_OUTPUT: &str = "ANTITHESIS_SDK_LOCAL_OUTPUT";