| /wasmtime-44.0.1/tests/all/ |
| H A D | compile_time_builtins.rs | 2 use std::path::Path; 48 Some(Path::new("host-api.wat")), in smoke() 77 Some(Path::new("main.wat")), in smoke() 105 Some(Path::new("host-api.wat")), in unused_compile_time_builtins() 124 Some(Path::new("main.wat")), in unused_compile_time_builtins() 152 Some(Path::new("host-api1.wat")), in multiple_compile_time_builtins() 157 Some(Path::new("host-api2.wat")), in multiple_compile_time_builtins() 184 Some(Path::new("main.wat")), in multiple_compile_time_builtins() 211 Some(Path::new("host-api.wat")), in main_wasm_cannot_use_intrinsics() 220 Some(Path::new("main.wat")), in main_wasm_cannot_use_intrinsics() [all …]
|
| H A D | intrinsics.rs | 20 let path = Path::new(&path); in native_loads_and_stores() 167 let path = Path::new(&path); in ref_func_of_intrinsic() 228 let path = Path::new(&path); in table_element_segment_with_intrinsic() 288 let path = Path::new(&path); in intrinsics_not_listed_in_imports() 320 let path = Path::new(&path); in unknown_intrinsic_function() 353 let path = Path::new(&path); in bad_extra_param() 389 let path = Path::new(&path); in bad_missing_param() 425 let path = Path::new(&path); in bad_missing_return() 461 let path = Path::new(&path); in bad_extra_return() 497 let path = Path::new(&path); in bad_param_type() [all …]
|
| /wasmtime-44.0.1/cranelift/codegen/meta/src/ |
| H A D | lib.rs | 32 pub fn generate_rust(isas: &[isa::Isa], out_dir: &std::path::Path) -> Result<(), error::Error> { in generate_rust() 40 out_dir: &std::path::Path, in generate_rust_for_shared_defs() argument 78 pub fn generate_isle(isle_dir: &std::path::Path) -> Result<(), error::Error> { in generate_isle() 85 isle_dir: &std::path::Path, in generate_isle_for_shared_defs() argument 107 isle_dir: &std::path::Path, in generate_isle_for_assembler() argument 119 out_dir: &std::path::Path, in generate_rust_macro_for_assembler() argument 129 out_dir: &std::path::Path, in generate() argument 130 isle_dir: &std::path::Path, in generate() argument
|
| /wasmtime-44.0.1/crates/wasmtime/src/compile/ |
| H A D | code_builder.rs | 4 use std::path::Path; 46 wasm_path: Option<Cow<'a, Path>>, 48 dwarf_package_path: Option<Cow<'a, Path>>, 105 wasm_path: Option<&'a Path>, in wasm_binary() argument 137 wasm_path: Option<&'a Path>, in wasm_binary_or_text() argument 169 pub fn wasm_binary_file(&mut self, file: &'a Path) -> Result<&mut Self> { in wasm_binary_file() 187 pub fn wasm_binary_or_text_file(&mut self, file: &'a Path) -> Result<&mut Self> { in wasm_binary_or_text_file() 679 pub fn dwarf_package_file(&mut self, file: &Path) -> Result<&mut Self> { in dwarf_package_file()
|
| /wasmtime-44.0.1/crates/wasi-common/src/sync/ |
| H A D | dir.rs | 10 use std::path::{Path, PathBuf}; 107 .rename(Path::new(src_path), &dest_dir.0, Path::new(dest_path))?; in rename_() 116 let src_path = Path::new(src_path); in hard_link_() 117 let target_path = Path::new(target_path); in hard_link_() 145 self.0.create_dir(Path::new(path))?; in create_dir() 235 self.0.remove_dir(Path::new(path))?; in remove_dir() 244 let link = self.0.read_link(Path::new(path))?; in read_link() 266 self.0.metadata(Path::new(path))? in get_path_filestat() 268 self.0.symlink_metadata(Path::new(path))? in get_path_filestat() 314 Path::new(path), in set_times() [all …]
|
| /wasmtime-44.0.1/tests/all/native_debug/ |
| H A D | obj.rs | 3 use std::path::Path; 9 path: Option<&Path>, in compile_cranelift() argument 11 output: impl AsRef<Path>, in compile_cranelift() argument
|
| /wasmtime-44.0.1/cranelift/filetests/src/ |
| H A D | lib.rs | 11 use std::path::Path; 46 for path in files.iter().map(Path::new) { in run() 72 let path = Path::new(file); in run_passes() 73 if path == Path::new("-") || path.is_file() { in run_passes()
|
| /wasmtime-44.0.1/cranelift/src/ |
| H A D | utils.rs | 6 use std::path::{Path, PathBuf}; 10 pub fn read_to_string<P: AsRef<Path>>(path: P) -> anyhow::Result<String> { in read_to_string() 13 if path == Path::new("-") { in read_to_string()
|
| H A D | cat.rs | 10 use std::path::{Path, PathBuf}; 30 fn cat_one(path: &Path) -> Result<()> { in cat_one()
|
| H A D | print_cfg.rs | 11 use std::path::{Path, PathBuf}; 31 fn print_cfg(path: &Path) -> Result<()> { in print_cfg()
|
| /wasmtime-44.0.1/cranelift/codegen/ |
| H A D | build.rs | 30 let out_dir = std::path::Path::new(&out_dir); in main() 129 std::path::Path::new(&out_dir).join("version.rs"), in main() 142 cur_dir: &std::path::Path, in make_isle_source_path_relative() argument 143 filename: &std::path::Path, in make_isle_source_path_relative() argument 153 crate_dir: &std::path::Path, in build_isle() argument 154 isle_dir: &std::path::Path, in build_isle() argument
|
| /wasmtime-44.0.1/crates/wasi-nn/tests/exec/ |
| H A D | witx.rs | 3 use std::path::Path; 14 let path = Path::new(path); in run() 34 fn new(preopen_dir: &Path, preload_model: bool, mut backend: Backend) -> Result<Self> { in new() argument
|
| H A D | wit.rs | 3 use std::path::Path; 15 let path = Path::new(path); in run() 37 fn new(preopen_dir: &Path, preload_model: bool, mut backend: Backend) -> Result<Self> { in new() argument
|
| /wasmtime-44.0.1/tests/ |
| H A D | wasi.rs | 11 use std::path::Path; 114 fn find_tests(path: &Path, trials: &mut Vec<Trial>) -> Result<()> { in find_tests() argument 152 fn run_test(path: &Path, componentize: bool) -> Result<()> { in run_test() argument 153 let wasmtime = Path::new(env!("CARGO_BIN_EXE_wasmtime")); in run_test() 257 fn cp_r(path: &Path, dst: &Path) -> Result<()> { in cp_r() argument
|
| /wasmtime-44.0.1/crates/component-macro/tests/ |
| H A D | expanded.rs | 1 use std::path::Path; 41 let mut stem = Path::new(path).file_stem().unwrap().to_os_string(); in process_expanded() 43 Path::new("tests/expanded").join(stem).with_extension("rs") in process_expanded()
|
| /wasmtime-44.0.1/crates/wasmtime/src/compile/code_builder/ |
| H A D | compile_time_builtins.rs | 39 let mut path = deps.join(Path::new(name)); in compose_compile_time_builtins() 231 wasm_path: Option<&Path>, in compile_time_builtins_binary_or_text() argument 264 file: &Path, in compile_time_builtins_binary_file() argument 297 file: &Path, in compile_time_builtins_binary_or_text_file() argument
|
| /wasmtime-44.0.1/cranelift/assembler-x64/meta/src/ |
| H A D | lib.rs | 9 use std::path::{Path, PathBuf}; 17 pub fn generate_rust_assembler<P: AsRef<Path>>(dir: P, file: &str) -> PathBuf { in generate_rust_assembler()
|
| /wasmtime-44.0.1/cranelift/assembler-x64/ |
| H A D | build.rs | 5 use std::path::Path; 11 let out_dir = Path::new(&out_dir); in main()
|
| /wasmtime-44.0.1/crates/test-util/src/ |
| H A D | wast.rs | 5 use std::path::Path; 33 pub fn find_tests(root: &Path) -> Result<Vec<WastTest>> { in find_tests() 76 Infer(fn(&Path) -> TestConfig), 79 fn add_tests(tests: &mut Vec<WastTest>, path: &Path, config: &FindConfig) -> Result<()> { in add_tests() argument 112 fn spec_test_config(test: &Path) -> TestConfig { in spec_test_config() 177 fn component_test_config(test: &Path) -> TestConfig { in component_test_config() 722 fn spec_proposal_from_path(path: &Path) -> Option<&str> { in spec_proposal_from_path()
|
| H A D | lib.rs | 1 use std::path::Path; 23 pub fn command(bin: impl AsRef<Path>) -> Command { in command()
|
| /wasmtime-44.0.1/ |
| H A D | build.rs | 2 use std::path::Path; 20 if !Path::new(".git").exists() { in set_commit_info_for_rustc()
|
| /wasmtime-44.0.1/crates/wasi-nn/tests/check/ |
| H A D | mod.rs | 9 path::{Path, PathBuf}, 34 fn download(from: &str, to: &Path) -> wasmtime::Result<()> { in download()
|
| /wasmtime-44.0.1/crates/wasi-nn/src/registry/ |
| H A D | in_memory.rs | 6 use std::{collections::HashMap, path::Path}; 21 pub fn load(&mut self, backend: &mut dyn BackendFromDir, path: &Path) -> wasmtime::Result<()> { in load()
|
| /wasmtime-44.0.1/examples/wasip2-plugins/ |
| H A D | build.rs | 2 use std::path::Path; 29 let clang_path = Path::new(&wasi_sdk_path.unwrap()).join("bin/wasm32-wasip2-clang"); in build_c_plugin()
|
| /wasmtime-44.0.1/examples/component/ |
| H A D | main.rs | 1 use std::{fs, path::Path}; 29 fn convert_to_component(path: impl AsRef<Path>) -> Result<Vec<u8>> { in convert_to_component()
|