Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ preopen
Function
preopen
crates/test-programs/src/bin/p2_cli_hostcall_fuel.rs:35–39 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
33
}
34
35
fn preopen() -> Descriptor {
36
let mut dirs = wasip2::filesystem::preopens::get_directories();
37
assert_eq!(dirs.len(), 1);
38
dirs.pop().unwrap().0
39
}
40
41
fn read() {
42
let f = preopen()
Callers
9
read
Function · 0.85
write
Function · 0.85
write_stream
Function · 0.85
write_stream_blocking
Function · 0.85
mkdir
Function · 0.85
write_zeroes
Function · 0.85
write_stream_buffer_too_large
Function · 0.85
write_zeroes_buffer_too_large
Function · 0.85
read_file_big
Function · 0.85
Calls
2
unwrap
Method · 0.45
pop
Method · 0.45
Tested by
no test coverage detected