Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependency on winapi 0.2 #7389

Merged
merged 1 commit into from
Sep 19, 2019
Merged

Conversation

alexcrichton
Copy link
Member

This commit removes Cargo's dependency on winapi 0.2 which takes an
excessively long time to build, slowing down Windows builds. The
winapi 0.2 crate was pulled in via a dependency chain that looked
like:

cargo
\- crates-io
   \- http
      \- bytes
         \- iovec
            \- winapi 0.2

The fix implemented here was to remove the http crate dependency from
crates-io which is only used for rendering status codes, but it's easy
enough to inline that function locally.

@rust-highfive
Copy link

r? @nrc

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 19, 2019
@alexcrichton
Copy link
Member Author

r? @Eh2406

@rust-highfive rust-highfive assigned Eh2406 and unassigned nrc Sep 19, 2019
This commit removes Cargo's dependency on `winapi` 0.2 which takes an
excessively long time to build, slowing down Windows builds. The
`winapi` 0.2 crate was pulled in via a dependency chain that looked
like:

    cargo
    \- crates-io
       \- http
          \- bytes
             \- iovec
                \- winapi 0.2

The fix implemented here was to remove the `http` crate dependency from
`crates-io` which is only used for rendering status codes, but it's easy
enough to inline that function locally.
@Eh2406
Copy link
Contributor

Eh2406 commented Sep 19, 2019

r+ when ci is green

@alexcrichton
Copy link
Member Author

@bors: r=Eh2406

That's what bors is for :)

@bors
Copy link
Contributor

bors commented Sep 19, 2019

📌 Commit 0f751de has been approved by Eh2406

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 19, 2019
@bors
Copy link
Contributor

bors commented Sep 19, 2019

⌛ Testing commit 0f751de with merge d3df047...

bors added a commit that referenced this pull request Sep 19, 2019
Remove dependency on `winapi` 0.2

This commit removes Cargo's dependency on `winapi` 0.2 which takes an
excessively long time to build, slowing down Windows builds. The
`winapi` 0.2 crate was pulled in via a dependency chain that looked
like:

    cargo
    \- crates-io
       \- http
          \- bytes
             \- iovec
                \- winapi 0.2

The fix implemented here was to remove the `http` crate dependency from
`crates-io` which is only used for rendering status codes, but it's easy
enough to inline that function locally.
@bors
Copy link
Contributor

bors commented Sep 19, 2019

☀️ Test successful - checks-azure
Approved by: Eh2406
Pushing d3df047 to master...

@bors bors merged commit 0f751de into rust-lang:master Sep 19, 2019
@alexcrichton alexcrichton deleted the less-winapi-02 branch September 26, 2019 15:00
@ehuss ehuss added this to the 1.39.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants