Skip to content

Commit

Permalink
deploy: 36bccf5
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-maron committed Sep 24, 2024
1 parent d4984e0 commit 581207f
Show file tree
Hide file tree
Showing 19 changed files with 71 additions and 61 deletions.
2 changes: 1 addition & 1 deletion search-index.js

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion src/tide_disco/app.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,11 @@
<a href="#1805" id="1805">1805</a>
<a href="#1806" id="1806">1806</a>
<a href="#1807" id="1807">1807</a>
<a href="#1808" id="1808">1808</a>
<a href="#1809" id="1809">1809</a>
<a href="#1810" id="1810">1810</a>
<a href="#1811" id="1811">1811</a>
<a href="#1812" id="1812">1812</a>
</pre></div><pre class="rust"><code><span class="comment">// Copyright (c) 2022 Espresso Systems (espressosys.com)
// This file is part of the tide-disco library.

Expand All @@ -1829,6 +1834,7 @@
<span class="kw">use </span>include_dir::{include_dir, Dir};
<span class="kw">use </span>lazy_static::lazy_static;
<span class="kw">use </span>maud::{html, PreEscaped};
<span class="kw">use </span>rand::Rng;
<span class="kw">use </span>semver::Version;
<span class="kw">use </span>serde::{Deserialize, Serialize};
<span class="kw">use </span>serde_with::{serde_as, DisplayFromStr};
Expand Down Expand Up @@ -2076,10 +2082,14 @@
<span class="kw">static </span>DEFAULT_PUBLIC_DIR: Dir&lt;<span class="lifetime">'_</span>&gt; = <span class="macro">include_dir!</span>(<span class="string">"$CARGO_MANIFEST_DIR/public/media"</span>);
<span class="macro">lazy_static!</span> {
<span class="kw">static </span><span class="kw-2">ref </span>DEFAULT_PUBLIC_PATH: PathBuf = {
<span class="comment">// Generate a random number to index into `/tmp` with
</span><span class="kw">let </span><span class="kw-2">mut </span>rng = rand::thread_rng();
<span class="kw">let </span>index: u64 = rng.gen();

<span class="comment">// The contents of the default public directory are included in the binary. The first time
// the default directory is used, if ever, we extract them to a directory on the host file
// system and return the path to that directory.
</span><span class="kw">let </span>path = PathBuf::from(<span class="string">"/tmp/tide-disco/public/media"</span>);
</span><span class="kw">let </span>path = PathBuf::from(<span class="macro">format!</span>(<span class="string">"/tmp/tide-disco/{}/public/media"</span>, index));
<span class="comment">// If the path already exists, move it aside so we can update it.
</span><span class="kw">let _ </span>= fs::rename(<span class="kw-2">&amp;</span>path, path.with_extension(<span class="string">"old"</span>));
DEFAULT_PUBLIC_DIR.extract(<span class="kw-2">&amp;</span>path).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion tide_disco/api/enum.ApiError.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions tide_disco/app/enum.AppError.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tide_disco/app/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="API documentation for the Rust `app` mod in crate `tide_disco`."><title>tide_disco::app - 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-c5d6553a23f1e5a6.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="tide_disco" data-themes="" data-resource-suffix="" data-rustdoc-version="1.81.0 (eeb90cda1 2024-09-04)" data-channel="1.81.0" data-search-js="search-d234aafac6c221dd.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-d2fab2bf619172d3.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-df360f571f6edeae.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"><!--[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="../../tide_disco/index.html">tide_disco</a><span class="version">0.9.2</span></h2></div><h2 class="location"><a href="#">Module app</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li></ul></section><h2><a href="../index.html">In crate tide_disco</a></h2></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>Module <a href="../index.html">tide_disco</a>::<wbr><a class="mod" href="#">app</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/tide_disco/app.rs.html#7-1807">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.App.html" title="struct tide_disco::app::App">App</a></div><div class="desc docblock-short">A tide-disco server application.</div></li><li><div class="item-name"><a class="struct" href="struct.AppHealth.html" title="struct tide_disco::app::AppHealth">AppHealth</a></div><div class="desc docblock-short">The health status of an application.</div></li><li><div class="item-name"><a class="struct" href="struct.AppVersion.html" title="struct tide_disco::app::AppVersion">AppVersion</a></div><div class="desc docblock-short">Version information about an application.</div></li><li><div class="item-name"><a class="struct" href="struct.Module.html" title="struct tide_disco::app::Module">Module</a></div><div class="desc docblock-short">RAII guard to ensure a module is registered after it is configured.</div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.AppError.html" title="enum tide_disco::app::AppError">AppError</a></div><div class="desc docblock-short">An error encountered while building an <a href="struct.App.html" title="struct tide_disco::app::App">App</a>.</div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.Listener.html" title="trait tide_disco::app::Listener">Listener</a></div><div class="desc docblock-short">The Listener trait represents an implementation of http transport for a tide
<!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="API documentation for the Rust `app` mod in crate `tide_disco`."><title>tide_disco::app - 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-c5d6553a23f1e5a6.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="tide_disco" data-themes="" data-resource-suffix="" data-rustdoc-version="1.81.0 (eeb90cda1 2024-09-04)" data-channel="1.81.0" data-search-js="search-d234aafac6c221dd.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-d2fab2bf619172d3.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-df360f571f6edeae.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"><!--[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="../../tide_disco/index.html">tide_disco</a><span class="version">0.9.2</span></h2></div><h2 class="location"><a href="#">Module app</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li></ul></section><h2><a href="../index.html">In crate tide_disco</a></h2></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>Module <a href="../index.html">tide_disco</a>::<wbr><a class="mod" href="#">app</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/tide_disco/app.rs.html#7-1812">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.App.html" title="struct tide_disco::app::App">App</a></div><div class="desc docblock-short">A tide-disco server application.</div></li><li><div class="item-name"><a class="struct" href="struct.AppHealth.html" title="struct tide_disco::app::AppHealth">AppHealth</a></div><div class="desc docblock-short">The health status of an application.</div></li><li><div class="item-name"><a class="struct" href="struct.AppVersion.html" title="struct tide_disco::app::AppVersion">AppVersion</a></div><div class="desc docblock-short">Version information about an application.</div></li><li><div class="item-name"><a class="struct" href="struct.Module.html" title="struct tide_disco::app::Module">Module</a></div><div class="desc docblock-short">RAII guard to ensure a module is registered after it is configured.</div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.AppError.html" title="enum tide_disco::app::AppError">AppError</a></div><div class="desc docblock-short">An error encountered while building an <a href="struct.App.html" title="struct tide_disco::app::App">App</a>.</div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.Listener.html" title="trait tide_disco::app::Listener">Listener</a></div><div class="desc docblock-short">The Listener trait represents an implementation of http transport for a tide
application. In order to provide a Listener to tide, you will also need to
implement at least one <a href="trait.ToListener.html" title="trait tide_disco::app::ToListener"><code>ToListener</code></a> that
outputs your Listener type.</div></li><li><div class="item-name"><a class="trait" href="trait.ToListener.html" title="trait tide_disco::app::ToListener">ToListener</a></div><div class="desc docblock-short">ToListener represents any type that can be converted into a
Expand Down
Loading

0 comments on commit 581207f

Please sign in to comment.