Skip to content

Commit 2652990

Browse files
committed
Auto merge of #14600 - epage:charter-crates, r=weihanglo
docs: Declare support level for each crate in our Charter / docs ### What does this PR try to resolve? This is to bring us into conformance with the [Rust crate ownership policy](https://forge.rust-lang.org/policies/crate-ownership.html). Items of note - `cargo` does not have a status specified on it. `cargo install cargo` shouldn't be done and `cargo add cargo` is "internal" but putting in our README that Cargo is "internal" feels weird from a messaging perspective. - `cargo-credential-1password` is declared as Experimental as it is intended for the community but I was unsure if we wanted to commit to full support for it. In my mind, the ideal thing to do would be to expatriate this to 1password. - `home` is declared as Internal despite its wide use within the ecosystem. - `cargo-credential` is declared as Intentional as its an API intended for the wider ecosystem and I didn't see a reason to declare it experimental. - `cargo-platform`, `cargo-util-schemas`, and `crates-io` are declared as Intentional as they are both used internally and intended for others to use for logic that integrates with cargo/registries. I wondered about these being Experimental or Internal instead. ### How should we test and review this PR? I was mixed on what to do with unpublished crates (and didn't fully check what all is unpublished). I ended up only skipping xtasks. ### Additional information
2 parents d9c14e6 + 5c87c14 commit 2652990

File tree

40 files changed

+145
-40
lines changed

40 files changed

+145
-40
lines changed

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ Cargo downloads your Rust project’s dependencies and compiles your project.
99
[The Cargo Book]: https://doc.rust-lang.org/cargo/
1010
[Cargo Contributor Guide]: https://rust-lang.github.io/cargo/contrib/
1111

12+
> The Cargo binary distributed through with Rust is maintained by the Cargo
13+
> team for use by the wider ecosystem.
14+
> For all other uses of this crate (as a binary or library) this is maintained
15+
> by the Cargo team, primarily for use by Cargo and not intended for external
16+
> use (except as a transitive dependency). This crate may make major changes to
17+
> its APIs.
18+
1219
## Code Status
1320

1421
[![CI](https://github.com/rust-lang/cargo/actions/workflows/main.yml/badge.svg?branch=auto-cargo)](https://github.com/rust-lang/cargo/actions/workflows/main.yml)
1522

1623
Code documentation: <https://doc.rust-lang.org/nightly/nightly-rustc/cargo/>
1724

18-
## Installing Cargo
19-
20-
Cargo is distributed by default with Rust, so if you've got `rustc` installed
21-
locally you probably also have `cargo` installed locally.
22-
2325
## Compiling from Source
2426

2527
### Requirements

benches/benchsuite/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> This crate is maintained by the Cargo team, primarily for use by Cargo
2+
> and not intended for external use. This
3+
> crate may make major changes to its APIs or be deprecated without warning.

benches/benchsuite/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//! > This crate is maintained by the Cargo team, primarily for use by Cargo
2+
//! > and not intended for external use. This
3+
//! > crate may make major changes to its APIs or be deprecated without warning.
4+
15
#![allow(clippy::disallowed_methods)]
26

37
use cargo::GlobalContext;

crates/cargo-platform/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo-platform"
3-
version = "0.1.8"
3+
version = "0.1.9"
44
edition.workspace = true
55
license.workspace = true
66
rust-version.workspace = true

crates/cargo-platform/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
> This crate is maintained by the Cargo team for use by the wider
2+
> ecosystem. This crate follows semver compatibility for its APIs.

crates/cargo-platform/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
//!
77
//! See `examples/matches.rs` for an example of how to match against a `Platform`.
88
//!
9+
//! > This crate is maintained by the Cargo team for use by the wider
10+
//! > ecosystem. This crate follows semver compatibility for its APIs.
11+
//!
912
//! [`Platform`]: enum.Platform.html
1013
1114
use std::fmt;

crates/cargo-test-macro/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
WARNING: You might not want to use this outside of Cargo.
2-
3-
* This is designed for testing Cargo itself. Use at your own risk.
4-
* No guarantee on any stability across versions.
5-
* No feature request would be accepted unless proved useful for testing Cargo.
1+
> This crate is maintained by the Cargo team, primarily for use by Cargo
2+
> and not intended for external use. This
3+
> crate may make major changes to its APIs or be deprecated without warning.

crates/cargo-test-macro/src/lib.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
//! This is meant to be consumed alongside `cargo-test-support`. See
44
//! <https://rust-lang.github.io/cargo/contrib/> for a guide on writing tests.
55
//!
6-
//! WARNING: You might not want to use this outside of Cargo.
7-
//!
8-
//! * This is designed for testing Cargo itself. Use at your own risk.
9-
//! * No guarantee on any stability across versions.
10-
//! * No feature request would be accepted unless proved useful for testing Cargo.
6+
//! > This crate is maintained by the Cargo team, primarily for use by Cargo
7+
//! > and not intended for external use. This
8+
//! > crate may make major changes to its APIs or be deprecated without warning.
119
1210
use proc_macro::*;
1311
use std::path::Path;

crates/cargo-test-support/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
WARNING: You might not want to use this outside of Cargo.
2-
3-
* This is designed for testing Cargo itself. Use at your own risk.
4-
* No guarantee on any stability across versions.
5-
* No feature request would be accepted unless proved useful for testing Cargo.
1+
> This crate is maintained by the Cargo team, primarily for use by Cargo
2+
> and not intended for external use. This
3+
> crate may make major changes to its APIs or be deprecated without warning.

0 commit comments

Comments
 (0)