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

refactor(registry): extract and rearrange items to their own modules #12290

Merged
merged 11 commits into from
Jun 24, 2023

Conversation

weihanglo
Copy link
Member

What does this PR try to resolve?

A refactor moving things to their own new modules.

How should we test and review this PR?

Commit by commit.

The PR just moves things around. I know it's a bit painful to see this kinda of change but to have a better module hierarchy we need to do it now or later.

Additional information

This was done during coping with todos of asymmetric tokens #10519.

@rustbot
Copy link
Collaborator

rustbot commented Jun 20, 2023

r? @epage

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

@rustbot rustbot added A-cli Area: Command-line interface, option parsing, etc. A-configuration Area: cargo config files and env vars A-git Area: anything dealing with git A-interacts-with-crates.io Area: interaction with registries A-networking Area: networking issues, curl, etc. A-registries Area: registries A-sparse-registry Area: http sparse registries S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 20, 2023
@rustbot rustbot added the A-infrastructure Area: infrastructure around the cargo repo, ci, releases, etc. label Jun 20, 2023
src/cargo/lib.rs Outdated Show resolved Hide resolved
src/bin/cargo/main.rs Outdated Show resolved Hide resolved
@weihanglo
Copy link
Member Author

This is ready for a new round of review. Please call out if there is something inappropriate.

@epage
Copy link
Contributor

epage commented Jun 24, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Jun 24, 2023

📌 Commit aaf0221 has been approved by epage

It is now in the queue for this repository.

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

bors commented Jun 24, 2023

⌛ Testing commit aaf0221 with merge 5febbe5...

@bors
Copy link
Contributor

bors commented Jun 24, 2023

☀️ Test successful - checks-actions
Approved by: epage
Pushing 5febbe5 to master...

@bors bors merged commit 5febbe5 into rust-lang:master Jun 24, 2023
@weihanglo weihanglo deleted the refactor-registry-api branch June 24, 2023 22:48
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jul 1, 2023
Update cargo

6 commits in 03bc66b55c290324bd46eb22e369c8fae1908f91..5b377cece0e0dd0af686cf53ce4637d5d85c2a10
2023-06-23 23:27:46 +0000 to 2023-06-30 00:01:00 +0000
- Add READMEs for the credential helpers. (rust-lang/cargo#12322)
- Add some more documentation for Source download functions. (rust-lang/cargo#12319)
- Don't try to compile cargo-credential-gnome-secret on non-Linux platforms. (rust-lang/cargo#12321)
- refactor: use macro to remove duplication of workspace inheritable fields getters (rust-lang/cargo#12317)
- doc: should be `.cargo-ok` (rust-lang/cargo#12318)
- refactor(registry): extract and rearrange items to their own modules (rust-lang/cargo#12290)

r? `@ghost`
@ehuss ehuss added this to the 1.72.0 milestone Jul 2, 2023
bors added a commit that referenced this pull request Aug 28, 2023
Set tracing target for networking messages.

This changes the log messages for messages related to network traffic to use the "network" tracing target. This makes it easier to do `CARGO_LOG=network=trace CARGO_HTTP_DEBUG=true` instead of trying to figure out which modules to include (and to avoid `CARGO_LOG=trace` which can be too noisy). For example, #12290 moved the location of some log messages to a different module, which broke the documented workflow of using `CARGO_LOG=cargo::ops::registry=debug` to get networking information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Area: Command-line interface, option parsing, etc. A-configuration Area: cargo config files and env vars A-git Area: anything dealing with git A-infrastructure Area: infrastructure around the cargo repo, ci, releases, etc. A-interacts-with-crates.io Area: interaction with registries A-networking Area: networking issues, curl, etc. A-registries Area: registries A-sparse-registry Area: http sparse registries 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.

5 participants