pub struct LibsFooter {
pub libs_offset: u64,
pub libs_size: u64,
}Expand description
Footer appended to the stub binary to locate embedded runtime libraries.
The stub reads its own last 32 bytes to find the compressed libs bundle, extracts them to a cache directory, and dlopen’s libkrun from there. This keeps the .smolmachine sidecar cross-platform (no platform-specific libs).
Layout (32 bytes total):
Offset Size Field
0 8 magic ("SMOLLIBS")
8 4 version (u32 LE)
12 8 libs_offset (u64 LE) - offset to compressed libs blob
20 8 libs_size (u64 LE) - size of compressed libs blob
28 4 reserved (zeroes)Fields§
§libs_offset: u64Offset from start of file to the compressed libs blob.
libs_size: u64Size of the compressed libs blob.
Implementations§
Trait Implementations§
Source§fn clone(&self) -> LibsFooter
fn clone(&self) -> LibsFooter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more