Rust Away Mac OS

broken image


At Dwelo, we've written the code for our IoT gateways in Rust. It's fast, it's reliable, and it's secure. But we didn't start with Rust, and we didn't write the code in a weekend. To enable features added in macOS 10.8, set Cargo feature macos108features. To have both 10.8 features and 10.7 compatibility, also set macos107support. Setting both requires weak linkage, which is a nightly-only feature as of Rust 1.19.

The Rust team is happy to announce a new version of Rust, 1.49.0. Rust is aprogramming language that is empowering everyone to build reliable andefficient software.

If you have a previous version of Rust installed via rustup, getting Rust1.49.0 is as easy as:

If you don't have it already, you can get rustup from theappropriate page on our website, and check out the detailed release notes for1.49.0 on GitHub.

What's in 1.49.0 stable

For this release, we have some new targets and an improvement to the testframework. See the detailed release notes to learn about otherchanges not covered by this post.

64-bit ARM Linux reaches Tier 1

The Rust compiler supports a wide variety of targets, butthe Rust Team can't provide the same level of support for all of them. Toclearly mark how supported each target is, we use a tiering system:

  • Tier 3 targets are technically supported by the compiler, but we don't checkwhether their code build or passes the tests, and we don't provide anyprebuilt binaries as part of our releases.
  • Tier 2 targets are guaranteed to build and we provide prebuilt binaries, butwe don't execute the test suite on those platforms: the produced binariesmight not work or might have bugs.
  • Tier 1 targets provide the highest support guarantee, and we run the fullsuite on those platforms for every change merged in the compiler. Prebuiltbinaries are also available.

Rust 1.49.0 promotes the aarch64-unknown-linux-gnu target to Tier 1 support,bringing our highest guarantees to users of 64-bit ARM systems running Linux!We expect this change to benefit workloads spanning from embedded to desktopsand servers.

This is an important milestone for the project, since it's the first time anon-x86 target has reached Tier 1 support: we hope this will pave the way formore targets to reach our highest tier in the future.

Note that Android is not affected by this change as it uses a different Tier 2target.

64-bit ARM macOS and Windows reach Tier 2

Rust 1.49.0 also features two targets reaching Tier 2 support:

Rust Away Mac OS
  • The aarch64-apple-darwin target brings support for Rust on Apple M1 systems.
  • The aarch64-pc-windows-msvc target brings support for Rust on 64-bit ARMdevices running Windows on ARM.

Developers can expect both of those targets to have prebuilt binariesinstallable with rustup from now on! The Rust Team is not running the testsuite on those platforms though, so there might be bugs or instabilities.

Test framework captures output in threads

Rust's built-in testing framework doesn't have a ton of features, but thatdoesn't mean it can't be improved! Consider a test that looks like this:

Here's what running this test looks like before Rust 1.49.0:

You can see that the output from the thread is printed, which intermixesfrom the output of the test framework itself. Wouldn't it be niceif every println! worked like that one that prints 'fum?' Well, that'sthe behavior in Rust 1.49.0:

Rust Away Mac Os Update

The story of tony bastian mac os. But don't worry; if the test were to fail, you'll still see all of theoutput. By adding a panic! to the end of the test, we can see what failurelooks like:

Specifically, the test runner makes sure to capture the output, and saves itin case the test fails.

Library changes

In Rust 1.49.0, there are three new stable functions:

And two functions were made const:

Mac Os Catalina

See the detailed release notes to learn about other changes.

Other changes

There are other changes in the Rust 1.49.0 release: check out what changed inRust, Cargo, and Clippy.

Contributors to 1.49.0

Rust Away Mac Os Download

Many people came together to create Rust 1.49.0. We couldn't have done itwithout all of you. Thanks!





broken image