![]() ![]() APIs have been stabilized such as proc_macro::Span::source_text and Option::unzip.Linux builds now optimize the rustc front end and LLVM back end with LTO and BOLT, respectively, improving runtime performance and memory usage.Rust 1.62 introduced cargo add, a command line utility to add dependencies to a project. Developers can use cargo remove to remove dependencies.This is useful for disabling optimizations when you don’t want them to occur, such as during benchmarking or when examining the machine code the compiler produces. The compiler treats black_box as a function that could do anything with its input and return any value. A newly stabilized black_box function takes a passed value and passes it right back.Explicit discriminants are useful when passing values across language boundaries where the representation of the enum must match in both languages. Previously, developers could use explicit discriminants on enums with representations, but only if none of their variants had fields. Introduced December 15, 2022, Rust 1.66 enables enums with integer representations to now use explicit discriminants, even when they have fields. This vulnerability was tracked at cve.org, with more information in the advisory. Note: Rust 1.66.1 stable, released January 10, fixed a situation in which the Cargo package manager was not verifying SSH host keys when cloning dependencies or registry indexes with SSH. And invalid literals no longer are an error under cfg(FALSE). A number of other APIs are now stable in const contexts including char::from_u32, char::from_digit, and char::to_digit. This macro is similar to some crates, but the standard library can leverage Pin internals and temporary lifetime extension for a more expression-like macro.įinally, Rust 1.68.0 stabilizes some APIs including ::ilog, and NonZero*::BITS. This often is called stack pinning, but that “stack” also could be the captured state of an async fn or block. The sparse protocol is set to become the default for crates.io in Rust 1.70.0, which is due in a few months.Įlsewhere in Rust 1.68.0, a new pin! macro constructs a Pin from a T expression, anonymously captured in local state. ![]() ![]() cargo/config/toml file to add: protocol = "sparse" To use the sparse protocol with crates.io, set the environment variable CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse, or edit your. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |