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(),
|
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();
|
||||||
|
|
Loading…
Reference in New Issue