memory_x_tools 0.1.0

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

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.