Skip to content

Commit de5a443

Browse files
cuviperehuss
andauthored
Apply suggestions regarding Cargo
Co-authored-by: Eric Huss <eric@huss.org>
1 parent ec18d5c commit de5a443

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

posts/2023-06-01-Rust-1.70.0.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ If you'd like to help us out by testing future releases, you might consider upda
2121

2222
### Sparse by default for crates.io
2323

24-
Cargo's "sparse" protocol is now enabled by default for reading the index from crates.io. This feature was previously stabilized with [Rust 1.68.0](https://blog.rust-lang.org/2023/03/09/Rust-1.68.0.html#cargos-sparse-protocol), but still required configuration to use that with crates.io. The announced plan was to make that the default in 1.70.0, and here it is! (TODO: maybe a statement about effects from user and infra sides?)
24+
Cargo's "sparse" protocol is now enabled by default for reading the index from crates.io. This feature was previously stabilized with [Rust 1.68.0](https://blog.rust-lang.org/2023/03/09/Rust-1.68.0.html#cargos-sparse-protocol), but still required configuration to use that with crates.io. The announced plan was to make that the default in 1.70.0, and here it is!
25+
26+
You should see substantially improved performance when fetching information from the crates.io index. Users behind a restrictive firewall will need to ensure that access to `https://index.crates.io` is available. If for some reason you need to stay with the previous default of using the git index hosted by GitHub, the [`registries.crates-io.protocol`](https://doc.rust-lang.org/cargo/reference/config.html#registriescrates-ioprotocol) config setting can be used to change the default.
2527

2628
### `OnceCell` and `OnceLock`
2729

@@ -53,6 +55,8 @@ The `-Cdebuginfo` compiler option has previously only supported numbers 0..=2 fo
5355

5456
The Cargo and rustc documentation both called level 1 "line tables only" before, but it was more than that with information about all functions, just not types and variables. That level is now called "limited", and the new "line-tables-only" level is further reduced to the minimum needed for backtraces with filenames and line numbers. This may eventually become the level used for `-Cdebuginfo=1`. The other `line-directives-only` level is intended for NVPTX profiling, and is otherwise not recommended.
5557

58+
Note that these named options are not yet available to be used via `Cargo.toml`. Support for that will be available in the next release 1.71.
59+
5660
### Enforced stability in the `test` CLI
5761

5862
When `#[test]` functions are compiled, the executable gets a command-line interface from the `test` crate. This CLI has a number of options, including some that are not yet stabilized and require specifying `-Zunstable-options` as well, like many other commands in the Rust toolchain. However, while that's only intended to be allowed in nightly builds, that restriction wasn't active in `test` -- until now. Starting with 1.70.0, stable and beta builds of Rust will no longer allow unstable `test` options, making them truly nightly-only as documented.

0 commit comments

Comments
 (0)