Skip to content

Indicate correct Minimum Supported Rust Version (MSRV) #159

Closed
@piotr-sk

Description

@piotr-sk

The crate in version 0.23 is released with MSRV of 1.56, but a compilation with Rust lower than 1.77 fails.

Screenshot from 2024-11-28 08-22-01

$ cargo build
...
   Compiling k8s-openapi v0.23.0
error: unsupported output in build script of `k8s-openapi v0.23.0`: `cargo::rerun-if-env-changed=K8S_OPENAPI_ENABLED_VERSION`
Found a `cargo::key=value` build directive which is reserved for future use.
Either change the directive to `cargo:key=value` syntax (note the single `:`) or upgrade your version of Rust.
See https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-the-build-script for more information about build script outputs.

To be consistent I recommend to either use the old directive as indicated by the compiler or to clearly state MSRV of Rust 1.77.

Background: for some embedded applications we cannot always use the latest compiler versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions