Skip to content

Commit

Permalink
deploy: d11fccd
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Sep 20, 2024
1 parent b33cf67 commit 795c794
Show file tree
Hide file tree
Showing 70 changed files with 193 additions and 167 deletions.
2 changes: 1 addition & 1 deletion crates/doc/implementors/core/convert/trait.From.js

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@
<a href="#82" id="82">82</a>
<a href="#83" id="83">83</a>
<a href="#84" id="84">84</a>
<a href="#85" id="85">85</a>
<a href="#86" id="86">86</a>
<a href="#87" id="87">87</a>
<a href="#88" id="88">88</a>
</pre></div><pre class="rust"><code><span class="kw">use super</span>::<span class="kw-2">*</span>;
<span class="kw">use </span><span class="kw">crate</span>::syscalls::<span class="kw-2">*</span>;
<span class="kw">use </span><span class="kw">crate</span>::types::wasi::Snapshot0Filestat;
Expand All @@ -94,14 +98,18 @@
/// Output:
/// - `Filestat *buf`
/// Where the metadata from `fd` will be written
</span><span class="attr">#[instrument(level = <span class="string">&quot;trace&quot;</span>, skip_all, fields(%fd), ret)]
</span><span class="attr">#[instrument(level = <span class="string">&quot;trace&quot;</span>, skip_all, fields(%fd, size = field::Empty, mtime = field::Empty), ret)]
</span><span class="kw">pub fn </span>fd_filestat_get&lt;M: MemorySize&gt;(
<span class="kw-2">mut </span>ctx: FunctionEnvMut&lt;<span class="lifetime">&#39;_</span>, WasiEnv&gt;,
fd: WasiFd,
buf: WasmPtr&lt;Filestat, M&gt;,
) -&gt; Errno {
<span class="kw">let </span>stat = <span class="macro">wasi_try!</span>(fd_filestat_get_internal(<span class="kw-2">&amp;mut </span>ctx, fd));

<span class="comment">// These two values have proved to be helpful in multiple investigations
</span>Span::current().record(<span class="string">&quot;size&quot;</span>, stat.st_size);
Span::current().record(<span class="string">&quot;mtime&quot;</span>, stat.st_mtim);

<span class="kw">let </span>env = ctx.data();
<span class="kw">let </span>(memory, <span class="kw">_</span>) = <span class="kw">unsafe </span>{ env.get_memory_and_wasi_state(<span class="kw-2">&amp;</span>ctx, <span class="number">0</span>) };
<span class="kw">let </span>buf = buf.deref(<span class="kw-2">&amp;</span>memory);
Expand Down
18 changes: 18 additions & 0 deletions crates/doc/src/wasmer_wasix/syscalls/wasi/path_rename.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,15 @@
<a href="#214" id="214">214</a>
<a href="#215" id="215">215</a>
<a href="#216" id="216">216</a>
<a href="#217" id="217">217</a>
<a href="#218" id="218">218</a>
<a href="#219" id="219">219</a>
<a href="#220" id="220">220</a>
<a href="#221" id="221">221</a>
<a href="#222" id="222">222</a>
<a href="#223" id="223">223</a>
<a href="#224" id="224">224</a>
<a href="#225" id="225">225</a>
</pre></div><pre class="rust"><code><span class="kw">use super</span>::<span class="kw-2">*</span>;
<span class="kw">use </span><span class="kw">crate</span>::syscalls::<span class="kw-2">*</span>;

Expand Down Expand Up @@ -417,6 +426,8 @@
}
}

<span class="kw">let </span>source_size = source_entry.stat.read().unwrap().st_size;

<span class="kw">if </span>need_create {
<span class="kw">let </span><span class="kw-2">mut </span>guard = target_parent_inode.write();
<span class="kw">if let </span>Kind::Dir { entries, .. } = guard.deref_mut() {
Expand All @@ -428,6 +439,13 @@
}
}

<span class="comment">// The target entry is created, one way or the other
</span><span class="kw">let </span>target_inode =
<span class="macro">wasi_try_ok!</span>(state
.fs
.get_inode_at_path(inodes, target_fd, target_path, <span class="bool-val">true</span>));
target_inode.stat.write().unwrap().st_size = source_size;

<span class="prelude-val">Ok</span>(Errno::Success)
}
</code></pre></div></section></main></body></html>
2 changes: 1 addition & 1 deletion crates/doc/wasmer/engine/trait.CompilerConfig.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
<p>NaN canonicalization is useful when trying to run WebAssembly
deterministically across different architectures.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.default_features_for_target" class="method"><h4 class="code-header">fn <a href="#method.default_features_for_target" class="fn">default_features_for_target</a>(&amp;self, _target: &amp;<a class="struct" href="../struct.Target.html" title="struct wasmer::Target">Target</a>) -&gt; <a class="struct" href="../sys/struct.Features.html" title="struct wasmer::sys::Features">Features</a></h4></section></summary><div class="docblock"><p>Gets the default features for this compiler in the given target</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-CompilerConfig-for-Cranelift" class="impl"><a class="src rightside" href="../../src/wasmer_compiler_cranelift/config.rs.html#203">source</a><a href="#impl-CompilerConfig-for-Cranelift" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../sys/trait.CompilerConfig.html" title="trait wasmer::sys::CompilerConfig">CompilerConfig</a> for <a class="struct" href="../sys/struct.Cranelift.html" title="struct wasmer::sys::Cranelift">Cranelift</a></h3></section><section id="impl-CompilerConfig-for-LLVM" class="impl"><a class="src rightside" href="../../src/wasmer_compiler_llvm/config.rs.html#249">source</a><a href="#impl-CompilerConfig-for-LLVM" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../sys/trait.CompilerConfig.html" title="trait wasmer::sys::CompilerConfig">CompilerConfig</a> for <a class="struct" href="../sys/struct.LLVM.html" title="struct wasmer::sys::LLVM">LLVM</a></h3></section><section id="impl-CompilerConfig-for-Singlepass" class="impl"><a href="#impl-CompilerConfig-for-Singlepass" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../sys/trait.CompilerConfig.html" title="trait wasmer::sys::CompilerConfig">CompilerConfig</a> for <a class="struct" href="../sys/struct.Singlepass.html" title="struct wasmer::sys::Singlepass">Singlepass</a></h3></section></div><script src="../../implementors/wasmer_compiler/compiler/trait.CompilerConfig.js" data-ignore-extern-crates="wasmer_compiler_llvm,wasmer_compiler_singlepass,wasmer_compiler_cranelift" async></script></section></div></main></body></html>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-CompilerConfig-for-Cranelift" class="impl"><a class="src rightside" href="../../src/wasmer_compiler_cranelift/config.rs.html#203">source</a><a href="#impl-CompilerConfig-for-Cranelift" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../sys/trait.CompilerConfig.html" title="trait wasmer::sys::CompilerConfig">CompilerConfig</a> for <a class="struct" href="../sys/struct.Cranelift.html" title="struct wasmer::sys::Cranelift">Cranelift</a></h3></section><section id="impl-CompilerConfig-for-LLVM" class="impl"><a href="#impl-CompilerConfig-for-LLVM" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../sys/trait.CompilerConfig.html" title="trait wasmer::sys::CompilerConfig">CompilerConfig</a> for <a class="struct" href="../sys/struct.LLVM.html" title="struct wasmer::sys::LLVM">LLVM</a></h3></section><section id="impl-CompilerConfig-for-Singlepass" class="impl"><a href="#impl-CompilerConfig-for-Singlepass" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../sys/trait.CompilerConfig.html" title="trait wasmer::sys::CompilerConfig">CompilerConfig</a> for <a class="struct" href="../sys/struct.Singlepass.html" title="struct wasmer::sys::Singlepass">Singlepass</a></h3></section></div><script src="../../implementors/wasmer_compiler/compiler/trait.CompilerConfig.js" data-ignore-extern-crates="wasmer_compiler_llvm,wasmer_compiler_singlepass,wasmer_compiler_cranelift" async></script></section></div></main></body></html>
2 changes: 1 addition & 1 deletion crates/doc/wasmer/sys/engine/struct.Engine.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion crates/doc/wasmer/sys/engine/trait.CompilerConfig.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
<p>NaN canonicalization is useful when trying to run WebAssembly
deterministically across different architectures.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.default_features_for_target" class="method"><h4 class="code-header">fn <a href="#method.default_features_for_target" class="fn">default_features_for_target</a>(&amp;self, _target: &amp;<a class="struct" href="../../struct.Target.html" title="struct wasmer::Target">Target</a>) -&gt; <a class="struct" href="../struct.Features.html" title="struct wasmer::sys::Features">Features</a></h4></section></summary><div class="docblock"><p>Gets the default features for this compiler in the given target</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-CompilerConfig-for-Cranelift" class="impl"><a class="src rightside" href="../../../src/wasmer_compiler_cranelift/config.rs.html#203">source</a><a href="#impl-CompilerConfig-for-Cranelift" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.CompilerConfig.html" title="trait wasmer::sys::CompilerConfig">CompilerConfig</a> for <a class="struct" href="../struct.Cranelift.html" title="struct wasmer::sys::Cranelift">Cranelift</a></h3></section><section id="impl-CompilerConfig-for-LLVM" class="impl"><a class="src rightside" href="../../../src/wasmer_compiler_llvm/config.rs.html#249">source</a><a href="#impl-CompilerConfig-for-LLVM" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.CompilerConfig.html" title="trait wasmer::sys::CompilerConfig">CompilerConfig</a> for <a class="struct" href="../struct.LLVM.html" title="struct wasmer::sys::LLVM">LLVM</a></h3></section><section id="impl-CompilerConfig-for-Singlepass" class="impl"><a href="#impl-CompilerConfig-for-Singlepass" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.CompilerConfig.html" title="trait wasmer::sys::CompilerConfig">CompilerConfig</a> for <a class="struct" href="../struct.Singlepass.html" title="struct wasmer::sys::Singlepass">Singlepass</a></h3></section></div><script src="../../../implementors/wasmer_compiler/compiler/trait.CompilerConfig.js" data-ignore-extern-crates="wasmer_compiler_llvm,wasmer_compiler_singlepass,wasmer_compiler_cranelift" async></script></section></div></main></body></html>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-CompilerConfig-for-Cranelift" class="impl"><a class="src rightside" href="../../../src/wasmer_compiler_cranelift/config.rs.html#203">source</a><a href="#impl-CompilerConfig-for-Cranelift" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.CompilerConfig.html" title="trait wasmer::sys::CompilerConfig">CompilerConfig</a> for <a class="struct" href="../struct.Cranelift.html" title="struct wasmer::sys::Cranelift">Cranelift</a></h3></section><section id="impl-CompilerConfig-for-LLVM" class="impl"><a href="#impl-CompilerConfig-for-LLVM" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.CompilerConfig.html" title="trait wasmer::sys::CompilerConfig">CompilerConfig</a> for <a class="struct" href="../struct.LLVM.html" title="struct wasmer::sys::LLVM">LLVM</a></h3></section><section id="impl-CompilerConfig-for-Singlepass" class="impl"><a href="#impl-CompilerConfig-for-Singlepass" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.CompilerConfig.html" title="trait wasmer::sys::CompilerConfig">CompilerConfig</a> for <a class="struct" href="../struct.Singlepass.html" title="struct wasmer::sys::Singlepass">Singlepass</a></h3></section></div><script src="../../../implementors/wasmer_compiler/compiler/trait.CompilerConfig.js" data-ignore-extern-crates="wasmer_compiler_llvm,wasmer_compiler_singlepass,wasmer_compiler_cranelift" async></script></section></div></main></body></html>
Loading

0 comments on commit 795c794

Please sign in to comment.