6

Part 4 of RFC2906 - Add support for inheriting `readme` by Muscraft · Pull Reque...

 2 years ago
source link: https://github.com/rust-lang/cargo/pull/10548
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Contributor

@Muscraft Muscraft commented 9 days ago

Tracking issue: #8415
RFC: rust-lang/rfcs#2906

Part 1
Part 2
Part 3

This PR focuses on adding support for inheriting readme:

  • Added adjusting of a readme path when it is outside of the package_root
    • Copied from license-file's implementation in toml::prepare_for_publish()
  • Added copying of a readme file when it is outside of the package_root for publishing
    • Copied from license-file's implementation in cargo_package::build_ar_list()
  • Merged copying of a file outside of a package_root to reduce duplicated code and allow for other files in the future to be copied in a similar way

Remaining implementation work for the RFC

  • Path dependencies infer version directive
  • Lock workspace dependencies and warn when unused
  • Optimizations, as needed
  • Evaluate any new fields for being inheritable (e.g. rust-version)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK