Skip to content

Commit

Permalink
deploy: 461e9ff
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej committed Jul 3, 2024
1 parent 0b65750 commit 1febee5
Show file tree
Hide file tree
Showing 101 changed files with 469 additions and 417 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.

2 changes: 1 addition & 1 deletion crates/doc/search-index.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions crates/doc/src/wasmer_cli/commands/package/publish.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
<a href="#169" id="169">169</a>
<a href="#170" id="170">170</a>
<a href="#171" id="171">171</a>
<a href="#172" id="172">172</a>
</pre></div><pre class="rust"><code><span class="kw">use crate</span>::{
commands::{
package::{
Expand Down Expand Up @@ -266,6 +267,7 @@
env: <span class="self">self</span>.env.clone(),
dry_run: <span class="self">self</span>.dry_run,
quiet: <span class="self">self</span>.quiet,
package_name: <span class="self">self</span>.package_name.clone(),
package_namespace: <span class="self">self</span>.package_namespace.clone(),
timeout: <span class="self">self</span>.timeout,
non_interactive: <span class="self">self</span>.non_interactive,
Expand Down
52 changes: 49 additions & 3 deletions crates/doc/src/wasmer_cli/commands/package/push.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,29 @@
<a href="#244" id="244">244</a>
<a href="#245" id="245">245</a>
<a href="#246" id="246">246</a>
<a href="#247" id="247">247</a>
<a href="#248" id="248">248</a>
<a href="#249" id="249">249</a>
<a href="#250" id="250">250</a>
<a href="#251" id="251">251</a>
<a href="#252" id="252">252</a>
<a href="#253" id="253">253</a>
<a href="#254" id="254">254</a>
<a href="#255" id="255">255</a>
<a href="#256" id="256">256</a>
<a href="#257" id="257">257</a>
<a href="#258" id="258">258</a>
<a href="#259" id="259">259</a>
<a href="#260" id="260">260</a>
<a href="#261" id="261">261</a>
<a href="#262" id="262">262</a>
<a href="#263" id="263">263</a>
<a href="#264" id="264">264</a>
<a href="#265" id="265">265</a>
<a href="#266" id="266">266</a>
<a href="#267" id="267">267</a>
<a href="#268" id="268">268</a>
<a href="#269" id="269">269</a>
</pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">super</span>::common::{macros::<span class="kw-2">*</span>, <span class="kw-2">*</span>};
<span class="kw">use crate</span>::{
commands::{AsyncCliCommand, PackageBuild},
Expand Down Expand Up @@ -281,6 +304,11 @@
</span><span class="attr">#[clap(long = <span class="string">&quot;namespace&quot;</span>)]
</span><span class="kw">pub </span>package_namespace: <span class="prelude-ty">Option</span>&lt;String&gt;,

<span class="doccomment">/// Override the name of the package to upload. If a name is specified,
/// no version will be attached to the package.
</span><span class="attr">#[clap(long = <span class="string">&quot;name&quot;</span>)]
</span><span class="kw">pub </span>package_name: <span class="prelude-ty">Option</span>&lt;String&gt;,

<span class="doccomment">/// Timeout (in seconds) for the publish query to the registry.
///
/// Note that this is not the timeout for the entire publish process, but
Expand Down Expand Up @@ -332,6 +360,22 @@
<span class="prelude-val">Ok</span>(owner.clone())
}

<span class="kw">async fn </span>get_name(<span class="kw-2">&amp;</span><span class="self">self</span>, manifest: <span class="kw-2">&amp;</span>Manifest) -&gt; anyhow::Result&lt;<span class="prelude-ty">Option</span>&lt;String&gt;&gt; {
<span class="kw">if let </span><span class="prelude-val">Some</span>(name) = <span class="kw-2">&amp;</span><span class="self">self</span>.package_name {
<span class="kw">return </span><span class="prelude-val">Ok</span>(<span class="prelude-val">Some</span>(name.clone()));
}

<span class="kw">if let </span><span class="prelude-val">Some</span>(pkg) = <span class="kw-2">&amp;</span>manifest.package {
<span class="kw">if let </span><span class="prelude-val">Some</span>(ns) = <span class="kw-2">&amp;</span>pkg.name {
<span class="kw">if let </span><span class="prelude-val">Some</span>(name) = ns.split(<span class="string">&#39;/&#39;</span>).nth(<span class="number">1</span>) {
<span class="kw">return </span><span class="prelude-val">Ok</span>(<span class="prelude-val">Some</span>(name.to_string()));
}
}
}

<span class="prelude-val">Ok</span>(<span class="prelude-val">None</span>)
}

<span class="kw">fn </span>get_privacy(<span class="kw-2">&amp;</span><span class="self">self</span>, manifest: <span class="kw-2">&amp;</span>Manifest) -&gt; bool {
<span class="kw">match </span><span class="kw-2">&amp;</span>manifest.package {
<span class="prelude-val">Some</span>(pkg) =&gt; pkg.private,
Expand All @@ -349,6 +393,7 @@
<span class="kw-2">&amp;</span><span class="self">self</span>,
client: <span class="kw-2">&amp;</span>WasmerClient,
namespace: <span class="kw-2">&amp;</span>str,
name: <span class="prelude-ty">Option</span>&lt;String&gt;,
package: <span class="kw-2">&amp;</span>Package,
package_hash: <span class="kw-2">&amp;</span>PackageHash,
private: bool,
Expand All @@ -361,7 +406,7 @@
<span class="kw">let </span>pb = <span class="macro">make_spinner!</span>(<span class="self">self</span>.quiet, <span class="string">&quot;Waiting for package to become available...&quot;</span>);
<span class="kw">match </span>wasmer_api::query::push_package_release(
client,
<span class="prelude-val">None</span>,
name.as_deref(),
namespace,
<span class="kw-2">&amp;</span>signed_url,
<span class="prelude-val">Some</span>(private),
Expand Down Expand Up @@ -400,9 +445,10 @@
<span class="macro">tracing::info!</span>(<span class="string">&quot;Package has hash: {hash}&quot;</span>);

<span class="kw">let </span>namespace = <span class="self">self</span>.get_namespace(client, manifest).<span class="kw">await</span><span class="question-mark">?</span>;
<span class="kw">let </span>name = <span class="self">self</span>.get_name(manifest).<span class="kw">await</span><span class="question-mark">?</span>;

<span class="kw">let </span>private = <span class="self">self</span>.get_privacy(manifest);
<span class="macro">tracing::info!</span>(<span class="string">&quot;If published, package privacy is {private}&quot;</span>);
<span class="macro">tracing::info!</span>(<span class="string">&quot;If published, package privacy is {private}, namespace is {namespace} and name is {name:?}&quot;</span>);

<span class="kw">let </span>pb = <span class="macro">make_spinner!</span>(
<span class="self">self</span>.quiet,
Expand All @@ -414,7 +460,7 @@
pb.finish_and_clear();
<span class="comment">// spinner_ok!(pb, &quot;Package not in the registry yet!&quot;);

</span><span class="self">self</span>.do_push(client, <span class="kw-2">&amp;</span>namespace, <span class="kw-2">&amp;</span>package, <span class="kw-2">&amp;</span>hash, private)
</span><span class="self">self</span>.do_push(client, <span class="kw-2">&amp;</span>namespace, name, <span class="kw-2">&amp;</span>package, <span class="kw-2">&amp;</span>hash, private)
.<span class="kw">await
</span>.map_err(on_error)<span class="question-mark">?</span>;
} <span class="kw">else </span>{
Expand Down
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 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_cranelift,wasmer_compiler_singlepass,wasmer_compiler_llvm" 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 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_cranelift,wasmer_compiler_singlepass,wasmer_compiler_llvm" 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 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_cranelift,wasmer_compiler_singlepass,wasmer_compiler_llvm" 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 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_cranelift,wasmer_compiler_singlepass,wasmer_compiler_llvm" async></script></section></div></main></body></html>
Loading

0 comments on commit 1febee5

Please sign in to comment.