Skip to content

Investigate hints.mostly-unused #167

@Arnavion

Description

@Arnavion

https://blog.rust-lang.org/inside-rust/2025/07/15/call-for-testing-hint-mostly-unused/

Seems very appropriate for k8s-openapi.

[hints]
mostly-unused = true

Apparently this is also backward-compatible with old cargo that doesn't support the hint:

Note that setting a hint does not increase the Minimum Supported Rust Version (MSRV) of your crate. Hints are always ignored if not understood. So, you can safely set this hint immediately, without waiting for this feature to be stabilized, and users of nightly will immediately benefit (if they pass -Zprofile-hint-mostly-unused to cargo to enable the feature).

Need to test that, ie ensure that this does not trip up stable.

If this works it will also fix #77

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