Skip to content

Commit 936804e

Browse files
committed
chore: Fix warnings during docs build
and make sure that `cross_toml` shows up as part of the official documentation along the way.
1 parent 5b3cd39 commit 936804e

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

src/cross_toml.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
#![doc = include_str!("../docs/config_file.md")]
1+
//! The `Cross.toml` configuration file.
2+
//!
3+
//! For a detailed user documentation of the file and the contents please refer to the [docs in the
4+
//! repo][1].
5+
//!
6+
//! [1]: https://github.com/har7an/cross/blob/docs/restructure-docs-folder/docs/config_file.md
27
38
use crate::docker::custom::PreBuild;
49
use crate::docker::PossibleImage;

src/docker/engine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl EngineType {
5151
/// Some container engines, especially podman, do not support the `type`
5252
/// key of `--cache-from` during the image build steps. They also do
5353
/// not support any tags for the `--cache-from` steps either. See:
54-
/// https://docs.podman.io/en/latest/markdown/podman-build.1.html#cache-from
54+
/// <https://docs.podman.io/en/latest/markdown/podman-build.1.html#cache-from>
5555
#[must_use]
5656
pub const fn supports_cache_from_type(&self) -> bool {
5757
matches!(self, Self::Docker | Self::Nerdctl)

src/docker/image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl std::fmt::Display for PossibleImage {
103103
}
104104
/// The architecture/platform to use in the image
105105
///
106-
/// https://github.com/containerd/containerd/blob/release/1.6/platforms/platforms.go#L63
106+
/// <https://github.com/containerd/containerd/blob/release/1.6/platforms/platforms.go#L63>
107107
#[derive(Debug, Clone, PartialEq, Eq, serde::Deserialize)]
108108
#[serde(try_from = "String")]
109109
pub struct ImagePlatform {

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
//! <strong>⚠️ Warning:</strong> The cross library is for internal
99
//! use only: only the command-line interface is stable. The library
1010
//! may change at any point for any reason. For documentation on the
11-
//! CLI, please see the repository <a href="https://github.com/cross-rs/cross">README</a>
11+
//! CLI, please see the repository <a href="https://github.com/cross-rs/cross">README</a>,
12+
//! <a href="https://github.com/cross-rs/cross/tree/main/docs">docs folder</a>
1213
//! or the <a href="https://github.com/cross-rs/cross/wiki">wiki</a>.
1314
//! </p>
1415
@@ -33,7 +34,7 @@ mod tests;
3334
pub mod cargo;
3435
pub mod cli;
3536
pub mod config;
36-
mod cross_toml;
37+
pub mod cross_toml;
3738
pub mod docker;
3839
pub mod errors;
3940
mod extensions;

0 commit comments

Comments
 (0)