Skip to content

Commit

Permalink
deploy: c9bfce6
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Jul 26, 2024
1 parent 37cf9aa commit 70e4a40
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 22 deletions.
8 changes: 3 additions & 5 deletions main/architecture/runner.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,12 @@ <h1 id="custom-runner"><a class="header" href="#custom-runner">Custom <code>Runn
<p><a href="https://docs.rs/cucumber/*/cucumber/trait.Runner.html"><code>Runner</code></a> represents anything that transforms a <a href="https://docs.rs/futures/*/futures/stream/trait.Stream.html"><code>Stream</code></a> of <a href="https://cucumber.io/docs/gherkin/reference#feature">feature</a>s into a <a href="https://docs.rs/futures/*/futures/stream/trait.Stream.html"><code>Stream</code></a> of <a href="https://docs.rs/cucumber/*/cucumber/event/enum.Cucumber.html">cucumber events</a>.</p>
<pre><pre class="playground"><code class="language-rust edition2021"><span class="boring">extern crate cucumber;
</span><span class="boring">extern crate futures;
</span><span class="boring">extern crate once_cell;
</span><span class="boring">extern crate tokio;
</span><span class="boring">
</span><span class="boring">use std::{
</span><span class="boring"> panic::{self, AssertUnwindSafe},
</span><span class="boring"> path::PathBuf,
</span><span class="boring"> sync::Arc,
</span><span class="boring"> sync::{Arc, LazyLock},
</span><span class="boring"> time::Duration,
</span><span class="boring">};
</span><span class="boring">
Expand All @@ -195,7 +194,6 @@ <h1 id="custom-runner"><a class="header" href="#custom-runner">Custom <code>Runn
</span><span class="boring"> future::{self, FutureExt as _},
</span><span class="boring"> stream::{self, LocalBoxStream, Stream, StreamExt as _, TryStreamExt as _},
</span><span class="boring">};
</span><span class="boring">use once_cell::sync::Lazy;
</span><span class="boring">use tokio::time::sleep;
</span><span class="boring">
</span><span class="boring">#[derive(Clone, Copy, Debug, Default)]
Expand Down Expand Up @@ -305,8 +303,8 @@ <h1 id="custom-runner"><a class="header" href="#custom-runner">Custom <code>Runn
impl CustomRunner {
fn steps_fns() -&gt; &amp;'static step::Collection&lt;AnimalWorld&gt; {
// Wire the static collection of step matching functions.
static STEPS: Lazy&lt;step::Collection&lt;AnimalWorld&gt;&gt; =
Lazy::new(AnimalWorld::collection);
static STEPS: LazyLock&lt;step::Collection&lt;AnimalWorld&gt;&gt; =
LazyLock::new(AnimalWorld::collection);
&amp;STEPS
}

Expand Down
8 changes: 3 additions & 5 deletions main/architecture/writer.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,12 @@ <h1 id="custom-writer"><a class="header" href="#custom-writer">Custom <code>Writ
<p><a href="https://docs.rs/cucumber/*/cucumber/writer/index.html"><code>Writer</code></a> represents anything that consumes a <a href="https://docs.rs/futures/*/futures/stream/trait.Stream.html"><code>Stream</code></a> of <a href="https://docs.rs/cucumber/*/cucumber/event/enum.Cucumber.html">cucumber events</a>.</p>
<pre><pre class="playground"><code class="language-rust edition2021"><span class="boring">extern crate cucumber;
</span><span class="boring">extern crate futures;
</span><span class="boring">extern crate once_cell;
</span><span class="boring">extern crate tokio;
</span><span class="boring">
</span><span class="boring">use std::{
</span><span class="boring"> panic::{self, AssertUnwindSafe},
</span><span class="boring"> path::PathBuf,
</span><span class="boring"> sync::Arc,
</span><span class="boring"> sync::{Arc, LazyLock},
</span><span class="boring"> time::Duration,
</span><span class="boring">};
</span><span class="boring">
Expand All @@ -196,7 +195,6 @@ <h1 id="custom-writer"><a class="header" href="#custom-writer">Custom <code>Writ
</span><span class="boring"> future::{self, FutureExt as _},
</span><span class="boring"> stream::{self, LocalBoxStream, Stream, StreamExt as _, TryStreamExt as _},
</span><span class="boring">};
</span><span class="boring">use once_cell::sync::Lazy;
</span><span class="boring">use tokio::time::sleep;
</span><span class="boring">
</span><span class="boring">#[derive(Clone, Copy, Debug, Default)]
Expand Down Expand Up @@ -305,8 +303,8 @@ <h1 id="custom-writer"><a class="header" href="#custom-writer">Custom <code>Writ
</span><span class="boring">
</span><span class="boring">impl CustomRunner {
</span><span class="boring"> fn steps_fns() -&gt; &amp;'static step::Collection&lt;AnimalWorld&gt; {
</span><span class="boring"> static STEPS: Lazy&lt;step::Collection&lt;AnimalWorld&gt;&gt; =
</span><span class="boring"> Lazy::new(AnimalWorld::collection);
</span><span class="boring"> static STEPS: LazyLock&lt;step::Collection&lt;AnimalWorld&gt;&gt; =
</span><span class="boring"> LazyLock::new(AnimalWorld::collection);
</span><span class="boring"> &amp;STEPS
</span><span class="boring"> }
</span><span class="boring">
Expand Down
16 changes: 6 additions & 10 deletions main/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -3184,13 +3184,12 @@ <h2 id="libtest-support"><a class="header" href="#libtest-support"><code>libtest
<p><a href="https://docs.rs/cucumber/*/cucumber/trait.Runner.html"><code>Runner</code></a> represents anything that transforms a <a href="https://docs.rs/futures/*/futures/stream/trait.Stream.html"><code>Stream</code></a> of <a href="https://cucumber.io/docs/gherkin/reference#feature">feature</a>s into a <a href="https://docs.rs/futures/*/futures/stream/trait.Stream.html"><code>Stream</code></a> of <a href="https://docs.rs/cucumber/*/cucumber/event/enum.Cucumber.html">cucumber events</a>.</p>
<pre><pre class="playground"><code class="language-rust edition2021"><span class="boring">extern crate cucumber;
</span><span class="boring">extern crate futures;
</span><span class="boring">extern crate once_cell;
</span><span class="boring">extern crate tokio;
</span><span class="boring">
</span><span class="boring">use std::{
</span><span class="boring"> panic::{self, AssertUnwindSafe},
</span><span class="boring"> path::PathBuf,
</span><span class="boring"> sync::Arc,
</span><span class="boring"> sync::{Arc, LazyLock},
</span><span class="boring"> time::Duration,
</span><span class="boring">};
</span><span class="boring">
Expand All @@ -3201,7 +3200,6 @@ <h2 id="libtest-support"><a class="header" href="#libtest-support"><code>libtest
</span><span class="boring"> future::{self, FutureExt as _},
</span><span class="boring"> stream::{self, LocalBoxStream, Stream, StreamExt as _, TryStreamExt as _},
</span><span class="boring">};
</span><span class="boring">use once_cell::sync::Lazy;
</span><span class="boring">use tokio::time::sleep;
</span><span class="boring">
</span><span class="boring">#[derive(Clone, Copy, Debug, Default)]
Expand Down Expand Up @@ -3311,8 +3309,8 @@ <h2 id="libtest-support"><a class="header" href="#libtest-support"><code>libtest
impl CustomRunner {
fn steps_fns() -&gt; &amp;'static step::Collection&lt;AnimalWorld&gt; {
// Wire the static collection of step matching functions.
static STEPS: Lazy&lt;step::Collection&lt;AnimalWorld&gt;&gt; =
Lazy::new(AnimalWorld::collection);
static STEPS: LazyLock&lt;step::Collection&lt;AnimalWorld&gt;&gt; =
LazyLock::new(AnimalWorld::collection);
&amp;STEPS
}

Expand Down Expand Up @@ -3443,13 +3441,12 @@ <h2 id="libtest-support"><a class="header" href="#libtest-support"><code>libtest
<p><a href="https://docs.rs/cucumber/*/cucumber/writer/index.html"><code>Writer</code></a> represents anything that consumes a <a href="https://docs.rs/futures/*/futures/stream/trait.Stream.html"><code>Stream</code></a> of <a href="https://docs.rs/cucumber/*/cucumber/event/enum.Cucumber.html">cucumber events</a>.</p>
<pre><pre class="playground"><code class="language-rust edition2021"><span class="boring">extern crate cucumber;
</span><span class="boring">extern crate futures;
</span><span class="boring">extern crate once_cell;
</span><span class="boring">extern crate tokio;
</span><span class="boring">
</span><span class="boring">use std::{
</span><span class="boring"> panic::{self, AssertUnwindSafe},
</span><span class="boring"> path::PathBuf,
</span><span class="boring"> sync::Arc,
</span><span class="boring"> sync::{Arc, LazyLock},
</span><span class="boring"> time::Duration,
</span><span class="boring">};
</span><span class="boring">
Expand All @@ -3461,7 +3458,6 @@ <h2 id="libtest-support"><a class="header" href="#libtest-support"><code>libtest
</span><span class="boring"> future::{self, FutureExt as _},
</span><span class="boring"> stream::{self, LocalBoxStream, Stream, StreamExt as _, TryStreamExt as _},
</span><span class="boring">};
</span><span class="boring">use once_cell::sync::Lazy;
</span><span class="boring">use tokio::time::sleep;
</span><span class="boring">
</span><span class="boring">#[derive(Clone, Copy, Debug, Default)]
Expand Down Expand Up @@ -3570,8 +3566,8 @@ <h2 id="libtest-support"><a class="header" href="#libtest-support"><code>libtest
</span><span class="boring">
</span><span class="boring">impl CustomRunner {
</span><span class="boring"> fn steps_fns() -&gt; &amp;'static step::Collection&lt;AnimalWorld&gt; {
</span><span class="boring"> static STEPS: Lazy&lt;step::Collection&lt;AnimalWorld&gt;&gt; =
</span><span class="boring"> Lazy::new(AnimalWorld::collection);
</span><span class="boring"> static STEPS: LazyLock&lt;step::Collection&lt;AnimalWorld&gt;&gt; =
</span><span class="boring"> LazyLock::new(AnimalWorld::collection);
</span><span class="boring"> &amp;STEPS
</span><span class="boring"> }
</span><span class="boring">
Expand Down
2 changes: 1 addition & 1 deletion main/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion main/searchindex.json

Large diffs are not rendered by default.

0 comments on commit 70e4a40

Please sign in to comment.