mirror of https://github.com/lapce/lapce.git
wasi open dir
This commit is contained in:
parent
5d3a0d5207
commit
6150129f50
|
@ -333,10 +333,10 @@ pub fn start_volt(
|
|||
stderr.clone(),
|
||||
)))
|
||||
.preopened_dir(
|
||||
wasmtime_wasi::Dir::from_std_file(std::fs::File::open(
|
||||
volt_path.join("volt.toml"),
|
||||
)?)
|
||||
.open_parent_dir(wasmtime_wasi::ambient_authority())?,
|
||||
wasmtime_wasi::Dir::open_ambient_dir(
|
||||
volt_path,
|
||||
wasmtime_wasi::ambient_authority(),
|
||||
)?,
|
||||
"/",
|
||||
)?
|
||||
.build();
|
||||
|
|
Loading…
Reference in New Issue