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 some unused dependency declarations #26698

Merged
merged 1 commit into from May 29, 2020
Merged

Remove some unused dependency declarations #26698

merged 1 commit into from May 29, 2020

Conversation

@SimonSapin
Copy link
Member

SimonSapin commented May 28, 2020

This is based on compiling with RUSTFLAGS="-W unused_crate_dependencies" (CC rust-lang/rust#72342) in a recent Nightly (more so than used in the tree as of this writing, CC #26661 for work-arounds).

Only one crate is actually removed from the dependency graph, others are still dependended from other places.

@highfive
Copy link

highfive commented May 28, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/webdriver_server/Cargo.toml, components/constellation/Cargo.toml, components/script/Cargo.toml
  • @cbrewster: components/constellation/Cargo.toml
  • @jgraham: components/webdriver_server/Cargo.toml
  • @KiChjang: components/net/lib.rs, components/script/Cargo.toml, components/script_traits/Cargo.toml
  • @emilio: components/style/Cargo.toml, components/layout/Cargo.toml
@highfive
Copy link

highfive commented May 28, 2020

warning Warning warning

  • These commits modify style, layout, net, and script code, but no tests are modified. Please consider adding a test!
@@ -79,7 +80,7 @@ void = "1.0.2"

[build-dependencies]
lazy_static = "1"
log = "0.4"
#log = "0.4"

This comment has been minimized.

@atouchet

atouchet May 28, 2020

Contributor

Was this supposed to be removed?

This comment has been minimized.

@SimonSapin

SimonSapin May 28, 2020

Author Member

I didn’t mean to commit this. Reverted, thanks.

log is used unconditionally in the library crate, but only in Gecko mode in the build script. So having this in build-dependencies warns in Servo mode. I didn’t bother to try if Cargo supports having a dependency optional in build-dependencies but non-optional in depnedencies.

This is based on compiling with `RUSTFLAGS="-W unused_crate_dependencies"` (CC rust-lang/rust#72342) in a recent Nightly (more so than used in the tree as of this writing, CC #26661 for work-arounds).

Only one crate is actually removed from the dependency graph, others are still dependended from other places.
@SimonSapin SimonSapin force-pushed the unused branch from e9a3799 to d4227b5 May 28, 2020
@nox
Copy link
Member

nox commented May 29, 2020

@bors-servo
Copy link
Contributor

bors-servo commented May 29, 2020

📌 Commit d4227b5 has been approved by nox

bors-servo added a commit that referenced this pull request May 29, 2020
Remove some unused dependency declarations

This is based on compiling with `RUSTFLAGS="-W unused_crate_dependencies"` (CC rust-lang/rust#72342) in a recent Nightly (more so than used in the tree as of this writing, CC #26661 for work-arounds).

Only one crate is actually removed from the dependency graph, others are still dependended from other places.
@bors-servo
Copy link
Contributor

bors-servo commented May 29, 2020

Testing commit d4227b5 with merge 1d9c7d4...

@bors-servo
Copy link
Contributor

bors-servo commented May 29, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented May 29, 2020

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented May 29, 2020

Testing commit d4227b5 with merge bb1b5f2...

@bors-servo
Copy link
Contributor

bors-servo commented May 29, 2020

☀️ Test successful - status-taskcluster
Approved by: nox
Pushing bb1b5f2 to master...

@bors-servo bors-servo merged commit bb1b5f2 into master May 29, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
@bors-servo bors-servo deleted the unused branch May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.