Skip to content

Consider thread-local redirection of std::io handles #1050

@aturon

Description

@aturon

Currently, stdout and friends in std::io are tied to the process-level handles, and are in turn used for println! and panic!. In the future, it could be useful to allow thread-local, or otherwise scoped redirection of these handles (especially one that would be inherited by child thread). In particular, that would allow a greater degree of composability between libraries.

See #973 for one possible route.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions