Home
last modified time | relevance | path

Searched refs:Rust (Results 1 – 25 of 104) sorted by relevance

12345

/wasmtime-44.0.1/cranelift/srcgen/src/
H A Dlib.rs65 Rust, enumerator
81 Language::Rust => "//", in comment_token()
172 assert!(matches!(self.lang, Language::Rust)); in doc_comment()
188 assert!(matches!(self.lang, Language::Rust)); in add_block()
197 assert!(matches!(self.lang, Language::Rust)); in add_match()
406 let mut fmt = Formatter::new(Language::Rust); in adding_arms_works()
437 let mut fmt = Formatter::new(Language::Rust); in match_with_catchall_order()
468 let mut fmt = Formatter::new(Language::Rust); in formatter_basic_example_works()
484 let mut fmt = Formatter::new(Language::Rust); in get_indent_works()
503 let mut fmt = Formatter::new(Language::Rust); in fmt_can_add_type_to_lines()
[all …]
/wasmtime-44.0.1/.github/actions/android-ndk/
H A Daction.yml3 # code. For Rust we mostly need to configure the linker to Cargo and the C
7 name: 'Setup Rust to use the Android NDK'
8 description: 'Setup Rust to use the android NDK'
12 description: 'Rust target being used'
/wasmtime-44.0.1/cranelift/
H A Drustc.md5 compiling Rust in debug mode. This mode doesn't require a lot of
22 them, we'll have enabled a Rust compiler written entirely in Rust, and
23 enabled faster Rust compile times for important use cases.
33 - Take advantage of Rust language properties in the optimizer. With
34 LLVM, Rust is able to use annotations to describe some of its
37 relationships that Rust provides directly has the potential to be
66 information directly from the Rust front-end, we should be in great
H A DREADME.md43 non-WebAssembly use cases: for example, there is an effort to build a [Rust
70 [Rust compiler backend]: https://github.com/rust-lang/rustc_codegen_cranelift
87 Cranelift generally requires the latest stable Rust to build as a policy, and
88 is tested as such, but we can incorporate fixes for compilation with older Rust
108 - [Debug build backend for the Rust compiler](rustc.md).
/wasmtime-44.0.1/crates/wizer/.github/actions/install-rust/
H A Daction.yml1 name: 'Install Rust toolchain'
2 description: 'Install both `rustup` and a Rust toolchain'
/wasmtime-44.0.1/examples/
H A DREADME.md6 Most examples are available in Rust, C, and C++, using the `wasmtime` crate or the
8 `*.wat` file which is the wasm input, or a Rust project in a `wasm` folder which
11 Rust examples can be executed with `cargo run --example $name`. C and C++ examples can
/wasmtime-44.0.1/docs/
H A Dcontributing-conditional-compilation.md11 1. All possible CPU architectures that Wasmtime (or Rust) supports.
12 2. All possible operating systems that Wasmtime (or Rust) supports.
19 compilation in Rust and some recommended styles for working with `#[cfg]` in a
22 ## Rust's `#[cfg]` attribute
24 If you haven't worked with Rust much before or if you'd like a refresher, Rust's
29 One of the more common conditional compilation attributes in Rust is
51 Attributes in Rust can be applied to syntactic items in Rust, not fragments of
63 This can additionally be applied to entire expressions in Rust too:
78 The Rust compiler doesn't type-check or analyze anything in
83 Conditional compilation in any language can get hairy quickly and Rust is no
[all …]
H A Dlang.md4 within applications. Wasmtime is written in Rust, but bindings are available
7 Rust, C, and C++ embedding APIs.
14 ## Rust section in Officially supported bindings
16 Wasmtime is itself written in Rust and is available as the [`wasmtime`] crate on
27 all other language support for Wasmtime other than Rust. Note that the C API is
28 not always in perfect parity with the Rust API and can lag behind in terms of
36 Rust code.
H A DWASI-tutorial.md3 compiling C and Rust programs to WASI and executing the compiled WebAssembly module
12 - [From Rust](#from-rust)
104 #### From Rust
105 The same effect can be achieved with Rust. Firstly, go ahead and create a new
112 You can also clone the Rust code with the crate preset for you from
115 Now, let's port the C program defined in [From C](#from-c) section to Rust:
154 In order to build it, we first need to install a WASI-enabled Rust toolchain:
169 The resultant WebAssembly module `demo.wasm` compiled either from C or Rust is simply
205 calls the C/Rust `open` function, passing it either an absolute or relative path,
H A Dexamples-pulley.md37 executable, the [`Config::target`] method in Rust, or the
67 target for Pulley. Once that is done all of the Wasmtime crate's Rust APIs or C
103 to enable it, so Pulley supports a custom Rust flag that can be specified at
157 1. A "match loop" which is a Rust `loop { ... }` which internally uses the
162 2. A "tail loop" were each opcode handler is a Rust function. Control flow
164 by returning from the function. Tail calls are not available in stable Rust
170 stable Rust. The "tail loop" is thought to probably perform better than the
171 "match loop" but it's not available on stable Rust (`become` in Rust is an
H A Dcontributing.md54 We're happy to mentor people, whether you're learning Rust, learning about
59 [Rust's issue tags]. For example, the [E-easy] marks good beginner issues,
60 and [E-rust] marks issues which likely require some familiarity with Rust,
84 [Rust's issue tags]: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#issue-triage
H A Dcontributing-building.md20 ### The Rust Toolchain
22 [Install the Rust toolchain here.](https://www.rust-lang.org/tools/install) This
/wasmtime-44.0.1/.github/actions/install-rust/
H A Daction.yml1 name: 'Install Rust toolchain'
10 description: 'Versions later-than-latest-Rust the MSRV supports'
17 - name: Install Rust
46 - name: Install Rust
/wasmtime-44.0.1/
H A DREADME.md53 If you've got the [Rust compiler
54 installed](https://www.rust-lang.org/tools/install) then you can take some Rust
82 (Note: make sure you installed Rust using the [`rustup`][rustup] method in the official
83 instructions above, and do not have a copy of the Rust toolchain installed on
85 command may not install the target for the correct copy of Rust.)
97 security. Building on top of Rust's runtime safety guarantees, each Wasmtime
141 * **[Rust]** - the [`wasmtime` crate]
154 [Rust]: https://bytecodealliance.github.io/wasmtime/lang-rust.html
/wasmtime-44.0.1/ci/docker/x86_64-musl/
H A DDockerfile1 # Rust binaries need `libgcc_s.so` but ubuntu's musl toolchain does not have it.
6 # Use something glibc-based for the actual compile because the Rust toolchain
/wasmtime-44.0.1/cranelift/isle/
H A DREADME.md20 down to an instruction selector implementation in generated Rust code. The
46 Compile a `.isle` source file into Rust code:
52 Include that Rust code in your crate and compile it:
74 ;; Declare that we are using the `i32` primitive type from Rust.
106 ;; The register type is a Rust `Copy` type.
164 There are a few things to notice about this generated Rust code:
180 * Lastly, and most importantly, this generated Rust code is basically what we
192 with custom Rust code.
329 If we recompile our ISLE source into Rust code once again, we see a new
472 | Rust Source Code |
[all …]
/wasmtime-44.0.1/cranelift/isle/docs/
H A Dlanguage-reference.md390 ISLE-generated Rust code as well.
478 next section, [ISLE to Rust](#isle-to-rust).
652 to a Rust value of the given "return value" type, given actual Rust
1094 ## ISLE to Rust
1107 Rust. The basic principles are:
1114 2. One rewrite step is one Rust function call.
1151 respect to external Rust actions) easier.
1170 of Rust function calls rather than plain data.
1242 ### Mapping Type Declarations to Rust argument
1252 ISLE will generate the Rust type definition
[all …]
/wasmtime-44.0.1/crates/fuzzing/wasm-spec-interpreter/
H A DREADME.md7 - building a Rust-to-OCaml FFI bridge using `ocaml-interop` and a custom OCaml
9 - linking both things into a Rust crate
/wasmtime-44.0.1/crates/test-programs/
H A DREADME.md14 This suite is used for exercising `wasmtime`'s Rust APIs. Each test program in
88 and async Rust interfaces of the `wasmtime` and `wasi-common` crate.
93 synchronous Rust interfaces of the `wasmtime` and `wasmtime-wasi` crates.
103 Rust interfaces of the `wasmtime` and `wasmtime-wasi` crates.
114 still have imports of Wasi 0.1 thanks to the Rust `std` library, so those
116 the preview1 suite. (When Rust stabilizes the `wasm32-wasip2` target, this
/wasmtime-44.0.1/cranelift/assembler-x64/meta/
H A DREADME.md17 - [`generate.rs`](src/generate.rs): generates Rust code from the defined
22 This is primarily intended to be used for generating Rust code, i.e.,
/wasmtime-44.0.1/crates/c-api/
H A DREADME.md20 [CMake](https://cmake.org/) and [a Rust
47 ## Using in a Rust Project
49 If you have a Rust crate that contains bindings to a C or C++ library that uses Wasmtime, you can l…
/wasmtime-44.0.1/cranelift/srcgen/
H A DCargo.toml5 description = "Helper functions for generating Rust and ISLE files"
/wasmtime-44.0.1/examples/wasip2-plugins/
H A DCargo.toml6 Example Rust-based WebAssembly host that implements a calculator
/wasmtime-44.0.1/cranelift/assembler-x64/meta/src/
H A Dlib.rs20 let mut fmt = Formatter::new(Language::Rust); in generate_rust_assembler()
/wasmtime-44.0.1/supply-chain/
H A DREADME.md4 ensure that third-party Rust dependencies have been audited by a trusted entity.

12345