Skip to main content

Crate memory_x_tools

Crate memory_x_tools 

Source
Expand description

§memory_x_tools

Helpers for copying memory.x and related linker assets from build.rs scripts.

§Example

use memory_x_tools::copy_memory_x;

fn main() {
    copy_memory_x().expect("failed to copy memory.x");
}

copy_memory_x copies memory.x into Cargo’s output directory, adds that directory to the linker search path, and marks memory.x as a rebuild trigger.

Enums§

Error

Functions§

copy_file
copy_memory_x