Skip to main content

import_project

Function import_project 

Source
pub fn import_project(src: &Path, dir: &Path) -> Result<Project>
Expand description

Create a new Pixel8 project from a PICO-8 cart’s assets.

The project’s crate name comes from the target directory (like new); the cart title comes from the source file. Imported assets are written to assets.pixel8.json and a stub src/lib.rs is scaffolded.