Skip to content

Confused about IO safety #428

@TOETOE55

Description

@TOETOE55

AFAIK, safe rust just only guarantees something under the control of the Rust compiler (i.e. rust primitive operations) is sound while external operations like FFI or any other OS features are not guaranteed. For example, to read and write proc/self/mem is safe in rust but it's not actually safe though we have obeyed the safety rules of the fs API. (The safety rules are incomplete.)

I'm confused about IO safety after reading the RFC 3128. What does IO safety actually guaranteed? How does IO safety do it? Why is this sound? And does proc/self/mem violate IO safety?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions