Skip to content

0.2 breaking changes #27

Open
Open

Description

@dsherret
  • Make OpenOptions::write an instance method
  • Combine winapi, getrandom, filetime, and libc features behind one cargo feature as the current state is not very discoverable. Maybe they should just always come with the real implementation.
  • Collapse FsCreateDirAll into FsCreateDir
  • Combine FsSymlinkDir and FsSymlinkFile into one FsSymlink trait (I think....)
  • EnvSet should be unsafe

Activity

  1. dsherret commented on Jun 3, 2025

    @dsherret
    OwnerAuthor

    I find this more clear:

    let mut open_options = sys_traits::OpenOptions::new();
    open_options.read = true;
    open_options.write = true;

    Than this:

    let mut open_options = sys_traits::OpenOptions::new();
    open_options.read();
    open_options.write();

    It's probably ok to differ from std here.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions