The Programmer News Hubb
Advertisement Banner
  • Home
  • Technical Insights
  • Tricks & Tutorial
  • Contact
No Result
View All Result
  • Home
  • Technical Insights
  • Tricks & Tutorial
  • Contact
No Result
View All Result
Gourmet News Hubb
No Result
View All Result
Home Technical Insights

Rust 1.70.0 release with “sparse” protocol for reading crates.io index

admin by admin
June 3, 2023
in Technical Insights


The developers behind the programming language Rust have announced the release of Rust 1.70.0.

One of the changes in this release is that the “sparse” protocol for reading the crates.io index is now enabled by default. The team says that using this protocol to get information from the index will allow for significant performance improvements. They also noted that one side effect of this feature is that the path to the crate cache has changed, so dependencies will need to be re-downloaded. 

This release also features two new types for initializing shared data: OnceCell and OnceLock. OneLock is a thread-safe version of the type. The new types can be used anywhere immediate construction isn’t a wanted behavior. In the past, developers have used crates like “lazy_static” and “once_cell” to fill this need, but this is no longer necessary. Both of these new types are considered stable features in this release.

Another stable new feature in Rust 1.70.0 is IsTerminal, which uses the method “is_terminal” to decide whether “a given file descriptor or handle represents a terminal or TTY.” Previously there was crate functionality that could achieve the same functionality, but now it is built into the language. 

Also in this release is the ability to name debug levels. According to the Rust release team, the “-Cdebuginfo” compiler option is used to only support numbers 0 to 2. Now they can be set by name using “none” for 0, “limited” for 1, and “full” for 2. There are also two new levels being introduced: “line-directives-only” and “line-tables-only.” “Line-directives-only” is intended for NVPTX profiling and “line-tables-only” specifies to use of the minimum needed for backtraces with filenames and line numbers. 

And finally, as of this release, the language will no longer allow unstable test options. Previously the command line would allow users to select options that weren’t yet stabilized. This was intended to only be used in nightly builds, but prior to this release, that restriction wasn’t officially in place.

This release also includes a number of newly stabilized APIs. For a full list of those, visit the official release notes.



Source link

Previous Post

Weekly News for Designers № 697

Next Post

What Digital Marketers Need To Know

Next Post

What Digital Marketers Need To Know

Recommended

Weekly News for Designers № 699

4 months ago

Atlassian to ‘Unleash’ Agile, DevOps best practices at new event

9 months ago

Weekly News for Designers № 709

1 month ago

Wondershare PDFelement: A Powerful and Affordable PDF Editor

10 months ago

The dichotomy of AI for the software developer

2 months ago

The 30 Best Branding Identity Mockup Templates

4 months ago

© The Programmer News Hubb All rights reserved.

Use of these names, logos, and brands does not imply endorsement unless specified. By using this site, you agree to the Privacy Policy and Terms & Conditions.

Navigate Site

  • Home
  • Technical Insights
  • Tricks & Tutorial
  • Contact

Newsletter Sign Up.

No Result
View All Result
  • Home
  • Technical Insights
  • Tricks & Tutorial
  • Contact

© 2022 The Programmer News Hubb All rights reserved.