Skip to content

Commit

Permalink
deploy: de1d3c1
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr committed Aug 22, 2024
1 parent 2828837 commit 84ec488
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion numcodecs_wasm_guest/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="CI Status MSRV Latest Version Rust Doc Crate Rust Doc Main"><title>numcodecs_wasm_guest - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b25d77b18a16a9a4.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="numcodecs_wasm_guest" data-themes="" data-resource-suffix="" data-rustdoc-version="1.82.0-nightly (a32d4a0e8 2024-08-21)" data-channel="nightly" data-search-js="search-ef54e092fea9c776.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-cb0df477c2d67d00.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../numcodecs_wasm_guest/index.html">numcodecs_<wbr>wasm_<wbr>guest</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section><ul class="block"><li><a href="#macros">Macros</a></li></ul></section></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Crate <a class="mod" href="#">numcodecs_wasm_guest</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/numcodecs_wasm_guest/lib.rs.html#1-155">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p><a href="https://github.com/juntyr/numcodecs-rs/actions/workflows/ci.yml?query=branch%3Amain"><img src="https://img.shields.io/github/actions/workflow/status/juntyr/numcodecs-rs/ci.yml?branch=main" alt="CI Status" /></a> <a href="https://github.com/juntyr/numcodecs-rs"><img src="https://img.shields.io/badge/MSRV-1.76.0-blue" alt="MSRV" /></a> <a href="https://crates.io/crates/numcodecs-wasm-guest"><img src="https://img.shields.io/crates/v/numcodecs-wasm-guest" alt="Latest Version" /></a> <a href="https://docs.rs/numcodecs-wasm-guest/"><img src="https://img.shields.io/docsrs/numcodecs-wasm-guest" alt="Rust Doc Crate" /></a> <a href="https://juntyr.github.io/numcodecs-rs/numcodecs_wasm_guest"><img src="https://img.shields.io/badge/docs-main-blue" alt="Rust Doc Main" /></a></p>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="CI Status MSRV Latest Version Rust Doc Crate Rust Doc Main"><title>numcodecs_wasm_guest - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b25d77b18a16a9a4.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="numcodecs_wasm_guest" data-themes="" data-resource-suffix="" data-rustdoc-version="1.82.0-nightly (a32d4a0e8 2024-08-21)" data-channel="nightly" data-search-js="search-ef54e092fea9c776.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-cb0df477c2d67d00.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../numcodecs_wasm_guest/index.html">numcodecs_<wbr>wasm_<wbr>guest</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section><ul class="block"><li><a href="#macros">Macros</a></li></ul></section></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Crate <a class="mod" href="#">numcodecs_wasm_guest</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/numcodecs_wasm_guest/lib.rs.html#1-157">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p><a href="https://github.com/juntyr/numcodecs-rs/actions/workflows/ci.yml?query=branch%3Amain"><img src="https://img.shields.io/github/actions/workflow/status/juntyr/numcodecs-rs/ci.yml?branch=main" alt="CI Status" /></a> <a href="https://github.com/juntyr/numcodecs-rs"><img src="https://img.shields.io/badge/MSRV-1.76.0-blue" alt="MSRV" /></a> <a href="https://crates.io/crates/numcodecs-wasm-guest"><img src="https://img.shields.io/crates/v/numcodecs-wasm-guest" alt="Latest Version" /></a> <a href="https://docs.rs/numcodecs-wasm-guest/"><img src="https://img.shields.io/docsrs/numcodecs-wasm-guest" alt="Rust Doc Crate" /></a> <a href="https://juntyr.github.io/numcodecs-rs/numcodecs_wasm_guest"><img src="https://img.shields.io/badge/docs-main-blue" alt="Rust Doc Main" /></a></p>
<p>wasm32-wasi guest-side bindings for the <a href="https://juntyr.github.io/numcodecs-rs/numcodecs/index.html" title="mod numcodecs"><code>numcodecs</code></a> API, which allows you
to export one <a href="https://juntyr.github.io/numcodecs-rs/numcodecs/codec/trait.StaticCodec.html" title="trait numcodecs::codec::StaticCodec"><code>StaticCodec</code></a> from a WASM component.</p>
</div></details><h2 id="macros" class="section-header">Macros<a href="#macros" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="macro" href="macro.export_codec.html" title="macro numcodecs_wasm_guest::export_codec">export_<wbr>codec</a></div><div class="desc docblock-short">Export a <a href="https://juntyr.github.io/numcodecs-rs/numcodecs/codec/trait.StaticCodec.html" title="trait numcodecs::codec::StaticCodec"><code>StaticCodec</code></a> type using the WASM component model.</div></li></ul></section></div></main></body></html>
4 changes: 2 additions & 2 deletions numcodecs_wasm_guest/macro.export_codec.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Export a `StaticCodec` type using the WASM component model."><title>export_codec in numcodecs_wasm_guest - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b25d77b18a16a9a4.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="numcodecs_wasm_guest" data-themes="" data-resource-suffix="" data-rustdoc-version="1.82.0-nightly (a32d4a0e8 2024-08-21)" data-channel="nightly" data-search-js="search-ef54e092fea9c776.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-cb0df477c2d67d00.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../numcodecs_wasm_guest/index.html">numcodecs_<wbr>wasm_<wbr>guest</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="index.html">numcodecs_wasm_guest</a>::<wbr><a class="macro" href="#">export_codec</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/numcodecs_wasm_guest/lib.rs.html#76-87">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules!</span> export_codec {
(<span class="macro-nonterminal">$codec</span>:ident) =&gt; { ... };
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Export a `StaticCodec` type using the WASM component model."><title>export_codec in numcodecs_wasm_guest - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b25d77b18a16a9a4.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="numcodecs_wasm_guest" data-themes="" data-resource-suffix="" data-rustdoc-version="1.82.0-nightly (a32d4a0e8 2024-08-21)" data-channel="nightly" data-search-js="search-ef54e092fea9c776.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-cb0df477c2d67d00.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-3b12f09e550e0385.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../numcodecs_wasm_guest/index.html">numcodecs_<wbr>wasm_<wbr>guest</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="index.html">numcodecs_wasm_guest</a>::<wbr><a class="macro" href="#">export_codec</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/numcodecs_wasm_guest/lib.rs.html#76-89">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules!</span> export_codec {
(<span class="macro-nonterminal">$codec</span>:ty) =&gt; { ... };
}</pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Export a <a href="https://juntyr.github.io/numcodecs-rs/numcodecs/codec/trait.StaticCodec.html" title="trait numcodecs::codec::StaticCodec"><code>StaticCodec</code></a> type using the WASM component model.</p>

<div class="example-wrap ignore"><a href="#" class="tooltip" title="This example is not tested"></a><pre class="rust rust-example-rendered"><code>
Expand Down
10 changes: 7 additions & 3 deletions src/numcodecs_wasm_guest/lib.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@
<a href="#153" id="153">153</a>
<a href="#154" id="154">154</a>
<a href="#155" id="155">155</a>
<a href="#156" id="156">156</a>
<a href="#157" id="157">157</a>
</pre></div><pre class="rust"><code><span class="doccomment">//! [![CI Status]][workflow] [![MSRV]][repo] [![Latest Version]][crates.io] [![Rust Doc Crate]][docs.rs] [![Rust Doc Main]][docs]
//!
//! [CI Status]: https://img.shields.io/github/actions/workflow/status/juntyr/numcodecs-rs/ci.yml?branch=main
Expand Down Expand Up @@ -229,16 +231,18 @@
/// export_codec!(MyCodec);
/// ```
</span><span class="macro">macro_rules!</span> <a href="../../numcodecs_wasm_guest/macro.export_codec.html">export_codec</a> {
(<span class="macro-nonterminal">$codec</span>:ident) =&gt; {
(<span class="macro-nonterminal">$codec</span>:ty) =&gt; {{
<span class="kw">type </span>Codec = <span class="macro-nonterminal">$codec</span>;

<span class="kw">const _</span>: () = {
<span class="kw">const fn </span>can_only_export_static_codec&lt;T: <span class="macro-nonterminal">$crate::numcodecs::StaticCodec</span>&gt;() {}

can_only_export_static_codec::&lt;<span class="macro-nonterminal">$codec</span>&gt;()
};

<span class="attr">#[cfg(target_arch = <span class="string">"wasm32"</span>)]
</span><span class="macro-nonterminal">$</span><span class="macro">crate::bindings::export!</span>(<span class="macro-nonterminal">$codec </span>with_types_in <span class="macro-nonterminal">$crate::bindings</span>);
};
</span><span class="macro-nonterminal">$</span><span class="macro">crate::bindings::export!</span>(<span class="macro-nonterminal">Codec </span>with_types_in <span class="macro-nonterminal">$crate::bindings</span>);
}};
}

<span class="attr">#[cfg(target_arch = <span class="string">"wasm32"</span>)]
Expand Down

0 comments on commit 84ec488

Please sign in to comment.