File tree Expand file tree Collapse file tree
materialized_artifact_build/src
materialized_artifact/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,9 +42,6 @@ pub struct Artifact {
4242 hash : & ' static str ,
4343}
4444
45- /// Construct an [`Artifact`] from the env vars published by a build script
46- /// via `materialized_artifact_build::register`. Must match the `ENV_PREFIX`
47- /// constant in `materialized_artifact_build`.
4845#[ macro_export]
4946macro_rules! artifact {
5047 ( $name: literal) => {
Original file line number Diff line number Diff line change 11use std:: { fs, path:: Path } ;
22
3+ /// Namespace prefix for the env vars set by [`register`] and consumed by
4+ /// `materialized_artifact`'s `artifact!` macro. Exported so both crates agree
5+ /// on the same prefix.
36pub const ENV_PREFIX : & str = "MATERIALIZED_ARTIFACT_" ;
47
58/// Publish an artifact at `path` so `materialized_artifact`'s `artifact!($name)`
You can’t perform that action at this time.
0 commit comments