Skip to content

Add std::process - #22119

Merged
bors merged 1 commit into
rust-lang:masterfrom
aturon:new-process
Feb 14, 2015
Merged

Add std::process#22119
bors merged 1 commit into
rust-lang:masterfrom
aturon:new-process

Conversation

@aturon

Copy link
Copy Markdown
Contributor

Per RFC 579, this commit
adds a new std::process module. This module is largely based on the
existing std::old_io::process module, but refactors the API to use
OsStr and other new standards set out by IO reform.

The existing module is not yet deprecated, to allow for the new API to
get a bit of testing before a mass migration to it.

@aturon

Copy link
Copy Markdown
ContributorAuthor

r? @alexcrichton

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@aturon

Copy link
Copy Markdown
ContributorAuthor

This is WIP for two reasons:

  1. Not yet passing tests on Windows; it's close.
  2. It still uses old_io in a few places, since I didn't want to duplicate work in the std::fs PR.

@aturon
aturonforce-pushed the new-process branch 2 times, most recently from 30d9074 to 2ffc70fCompareFebruary 10, 2015 01:13
@aturon
aturonforce-pushed the new-process branch 3 times, most recently from b96a50b to f994b8fCompareFebruary 10, 2015 04:48
Comment threadsrc/libstd/process.rs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that in general we've had pretty good success with trying to have as few #[cfg] directives as possible, could this logic be pushed into each respective sys module?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably not be an int.

@aturon

Copy link
Copy Markdown
ContributorAuthor

@bors: retry

@bors

bors commented Feb 13, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 1a72dac with merge d05755d...

@bors

bors commented Feb 13, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-win-32-opt

@aturon
aturonforce-pushed the new-process branch 3 times, most recently from 9c50a35 to 0f697c2CompareFebruary 14, 2015 00:00
@aturon

Copy link
Copy Markdown
ContributorAuthor

@bors: r=alexcrichton 0f697c2 p=1

@bors

bors commented Feb 14, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 0f697c2 with merge 1ac4113...

@bors

bors commented Feb 14, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-win-32-nopt-t

@aturon

Copy link
Copy Markdown
ContributorAuthor

@bors: r=alexcrichton bec4af2 p=1

@bors

bors commented Feb 14, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit bec4af2 with merge 972bafc...

@bors

bors commented Feb 14, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-linux-64-x-android-t

Per [RFC 579](rust-lang/rfcs#579), this commit
adds a new `std::process` module. This module is largely based on the
existing `std::old_io::process` module, but refactors the API to use
`OsStr` and other new standards set out by IO reform.
The existing module is not yet deprecated, to allow for the new API to
get a bit of testing before a mass migration to it.
@aturon

Copy link
Copy Markdown
ContributorAuthor

@bors: r=alexcrichton 4175f1c p=1

@bors

bors commented Feb 14, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 4175f1c with merge df54632...

bors added a commit that referenced this pull request Feb 14, 2015
Per [RFC 579](rust-lang/rfcs#579), this commit
adds a new `std::process` module. This module is largely based on the
existing `std::old_io::process` module, but refactors the API to use
`OsStr` and other new standards set out by IO reform.
The existing module is not yet deprecated, to allow for the new API to
get a bit of testing before a mass migration to it.
@bors

bors commented Feb 14, 2015

Copy link
Copy Markdown
Collaborator

@bors
bors merged commit 4175f1c into rust-lang:masterFeb 14, 2015
@aturonaturon mentioned this pull request Feb 18, 2015
91 tasks
@alexcrichtonalexcrichton mentioned this pull request Feb 27, 2015
lnicola pushed a commit to lnicola/rust that referenced this pull request Jun 1, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants

@aturon@rust-highfive@alexcrichton@bors@vojtechkral@nagisa@huonw@tanadeau@tbu-@brson