Skip to content

Commit

Permalink
chore: Fix warnings during docs build
Browse files Browse the repository at this point in the history
and make sure that `cross_toml` shows up as part of the official
documentation along the way.
  • Loading branch information
har7an committed Feb 20, 2024
1 parent 5b3cd39 commit 936804e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
7 changes: 6 additions & 1 deletion src/cross_toml.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#![doc = include_str!("../docs/config_file.md")]
//! The `Cross.toml` configuration file.
//!
//! For a detailed user documentation of the file and the contents please refer to the [docs in the
//! repo][1].
//!
//! [1]: https://github.com/har7an/cross/blob/docs/restructure-docs-folder/docs/config_file.md
use crate::docker::custom::PreBuild;
use crate::docker::PossibleImage;
Expand Down
2 changes: 1 addition & 1 deletion src/docker/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl EngineType {
/// Some container engines, especially podman, do not support the `type`
/// key of `--cache-from` during the image build steps. They also do
/// not support any tags for the `--cache-from` steps either. See:
/// https://docs.podman.io/en/latest/markdown/podman-build.1.html#cache-from
/// <https://docs.podman.io/en/latest/markdown/podman-build.1.html#cache-from>
#[must_use]
pub const fn supports_cache_from_type(&self) -> bool {
matches!(self, Self::Docker | Self::Nerdctl)
Expand Down
2 changes: 1 addition & 1 deletion src/docker/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ impl std::fmt::Display for PossibleImage {
}
/// The architecture/platform to use in the image
///
/// https://github.com/containerd/containerd/blob/release/1.6/platforms/platforms.go#L63
/// <https://github.com/containerd/containerd/blob/release/1.6/platforms/platforms.go#L63>
#[derive(Debug, Clone, PartialEq, Eq, serde::Deserialize)]
#[serde(try_from = "String")]
pub struct ImagePlatform {
Expand Down
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
//! <strong>⚠️ Warning:</strong> The cross library is for internal
//! use only: only the command-line interface is stable. The library
//! may change at any point for any reason. For documentation on the
//! CLI, please see the repository <a href="https://github.com/cross-rs/cross">README</a>
//! CLI, please see the repository <a href="https://github.com/cross-rs/cross">README</a>,
//! <a href="https://github.com/cross-rs/cross/tree/main/docs">docs folder</a>
//! or the <a href="https://github.com/cross-rs/cross/wiki">wiki</a>.
//! </p>
Expand All @@ -33,7 +34,7 @@ mod tests;
pub mod cargo;
pub mod cli;
pub mod config;
mod cross_toml;
pub mod cross_toml;
pub mod docker;
pub mod errors;
mod extensions;
Expand Down

0 comments on commit 936804e

Please sign in to comment.