Port load_asset() to Rust.