MCPcopy Create free account

hub / github.com/bytecodealliance/WASI-Virt / functions

Functions282 in github.com/bytecodealliance/WASI-Virt

↓ 29 callersMethodget
(&self, name: String)
virtual-adapter/src/io.rs:1313
↓ 17 callersFunctionstub_import
(module: &mut Module, import: &str, name: &str, stub: StubFn)
src/stub_preview1.rs:8
↓ 14 callersMethodclone
(&self)
virtual-adapter/src/io.rs:1338
↓ 7 callersFunctionstrip_virt
(module: &mut Module, subsystems: &[&str])
src/walrus_ops.rs:89
↓ 7 callersFunctionstub_virt
Replace imported WASI functions that implement subsystem access with no-ops
src/walrus_ops.rs:115
↓ 6 callersFunctionread_data_str
(offset: &mut isize)
virtual-adapter/src/config.rs:36
↓ 5 callersFunctionreplace_or_insert_stub_for_exports
Helper function for replacing or inserting exports with stub functions
src/virt_deny/mod.rs:20
↓ 5 callersMethodruntime_path
(&self)
virtual-adapter/src/io.rs:245
↓ 5 callersMethodstdio
(&mut self)
src/lib.rs:199
↓ 4 callersMethoddir_lookup
(&self, path: &str)
virtual-adapter/src/io.rs:285
↓ 4 callersMethodenv
(&mut self)
src/lib.rs:181
↓ 4 callersMethodexit
Set whether `wasi:cli/exit` should be virtualized
src/lib.rs:140
↓ 4 callersMethodidx
(&self)
virtual-adapter/src/io.rs:240
↓ 4 callersMethodname
(&self)
virtual-adapter/src/io.rs:249
↓ 4 callersMethodty
(&self)
virtual-adapter/src/io.rs:253
↓ 3 callersMethodallow
(&mut self)
src/virt_io.rs:37
↓ 3 callersMethodallow_all
Allow all features
src/lib.rs:204
↓ 3 callersFunctionbump_stack_global
(module: &mut Module, offset: i32)
src/walrus_ops.rs:63
↓ 3 callersMethodclocks
Enable/disable virtualization of `wasi:clocks`
src/lib.rs:145
↓ 3 callersMethodencode
(&self, bytes: &mut [u8])
src/data.rs:45
↓ 3 callersMethodfinish
Finish the WASI module
src/lib.rs:307
↓ 3 callersMethodfs
(&mut self)
src/lib.rs:193
↓ 3 callersFunctionget_active_data_segment
( module: &mut Module, mem: MemoryId, addr: u32, )
src/walrus_ops.rs:17
↓ 3 callersMethodhttp
Enable/disable virtualization of `wasi:http`
src/lib.rs:150
↓ 3 callersMethodrandom
Enable/disable virtualization of `wasi:random`
src/lib.rs:160
↓ 3 callersMethodread
(&self, offset: &Cell<u64>, len: u64)
virtual-adapter/src/io.rs:309
↓ 3 callersFunctionread_data_str
(offset: &mut isize)
virtual-adapter/src/env.rs:36
↓ 3 callersMethodset
(&self, name: String, values: Vec<Vec<u8>>)
virtual-adapter/src/io.rs:1318
↓ 3 callersMethodsockets
Enable/disable virtualization of `wasi:sockets`
src/lib.rs:155
↓ 3 callersMethodstack_alloc
(&'a mut self, data_len: usize, align: usize)
src/data.rs:69
↓ 3 callersMethodstring
Allocate a static string and return its pointer If the string already exists, return the existing pointer
src/data.rs:102
↓ 2 callersMethodallow_host_preopens
Allow host preopens at runtime
src/virt_io.rs:113
↓ 2 callersMethodchild_list
(&self)
virtual-adapter/src/io.rs:277
↓ 2 callersMethodcompose_component_path
Set path to compose component
src/lib.rs:170
↓ 2 callersMethoddebug
Enable debug
src/lib.rs:130
↓ 2 callersMethoddelete
(&self, name: String)
virtual-adapter/src/io.rs:1323
↓ 2 callersFunctiondescriptor_ty_map
(d: filesystem_types::DescriptorType)
virtual-adapter/src/io.rs:1825
↓ 2 callersMethodfilter_imports
Drop capabilities that are not imported by the composed component
src/lib.rs:232
↓ 2 callersFunctionget_active_data_start
(data: &Data, mem: MemoryId)
src/walrus_ops.rs:4
↓ 2 callersMethodhas_virtualized_io
Whether this WasiVirt has any IO enabled
src/lib.rs:298
↓ 2 callersFunctionmethod_map_rev
(method: http_types::Method)
virtual-adapter/src/io.rs:1931
↓ 2 callersMethodsize
(&self)
virtual-adapter/src/io.rs:261
↓ 2 callersFunctionstub_config_virt
Stub imported functions that implement the WASI config functionality This function throws an error if any imported functions do not exist
src/virt_config.rs:218
↓ 2 callersFunctionstub_env_virt
Stub imported functions that implement the WASI CLI environment functionality This function throws an error if any imported functions do not exist
src/virt_env.rs:223
↓ 2 callersMethodwasi_version
Set virtualized WASI version
src/lib.rs:175
↓ 2 callersMethodwrite_slice
Allocate some bytes into the data section, return the pointer Note this is only safe for T being repr(C) / packed
src/data.rs:89
↓ 1 callersFunctionapply_wasm_opt
(bytes: Vec<u8>, debug: bool)
src/lib.rs:615
↓ 1 callersMethodblocking_read
(&self, len: u64)
virtual-adapter/src/io.rs:1107
↓ 1 callersMethodblocking_write_and_flush
(&self, bytes: Vec<u8>)
virtual-adapter/src/io.rs:1164
↓ 1 callersFunctioncmd
(arg: &str)
tests/virt.rs:29
↓ 1 callersFunctioncollect_component_imports
(component_bytes: Vec<u8>)
tests/virt.rs:423
↓ 1 callersMethodconfig
(&mut self)
src/lib.rs:187
↓ 1 callersFunctioncreate_config_virt
(module: &'a mut Module, config: &VirtConfig)
src/virt_config.rs:69
↓ 1 callersFunctioncreate_env_virt
( module: &'a mut Module, env: &VirtEnv, wasi_version: &Version, )
src/virt_env.rs:70
↓ 1 callersFunctioncreate_io_virt
( module: &'a mut Module, fs: Option<&VirtFs>, stdio: Option<&VirtStdio>, )
src/virt_io.rs:319
↓ 1 callersMethoddebug_enabled
Get whether debug has been eanbled
src/lib.rs:135
↓ 1 callersFunctiondeny_clocks_virt
Replace exports related to clocks in WASI to deny access # Arguments `module` - The module to deny `insert_wasi_version` - version of WASI to use wh
src/virt_deny/clocks.rs:61
↓ 1 callersFunctiondeny_exit_virt
Replace exports related to exiting in WASI to deny access # Arguments `module` - The module to deny `insert_wasi_version` - version of WASI to use w
src/virt_deny/exit.rs:27
↓ 1 callersMethoddeny_host_preopens
Deny host preopens at runtime
src/virt_io.rs:109
↓ 1 callersFunctiondeny_http_virt
Replace exports related to HTTP in WASI to deny access # Arguments `module` - The module to deny `insert_wasi_version` - version of WASI to use when
src/virt_deny/http.rs:413
↓ 1 callersFunctiondeny_random_virt
Replace exports related to randomness in WASI to deny access # Arguments `module` - The module to deny `insert_wasi_version` - version of WASI to us
src/virt_deny/random.rs:69
↓ 1 callersFunctiondeny_sockets_virt
Replace exports related to sockets in WASI to deny access # Arguments `module` - The module to deny `insert_wasi_version` - version of WASI to use w
src/virt_deny/sockets.rs:422
↓ 1 callersFunctionget_stack_global
(module: &Module)
src/walrus_ops.rs:49
↓ 1 callersMethodget_type
(&self)
virtual-adapter/src/io.rs:407
↓ 1 callersFunctionget_wasi_clock_fns
Retrieve or initialize the static list of functions related to clocks in WASI
src/virt_deny/clocks.rs:17
↓ 1 callersFunctionget_wasi_exit_fns
Retrieve or initialize the static list of functions related to exiting in WASI
src/virt_deny/exit.rs:15
↓ 1 callersFunctionget_wasi_http_fns
Retrieve or initialize the static list of functions related to HTTP in WASI
src/virt_deny/http.rs:17
↓ 1 callersFunctionget_wasi_random_fns
Retrieve or initialize the static list of functions related to randomness in WASI
src/virt_deny/random.rs:15
↓ 1 callersFunctionget_wasi_sockets_fns
Retrieve or initialize the static list of functions related to sockets in WASI
src/virt_deny/sockets.rs:17
↓ 1 callersFunctionhas_component_import
(bytes: &[u8])
tests/virt.rs:378
↓ 1 callersMethodhost_preopen
Add a runtime preopen host mapping
src/virt_io.rs:122
↓ 1 callersFunctionhttp_err_map
(err: HttpErrorCode)
virtual-adapter/src/io.rs:1961
↓ 1 callersMethodignore
(&mut self)
src/virt_io.rs:31
↓ 1 callersFunctionmethod_map
(method: Method)
virtual-adapter/src/io.rs:1946
↓ 1 callersMethodnext
(&self, idx: &Cell<usize>)
virtual-adapter/src/io.rs:226
↓ 1 callersFunctionpassive_alloc
(passive_idx: u32, offset: u32, len: u32)
virtual-adapter/src/io.rs:2150
↓ 1 callersMethodpassive_bytes
(&mut self, bytes: &[u8])
src/data.rs:63
↓ 1 callersMethodread_via_stream
(&self, offset: u64)
virtual-adapter/src/io.rs:788
↓ 1 callersMethodstack_bytes
(&mut self, bytes: &[u8])
src/data.rs:82
↓ 1 callersMethodstat_at
(&self, flags: PathFlags, path: String)
virtual-adapter/src/io.rs:887
↓ 1 callersMethodstderr
(&mut self, cfg: StdioCfg)
src/virt_io.rs:57
↓ 1 callersMethodstdin
(&mut self, cfg: StdioCfg)
src/virt_io.rs:49
↓ 1 callersMethodstdout
(&mut self, cfg: StdioCfg)
src/virt_io.rs:53
↓ 1 callersFunctionstrip_config_virt
Strip exported functions that implement the WASI config functionality
src/virt_config.rs:234
↓ 1 callersFunctionstrip_env_virt
Strip exported functions that implement the WASI CLI environment functionality
src/virt_env.rs:239
↓ 1 callersMethodvirtual_preopen
Add a preopen virtualized local directory (which will be globbed)
src/virt_io.rs:127
↓ 1 callersMethodvisit_bfs
(&'a self, base_path: &str, visit: &mut Visitor)
src/virt_io.rs:252
↓ 1 callersMethodvisit_pre_mut
(&'a mut self, base_path: &str, visit: &mut Visitor)
src/virt_io.rs:221
↓ 1 callersMethodvisit_pre_mut_inner
( &'a mut self, visit: &mut Visitor, base_path: &str, )
src/virt_io.rs:229
↓ 1 callersMethodwasi_config
(&mut self)
tests/virt.rs:262
↓ 1 callersMethodwasm_opt
Enable/disable optimization via `wasm_opt`
src/lib.rs:165
Methodaccept
(&self)
virtual-adapter/src/io.rs:1612
Methodaddress_family
(&self)
virtual-adapter/src/io.rs:1634
Methodadvise
(&self, _: u64, _: u64, _: Advice)
virtual-adapter/src/io.rs:810
Methodalign
()
src/virt_io.rs:146
Methodalign
()
src/data.rs:37
Methodallow
Set the host environment variable allow list
src/virt_env.rs:38
Methodallow
Set the host configuration property allow list
src/virt_config.rs:37
Methodallow_all
Enable all environment variables on the host
src/virt_env.rs:50
Methodallow_all
Enable all configuration properties on the host
src/virt_config.rs:49
next →1–100 of 282, ranked by callers