Registry / build-tool / shadow-rs

shadow-rs

JSON →
library2.0.0rscratesunverified

A build-time information stored in your rust project, providing compile-time metadata.

# Cargo.toml [dependencies] shadow-rs = "2.0.0"
INSTALL
IMPORT
SIG · SHADOW-RS
S
shadow-rs
build-toolrustv2.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

shadow
✓ use shadow_rs;

Embeds build-time information like version and build time into the binary.

use shadow_rs::shadow; shadow!(build); fn main() { println!("Build time: {}", build::BUILD_TIME); }
Debug
Known issues
gotchaRequires a build script (build.rs) to generate the shadow module.
fix
Add a build.rs file with `shadow_rs::new()` call.
affects: >=1.0.0
Upgrade
Version history
2.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
shadow-rs — cargo add shadow-rs · libregistry