deploy

Function deploy 

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

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();