wasi open dir

This commit is contained in:
Dongdong Zhou 2022-08-24 21:26:15 +01:00
parent 5d3a0d5207
commit 6150129f50
1 changed files with 4 additions and 4 deletions

View File

@ -333,10 +333,10 @@ pub fn start_volt(
stderr.clone(), stderr.clone(),
))) )))
.preopened_dir( .preopened_dir(
wasmtime_wasi::Dir::from_std_file(std::fs::File::open( wasmtime_wasi::Dir::open_ambient_dir(
volt_path.join("volt.toml"), volt_path,
)?) wasmtime_wasi::ambient_authority(),
.open_parent_dir(wasmtime_wasi::ambient_authority())?, )?,
"/", "/",
)? )?
.build(); .build();