Skip to content

Latest commit

 

History

History
66 lines (62 loc) · 3.47 KB

cargo-1.50.md

File metadata and controls

66 lines (62 loc) · 3.47 KB

8662ab42...rust-1.50.0

Added

  • Added the doc field to cargo metadata, which indicates if a target is documented. #8869
  • Added RUSTC_WORKSPACE_WRAPPER, an alternate RUSTC wrapper that only runs for the local workspace packages, and caches its artifacts independently of non-wrapped builds. #8976
  • Added --workspace to cargo update to update only the workspace members, and not their dependencies. This is particularly useful if you update the version in Cargo.toml and want to update Cargo.lock without running any other commands. #8725

Changed

  • .crate files uploaded to a registry are now built with reproducible settings, so that the same .crate file created on different machines should be identical. #8864
  • Git dependencies that specify more than one of branch, tag, or rev are now rejected. #8984
  • The rerun-if-changed build script directive can now point to a directory, in which case Cargo will check if any file in that directory changes. #8973
  • If Cargo cannot determine the username or email address, cargo new will no longer fail, and instead create an empty authors list. #8912
  • The progress bar width has been reduced to provide more room to display the crates currently being built. #8892
  • cargo new will now support includeIf directives in .gitconfig to match the correct directory when determining the username and email address. #8886

Fixed

  • Fixed cargo metadata and cargo tree to only download packages for the requested target. #8987
  • Updated libgit2, which brings in many fixes, particularly fixing a zlib error that occasionally appeared on 32-bit systems. #8998
  • Fixed stack overflow with a circular dev-dependency that uses the links field. #8969
  • Fixed cargo publish failing on some filesystems, particularly 9p on WSL2. #8950

Nightly only

  • Allow resolver="1" to specify the original feature resolution behavior. #8857
  • Added -Z extra-link-arg which adds the cargo:rustc-link-arg-bins and cargo:rustc-link-arg build script options. docs #8441
  • Implemented external credential process support, and added cargo logout. (RFC 2730) (docs) #8934
  • Fix panic with -Zbuild-std and no roots. #8942
  • Set docs.rs as the default extern-map for crates.io #8877