Skip to content

Conditionally add stdlib APIs based on edition? #89084

Open

Description

@SUPERCILEX

Hi,
There's been some discussion on this thread where it seems like the best solution would be adding methods to a stdlib API, but only having them become active in a new rust edition. Is this possible?

Activity

  1. the8472 commented on Sep 19, 2021

    @the8472
    Member

    An extension trait could be put in the prelude, which are edition-specific since #82217

  2. clubby789 commented on Mar 30, 2023

    @clubby789
    Contributor

    @rustbot label +T-libs-api

  3. added
    T-libsRelevant to the library team, which will review and decide on the PR/issue.
    and removed
    T-libs-api[DEPRECATED; DO NOT USE]
    on Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions