Skip to content

Commit 5c87c14

Browse files
committed
docs: Declare support level for each crate in our Charter / docs
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-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.
1 parent d199f2e commit 5c87c14

File tree

35 files changed

+133
-28
lines changed

35 files changed

+133
-28
lines changed

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/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.

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@
1111
//! targeted at cargo contributors
1212
//! - Updated on each update of the `cargo` submodule in `rust-lang/rust`
1313
//!
14-
//! **WARNING:** You might not want to use this outside of Cargo.
15-
//!
16-
//! * This is designed for testing Cargo itself. Use at your own risk.
17-
//! * No guarantee on any stability across versions.
18-
//! * No feature request would be accepted unless proved useful for testing Cargo.
14+
//! > This crate is maintained by the Cargo team, primarily for use by Cargo
15+
//! > and not intended for external use. This
16+
//! > crate may make major changes to its APIs or be deprecated without warning.
1917
//!
2018
//! # Example
2119
//!

crates/cargo-util-schemas/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.

0 commit comments

Comments
 (0)