Skip to content

Linux kernel: cfg(no_fp_fmt_parse) #3426

@ojeda

Description

@ojeda

Context: For our incoming use of zerocopy and zerocopy-derive in the Linux kernel, I only needed a couple small patches to adapt the crates. It would be nice (but they are not blockers at the moment) if we could have these upstream to simplify upgrades later on.


The most important one is avoiding the Display impls for floating point: please see https://lore.kernel.org/rust-for-linux/20260602172920.30342-11-ojeda@kernel.org/ for the single line Linux kernel patch that implements the idea there.

Essentially, the idea would be to have in upstream Rust a cfg similar to core's no_fp_fmt_parse which we would enable in our builds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions