Skip to content

Commit

Permalink
Do some light copyediting
Browse files Browse the repository at this point in the history
We fixed one subject-verb agreement, clarified a couple sentences
slightly, and replaced commas with semicolons in a list where the
latter make a bit more sense.
  • Loading branch information
traviscross committed May 21, 2024
1 parent f703262 commit eb04050
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/rust-2024/cargo-remove-implicit-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ graphics = ["dep:jpeg-decoder"]

### Motivation

A reason for requiring this to be explicit is that it encourages a conscious decision about the public exposure of the feature name, and makes it clearer when reading the `[features]` table which features exist.
One reason for requiring this to be explicit is that it encourages a conscious decision about the public exposure of the feature name, and makes it clearer when reading the `[features]` table which features exist.
This can help avoid tying the implementation details (the dependency names) to the public set of feature names.

Also, removing features is a [SemVer incompatible change][semver], which may not be obvious when removing an optional dependency that you thought was private.
Expand Down
14 changes: 7 additions & 7 deletions src/rust-2024/cargo-table-key-names.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

## Summary

- Several table and key names in `Cargo.toml` have been removed where there was previously two ways to specify it.
- Removed `[project]`, use `[package]` instead.
- Removed `default_features`, use `default-features` instead.
- Removed `crate_type`, use `crate-type` instead.
- Removed `proc_macro`, use `proc-macro` instead.
- Removed `dev_dependencies`, use `dev-dependencies` instead.
- Removed `build_dependencies`, use `build-dependencies` instead.
- Several table and key names in `Cargo.toml` have been removed where there were previously two ways to specify the same thing.
- Removed `[project]`; use `[package]` instead.
- Removed `default_features`; use `default-features` instead.
- Removed `crate_type`; use `crate-type` instead.
- Removed `proc_macro`; use `proc-macro` instead.
- Removed `dev_dependencies`; use `dev-dependencies` instead.
- Removed `build_dependencies`; use `build-dependencies` instead.

## Details

Expand Down

0 comments on commit eb04050

Please sign in to comment.