Skip to content

replace nix::pty::openpty with rustix_openpty::openpty #15834

Open

Description

@xtqqczze

Should enable support for more platforms such as Redox.

Activity

  1. self-assigned this
    on Oct 25, 2026
  2. oech3 commented on Oct 25, 2026

    @oech3
    Contributor

    I think it is OK to use as new dependency since rustix-openpty is owned by rustix's owner. But last update is 1 years ago.
    Is it because the crate is trivial?:

    rustix-openpty is a wrapper around rustix::pty on Linux and libc::openpty on other platforms.

  3. xtqqczze commented on Oct 25, 2026

    @xtqqczze
    CollaboratorAuthor

    I've completed the implementation on a local branch. I just need to clean it up and run tests before opening a PR.

  4. oech3 commented on Nov 8, 2026

    @oech3
    Contributor

    I am wondering why rustix itself cannot wrap libc::openpty on other platforms. @sunfishcode

  5. removed their assignment
    on Nov 8, 2026
  6. sunfishcode commented on Nov 10, 2026

    @sunfishcode
    Contributor

    Rustix was deliberately scoped to just "syscall-like" functions, leaving the task of wrapping higher-level functions that a typical libc provides to other libraries. If rustix exposes the needed syscalls on Linux, a separate library can implement openpty on top of it without needing access to any of rustix's raw-syscall internal mechanisms.

    rustix-openpty is a pretty small library that does a constrained task, so it doesn't need many updates.

  7. oech3 commented on Nov 10, 2026

    @oech3
    Contributor

    making as sense. Thankyou.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions