[][src]Function ya_runtime_wasi::deploy

pub fn deploy(workdir: impl AsRef<Path>, path: impl AsRef<Path>) -> Result<()>

Deploys the Wasm image into the workspace.

Takes path to workdir and path to the Wasm image as arguments.

Example

use std::path::Path;
use ya_runtime_wasi::deploy;

deploy(Path::new("workspace"), Path::new("package.zig")).unwrap();