#[non_exhaustive]pub struct EmbedArtifacts {
pub linker_script_path: PathBuf,
pub note_bin_path: PathBuf,
pub json_path: PathBuf,
pub json: String,
pub linker_script_body: String,
}Expand description
Artifacts written by embed_package_metadata.
Returned so consumers can log, inspect, or pass paths to a later build
step (for the static-library flow, typically linker_script_path).
§Non-exhaustive
#[non_exhaustive]. Constructed by the crate, not by consumers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.linker_script_path: PathBufAbsolute path to the generated linker script (linker_script.ld).
note_bin_path: PathBufAbsolute path to the raw .note.package binary dump.
json_path: PathBufAbsolute path to the embedded JSON metadata (module_info.json). One
key:value pair per line; matches the bytes the linker script writes
into the .note.package descriptor (see json below).
json: StringJSON string written to module_info.json and embedded as the note
section’s descriptor. One key:value pair per line (not strictly
“compact”); the runtime scan in extract_module_info tolerates the
embedded newlines.
linker_script_body: StringByte-encoded linker script body that produced linker_script.ld.
Trait Implementations§
Source§impl Clone for EmbedArtifacts
impl Clone for EmbedArtifacts
Source§fn clone(&self) -> EmbedArtifacts
fn clone(&self) -> EmbedArtifacts
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more