blazzy / podman-rest-client

MIT License
6 stars 1 forks source link

Docs.rs build fails resulting in no documentation pages #18

Closed kanpov closed 3 months ago

kanpov commented 3 months ago

Pertinent error:

[INFO] [stderr] error[E0658]: `#[doc(cfg)]` is experimental
[INFO] [stderr]   --> src/podman_rest_client.rs:56:24
[INFO] [stderr]    |
[INFO] [stderr] 56 |     #[cfg_attr(docsrs, doc(cfg(feature = "ssh")))]
[INFO] [stderr]    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: see issue #43781 <https://github.com/rust-lang/rust/issues/43781> for more information
[INFO] [stderr]    = help: add `#![feature(doc_cfg)]` to the crate attributes to enable
[INFO] [stderr]    = note: this compiler was built on 2024-08-17; consider upgrading it if it is out of date
[INFO] [stderr] 
[INFO] [stderr] For more information about this error, try `rustc --explain E0658`.
[INFO] [stderr] error: could not document `podman-rest-client`
[INFO] running `Command { std: "docker" "inspect" "78ce83a3c1ac927a03b9203d5ab24e19ad06ef13be6c1ea8906e63d1a163021d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "78ce83a3c1ac927a03b9203d5ab24e19ad06ef13be6c1ea8906e63d1a163021d", kill_on_drop: false }`
[INFO] [stdout] 78ce83a3c1ac927a03b9203d5ab24e19ad06ef13be6c1ea8906e63d1a163021d
blazzy commented 3 months ago

Thanks. Fixed.

Looks like I flubbed it by not trying to build docs locally using rust nightly. There is now a docs-build ci job that mimics docsrs and will hopefully catch this next time.