Skip to content

Commit

Permalink
deploy: 2f1f894
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr committed Oct 13, 2024
1 parent b96c0d1 commit 7f06dd6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 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-b0742ba02757f159.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.83.0-nightly (6b9676b45 2024-10-12)" data-channel="nightly" data-search-js="search-e056c65ede92db13.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="../static.files/storage-1d39b6787ed640ff.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-f070b9041d14864c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-0111fcff984fae8f.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.2.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 id="rustdoc-toc"><h3><a href="#macros">Crate Items</a></h3><ul class="block"><li><a href="#macros" title="Macros">Macros</a></li></ul></section><div id="rustdoc-modnav"></div></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 <span>numcodecs_wasm_guest</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/numcodecs_wasm_guest/lib.rs.html#1-182">source</a> </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-b0742ba02757f159.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.83.0-nightly (6b9676b45 2024-10-12)" data-channel="nightly" data-search-js="search-e056c65ede92db13.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="../static.files/storage-1d39b6787ed640ff.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-f070b9041d14864c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-0111fcff984fae8f.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.2.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 id="rustdoc-toc"><h3><a href="#macros">Crate Items</a></h3><ul class="block"><li><a href="#macros" title="Macros">Macros</a></li></ul></section><div id="rustdoc-modnav"></div></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 <span>numcodecs_wasm_guest</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/numcodecs_wasm_guest/lib.rs.html#1-185">source</a> </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 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>
2 changes: 1 addition & 1 deletion numcodecs_wasm_guest/macro.export_codec.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="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-b0742ba02757f159.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.83.0-nightly (6b9676b45 2024-10-12)" data-channel="nightly" data-search-js="search-e056c65ede92db13.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="../static.files/storage-1d39b6787ed640ff.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-f070b9041d14864c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-0111fcff984fae8f.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.2.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"></div></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"><span class="rustdoc-breadcrumbs"><a href="index.html">numcodecs_wasm_guest</a></span><h1>Macro <span class="macro">export_codec</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/numcodecs_wasm_guest/lib.rs.html#81-93">source</a> </span></div><pre class="rust item-decl"><span class="macro">macro_rules!</span> export_codec {
<!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-b0742ba02757f159.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.83.0-nightly (6b9676b45 2024-10-12)" data-channel="nightly" data-search-js="search-e056c65ede92db13.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="../static.files/storage-1d39b6787ed640ff.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-f070b9041d14864c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-0111fcff984fae8f.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.2.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"></div></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"><span class="rustdoc-breadcrumbs"><a href="index.html">numcodecs_wasm_guest</a></span><h1>Macro <span class="macro">export_codec</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/numcodecs_wasm_guest/lib.rs.html#81-96">source</a> </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>

Expand Down
16 changes: 11 additions & 5 deletions src/numcodecs_wasm_guest/lib.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@
<a href="#179" id="179">179</a>
<a href="#180" id="180">180</a>
<a href="#181" id="181">181</a>
<a href="#182" id="182">182</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]
<a href="#182" id="182">182</a>
<a href="#183" id="183">183</a>
<a href="#184" id="184">184</a>
<a href="#185" id="185">185</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
//! [workflow]: https://github.com/juntyr/numcodecs-rs/actions/workflows/ci.yml?query=branch%3Amain
Expand Down Expand Up @@ -262,14 +265,17 @@
/// ```
</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>:ty) =&gt; {
<span class="kw">const _</span>: () = {
<span class="attr">#[cfg(target_arch = <span class="string">"wasm32"</span>)]
</span><span class="kw">const _</span>: () = {
<span class="kw">type </span>Codec = <span class="macro-nonterminal">$codec</span>;

<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 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="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;Codec&gt;()

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

0 comments on commit 7f06dd6

Please sign in to comment.