Skip to content

Commit

Permalink
Update gh-pages from 6f768a7
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 18, 2024
1 parent 54c9372 commit 14eb07f
Show file tree
Hide file tree
Showing 43 changed files with 69 additions and 341 deletions.
2 changes: 1 addition & 1 deletion doc/doc/search-index.js

Large diffs are not rendered by default.

154 changes: 1 addition & 153 deletions doc/doc/src/xtask/internal.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -572,82 +572,6 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
<a href="#570" id="570">570</a>
<a href="#571" id="571">571</a>
<a href="#572" id="572">572</a>
<a href="#573" id="573">573</a>
<a href="#574" id="574">574</a>
<a href="#575" id="575">575</a>
<a href="#576" id="576">576</a>
<a href="#577" id="577">577</a>
<a href="#578" id="578">578</a>
<a href="#579" id="579">579</a>
<a href="#580" id="580">580</a>
<a href="#581" id="581">581</a>
<a href="#582" id="582">582</a>
<a href="#583" id="583">583</a>
<a href="#584" id="584">584</a>
<a href="#585" id="585">585</a>
<a href="#586" id="586">586</a>
<a href="#587" id="587">587</a>
<a href="#588" id="588">588</a>
<a href="#589" id="589">589</a>
<a href="#590" id="590">590</a>
<a href="#591" id="591">591</a>
<a href="#592" id="592">592</a>
<a href="#593" id="593">593</a>
<a href="#594" id="594">594</a>
<a href="#595" id="595">595</a>
<a href="#596" id="596">596</a>
<a href="#597" id="597">597</a>
<a href="#598" id="598">598</a>
<a href="#599" id="599">599</a>
<a href="#600" id="600">600</a>
<a href="#601" id="601">601</a>
<a href="#602" id="602">602</a>
<a href="#603" id="603">603</a>
<a href="#604" id="604">604</a>
<a href="#605" id="605">605</a>
<a href="#606" id="606">606</a>
<a href="#607" id="607">607</a>
<a href="#608" id="608">608</a>
<a href="#609" id="609">609</a>
<a href="#610" id="610">610</a>
<a href="#611" id="611">611</a>
<a href="#612" id="612">612</a>
<a href="#613" id="613">613</a>
<a href="#614" id="614">614</a>
<a href="#615" id="615">615</a>
<a href="#616" id="616">616</a>
<a href="#617" id="617">617</a>
<a href="#618" id="618">618</a>
<a href="#619" id="619">619</a>
<a href="#620" id="620">620</a>
<a href="#621" id="621">621</a>
<a href="#622" id="622">622</a>
<a href="#623" id="623">623</a>
<a href="#624" id="624">624</a>
<a href="#625" id="625">625</a>
<a href="#626" id="626">626</a>
<a href="#627" id="627">627</a>
<a href="#628" id="628">628</a>
<a href="#629" id="629">629</a>
<a href="#630" id="630">630</a>
<a href="#631" id="631">631</a>
<a href="#632" id="632">632</a>
<a href="#633" id="633">633</a>
<a href="#634" id="634">634</a>
<a href="#635" id="635">635</a>
<a href="#636" id="636">636</a>
<a href="#637" id="637">637</a>
<a href="#638" id="638">638</a>
<a href="#639" id="639">639</a>
<a href="#640" id="640">640</a>
<a href="#641" id="641">641</a>
<a href="#642" id="642">642</a>
<a href="#643" id="643">643</a>
<a href="#644" id="644">644</a>
<a href="#645" id="645">645</a>
<a href="#646" id="646">646</a>
<a href="#647" id="647">647</a>
<a href="#648" id="648">648</a>
</pre></div><pre class="rust"><code><span class="comment">//
// Copyright 2020 The Project Oak Authors
//
Expand All @@ -665,7 +589,7 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
//

</span><span class="kw">use </span>std::{
collections::{HashMap, HashSet},
collections::HashSet,
path::{Path, PathBuf},
time::Instant,
};
Expand Down Expand Up @@ -693,7 +617,6 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>

<span class="attr">#[derive(Subcommand, Clone, Debug)]
</span><span class="kw">pub enum </span>Command {
RunTests,
RunCargoClippy,
RunCargoDeny,
RunCargoUdeps,
Expand All @@ -711,81 +634,6 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
</span><span class="kw">pub </span>file_name: PathBuf,
}

<span class="attr">#[derive(Parser, Clone, Debug)]
</span><span class="kw">pub struct </span>RunTestsOpt {
<span class="attr">#[arg(long, help = <span class="string">"Remove generated files after running tests for each crate"</span>)]
</span><span class="kw">pub </span>cleanup: bool,
}

<span class="doccomment">/// Partial representation of Cargo manifest files.
///
/// Only the fields that are required for extracting specific information (e.g.,
/// names of fuzz targets) are included.
</span><span class="attr">#[derive(serde::Deserialize, Debug)]
</span><span class="kw">pub struct </span>CargoManifest {
<span class="attr">#[serde(default)]
</span><span class="kw">pub </span>bin: Vec&lt;CargoBinary&gt;,
<span class="attr">#[serde(default)]
</span><span class="kw">pub </span>dependencies: HashMap&lt;String, Dependency&gt;,
<span class="attr">#[serde(default)]
#[serde(rename = <span class="string">"dev-dependencies"</span>)]
</span><span class="kw">pub </span>dev_dependencies: HashMap&lt;String, Dependency&gt;,
<span class="attr">#[serde(default)]
#[serde(rename = <span class="string">"build-dependencies"</span>)]
</span><span class="kw">pub </span>build_dependencies: HashMap&lt;String, Dependency&gt;,
}

<span class="doccomment">/// Partial information about a Cargo binary, as included in a Cargo manifest.
</span><span class="attr">#[derive(serde::Deserialize, Debug)]
</span><span class="kw">pub struct </span>CargoBinary {
<span class="attr">#[serde(default)]
</span><span class="kw">pub </span>name: String,
}

<span class="doccomment">/// Partial representation of a dependency in a `Cargo.toml` file.
</span><span class="attr">#[derive(serde::Deserialize, Debug, PartialEq, PartialOrd)]
#[serde(untagged)]
</span><span class="kw">pub enum </span>Dependency {
<span class="doccomment">/// Plaintext specification of a dependency with only the version number.
</span>Text(String),
<span class="doccomment">/// Json specification of a dependency.
</span>Json(DependencySpec),
}

<span class="doccomment">/// Partial representation of a Json specification of a dependency in a
/// `Cargo.toml` file.
</span><span class="attr">#[derive(serde::Deserialize, Debug, PartialEq, PartialOrd)]
</span><span class="kw">pub struct </span>DependencySpec {
<span class="attr">#[serde(default)]
</span><span class="kw">pub </span>path: <span class="prelude-ty">Option</span>&lt;String&gt;,
}

<span class="kw">impl </span>CargoManifest {
<span class="kw">pub fn </span>all_dependencies_with_toml_path(<span class="self">self</span>) -&gt; Vec&lt;String&gt; {
<span class="kw">let </span>all_deps = <span class="macro">vec!</span>[
<span class="self">self</span>.dependencies.into_values().collect(),
<span class="self">self</span>.dev_dependencies.into_values().collect(),
<span class="self">self</span>.build_dependencies.into_values().collect(),
];
<span class="kw">let </span>all_deps: Vec&lt;Dependency&gt; = itertools::concat(all_deps);

<span class="comment">// Collect all the dependencies that specify a path.
</span>all_deps
.iter()
.map(|dep| <span class="kw">match </span>dep {
Dependency::Json(spec) =&gt; spec.path.clone(),
Dependency::Text(<span class="kw">_</span>) =&gt; <span class="prelude-val">None</span>,
})
.filter(|path| path.is_some())
.map(|path| {
<span class="kw">let </span><span class="kw-2">mut </span>path = PathBuf::from(path.unwrap());
path.push(<span class="string">"Cargo.toml"</span>);
path.to_str().unwrap().to_string()
})
.collect()
}
}

<span class="doccomment">/// A construct to keep track of the status of the execution. It only cares
/// about the top-level steps.
</span><span class="attr">#[derive(Clone)]
Expand Down
2 changes: 1 addition & 1 deletion doc/doc/trait.impl/clap_builder/derive/trait.Args.js

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.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion doc/doc/trait.impl/clap_builder/derive/trait.Parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 14eb07f

Please sign in to comment.