pub ThisWeekInRust {} – Telegram
pub ThisWeekInRust {}
991 subscribers
2 photos
2.41K links
Handpicked Rust updates,
delivered to your telegram.

Contacts: @sergeysova
Reposted from: https://this-week-in-rust.org
Source code: https://github.com/sergeysova/this_week_in_rust.rs
Another: @this_week_in_react
Download Telegram
News

Writing an OS in Rust: Heap allocation.
os.phil-opp.com

Non-lexical lifetimes arrives for everyone.
blog.pnkfx.org

Status of rust-analyzer: Achievements and Open Collective.
ferrous-systems.com

TLS performance: rustls versus OpenSSL.
jbp.io

Optimizing jieba-rs to be 33% faster than cppjieba.
blog.paulme.ng

Brave improves its ad-blocker performance by 69x with new engine implementation in Rust.
brave.com

Writing a small ray tracer in Rust and Zig.
nelari.us

Compiling Rust apps for Termux with nix-shell.
blog.geemili.xyz

Building crates so they look like C(ABI) libraries.
dev.to
Crate of the week: aljabar

This week's crate is aljabar, an extremely generic linear algebra libary. Thanks to Vikrant for the suggestion!
Updates from core

Stabilize support for Profile-guided Optimization (Hooray!)
rust-lang/rust/pull/61268

Break out of the correct number of scopes in loops
rust-lang/rust/pull/62388

Improve error span for async type inference error
rust-lang/rust/pull/62383

Remove hir::ExprKind::While
rust-lang/rust/pull/61988

Generalize impl trait to permit multiple lifetime bounds
rust-lang/rust/pull/61775

Support stability and deprecation checking for all macros
rust-lang/rust/pull/62042

Implement Option::contains and Result::contains
rust-lang/rust/pull/62356

implement Iterator::last via DoubleEndedIterator::next_back for some libcore types
rust-lang/rust/pull/62316

Add Vec::leak
rust-lang/rust/pull/62196

Implement mem::{zeroed, uninitialized} in terms of MaybeUninit
rust-lang/rust/pull/62150

nth_back for chunks_exact
rust-lang/rust/pull/62064

Only call the closure parameter of Iterator::is_sorted_by_key once per item
rust-lang/rust/pull/62473
News

🎈🎉 Announcing Rust 1.36.0. 🎉🎈
blog.rust-lang.org

Async-await status report #2.
smallcultfollowing.com

Writing an OS in Rust: Updates in June 2019.
os.phil-opp.com

Method for emulating higher-kinded types in Rust.
https://gist.github.com/edmundsmith/855fcf0cb35dd467c29a9350481f0ecf

Speedy desktop apps with GTK and Rust.
nora.codes

Build a decentralized chat using JavaScript & Rust (WebAssembly).
medium.com/perlin-network

Safer, simpler embedded Rust with Apache Mynewt.
medium.com/@ly.lee
Crate of the week: Rustexp

This week's CotW is not a crate but Rustexp site, a Rust regular expression editor & tester.
Thanks to carols10cents for the suggestion!
Updates from core

Use const generics for array impls [part 1]
rust-lang/rust/pull/62435

Update to LLVM 9 (ongoing work)
rust-lang/llvm-project/pull/19

Update LLVM: apply patch necessary for ThinLTO on RISC-V
rust-lang/rust/pull/62463

Use visitor for #[structural_match] check
rust-lang/rust/pull/62339

Normalize projections appearing in impl Trait
rust-lang/rust/pull/62221

typeck: Merge opaque type inference logic
rust-lang/rust/pull/62090

Fact generation for liveness calculations in Polonius
rust-lang/rust/pull/60266

Add key and value methods to DebugMap
rust-lang/rust/pull/60458

Add an AtomicCell abstraction
rust-lang/rust/pull/62577

Add messages to Option's and Result's must_use annotation for is_*
rust-lang/rust/pull/62431

Prevent Vec::drain_filter from double dropping on panic
rust-lang/rust/pull/61224

Add impl<T> FromIterator<T> for Arc/Rc<[T]>
rust-lang/rust/pull/61953

Add Iterator::partition_in_place() and is_partitioned()
rust-lang/rust/pull/62278

Use fold in Iterator::last default implementation
rust-lang/rust/pull/62481

rustc guide: Add humor appendix
rust-lang/rustc-guide/pull/350
News

Microsoft Security Response Center endorses the use of Rust for safe systems programming.
msrc-blog.microsoft.com

How to speed up the Rust compiler in 2019.
blog.mozilla.org

"What the hardware does" is not what your program does: Uninitialized memory.
www.reddit.com

What is Rust's unsafe?
nora.codes

AiC: Unbounded queues and lang design.
smallcultfollowing.com

Creating a simple LISP in Rust.
willspeak.me

Announcing Rustacean Station and Rust 1.36.
rustacean-station.org

Rust as the new C. Part 1: building and combining native libs into C API.
hotforknowledge.com

New tools for 2D game development.
amethyst.rs

Fullstack Rust with Yew.
www.steadylearner.com

gfx-rs Javelin project kick-off.
gfx-rs.github.io

Visual programming in embedded Rust with Apache Mynewt and Google Blockly.
medium.com/@ly.lee

Stream combinators implemented using for await syntax.
www.reddit.com

Ferrous Systems: Rust Summer Classes in Berlin.
ferrous-systems.com

Tickets are now available RustFest Barcelona - 9-12 November 2019.
blog.rustfest.eu
Crate of the week: overloadable

This week's crate is overloadable, a crate to provides you with the capabilities to overload your functions in a similar style to C# or C++, including support for meta attributes, type parameters and constraints, and visibility modifiers
Thanks to Stevensonmt for the suggestion!
Updates from core

The essence of lexer
rust-lang/rust/pull/59706

Implement RFC #2203
rust-lang/rust/pull/61749

Add meta-variable checks in macro definitions
rust-lang/rust/pull/62008

Stabilize <*mut _>::cast and <*const _>::cast
rust-lang/rust/pull/62713

Specific error for positional args after named args in format!()
rust-lang/rust/pull/62710

rustc_typeck: Improve diagnostics for -> _ fn return type
rust-lang/rust/pull/62694

Add info about undefined behavior to as_ref suggestions
rust-lang/rust/pull/62685

resolve: Improve candidate search for unresolved macro suggestions
rust-lang/rust/pull/62684

miri validation: Better error messages for dangling references
rust-lang/rust/pull/62673

Cancel unemitted diagnostics during error recovery
rust-lang/rust/pull/62666

Make VaListImpl<'f> invariant over 'f
rust-lang/rust/pull/62639

Add Option::expect_none(msg) and unwrap_none()
rust-lang/rust/pull/62596

stdarch: Add ARM Neon vmvn_/vmvnq_ bitwise not intrinsics
rust-lang/stdarch/pull/770

cargo: Add support for multiple --features options
rust-lang/cargo/pull/7084

cargo: Optimize runtime of #[cargo_test_macro]
rust-lang/cargo/pull/7146
News

U.S. House Committee on Financial Services hearing: Why was the Rust language chosen?
www.c-span.org

Microsoft Security Response Center: Why Rust for safe systems programming.
msrc-blog.microsoft.com

Compiler speed has improved 30-40% across the board year-to-date, with some projects seeing 45%+ improvements.
www.reddit.com

Perils of constructors.
matklad.github.io

Notes on a smaller Rust.
boats.gitlab.io

Announcing heim project.
svartalf.info

Gotham — from start to Heroku.
blog.codeship.com

How to write Full Stack Rust code.
www.steadylearner.com

HOWTO: Replace mem::uninitialized with mem::MaybeUninit.
www.reddit.com

Stream combinators implemented using for await syntax.
www.reddit.com

CLion Rust plugin adds a new experimental macro expansion engine.
www.jetbrains.com
Crate of the week: abscissa

This week's crate is abscissa, a security-oriented Rust application framework.
Thanks to Tony Arcieri for the suggestion!
Updates from core

Add support for UWP targets
rust-lang/rust/pull/60260

Add riscv32i-unknown-none-elf target
rust-lang/rust/pull/62784

Update wasm32 support for LLVM 9
rust-lang/rust/pull/62809

Move unescape module to rustc_lexer
rust-lang/rust/pull/62851

Make the parser TokenStream more resilient after mismatched delimiter recovery
rust-lang/rust/pull/62887

Improve diagnostics for _ const/static declarations
rust-lang/rust/pull/62804

Avoid ICE when referencing desugared local binding in borrow error
rust-lang/rust/pull/63051

Suggest trait bound on type parameter when it is unconstrained
rust-lang/rust/pull/62772

Allow lifetime elision in Pin<&(mut) Self>
rust-lang/rust/pull/61207

Stop bare trait lint applying to macro call sites
rust-lang/rust/pull/63014

Add note suggesting to borrow a String argument to find
rust-lang/rust/pull/62981

Add method disambiguation help for trait implementation
rust-lang/rust/pull/62921

miri: Enable Intrptrcast by default
rust-lang/miri/pull/851

Don't access a static just for its size and alignment
rust-lang/rust/pull/62982

Use const array repeat expressions for uninit_array
rust-lang/rust/pull/62799

Stabilize the type_name intrinsic in core::any
rust-lang/rust/pull/60066

Constantly improve the Vec(Deque) array PartialEq impls
rust-lang/rust/pull/63061

hashbrown: Do not grow the container if an insertion is on a tombstone
rust-lang/hashbrown/pull/106

rust-bindgen: Cleanup wchar_t layout computation to happen later
rust-lang/rust-bindgen/pull/1596

rustdoc: Make #[doc(include)] relative to the containing file
rust-lang/rust/pull/60938

docs.rs: Fix weird layout workflow issues on firefox
rust-lang/docs.rs/pull/358

Force clippy to run every time (finally!)
rust-lang/cargo/pull/7157
News

The Rust compiler is still getting faster.
blog.mozilla.org

Unsafe as a human-assisted type system.
matklad.github.io

Why does the Rust compiler not optimize code assuming that two mutable references cannot alias?
stackoverflow.com

Python vs Rust for neural networks.
ngoldbaum.github.io

Dependency management and trust scaling.
lucumr.pocoo.org
Crate of the week: async-trait

This week's crate is async-trait, a procedural macro to allow async fns in trait methods.
Thanks to Ehsan M. Kermani for the suggestion!
Updates from core

Avoid ICE when suggestion span is at Eof
rust-lang/rust/pull/62995

On format!() arg count mismatch provide extra info
rust-lang/rust/pull/63121

Syntax: Recover on for ( $pat in $expr ) $block
rust-lang/rust/pull/62928

dead_code: Properly inspect fields in struct patterns with type relative paths
rust-lang/rust/pull/63227

Collect file → edition mapping after AST expansion
rust-lang/rls/pull/1513

Unsupport the await!(future) macro
rust-lang/rust/pull/62293

Round generator sizes to a multiple of their alignment
rust-lang/rust/pull/63208

miri: Fix determining size of an "extra function" allocation
rust-lang/rust/pull/63076

miri: Add misssing 'roundf32' and 'roundf64' intrinsics
rust-lang/miri/pull/885

Impl Debug for Chars
rust-lang/rust/pull/63000

const fn-ify std::any::type_name
rust-lang/rust/pull/63123

hashbrown: Replace FxHash with AHash as the default hasher
rust-lang/hashbrown/pull/97

hashbrown: Experimentally expose RawTable under the "raw" feature
rust-lang/hashbrown/pull/108

rustc: Stabilize options for pipelined compilation
rust-lang/rust/pull/62766

cargo: Enable pipelined compilation by default
rust-lang/cargo/pull/7143

cargo: Improve error message for unmatched prerelease dependencies
rust-lang/cargo/pull/7191

rustdoc: Use doc comments from 'pub use' statements
rust-lang/rust/pull/63048
News

We rewrote our IoT platform in Rust and got away with it.
medium.com/dwelo-r-d

About the future of nphysics: a pure rust 2D and 3D real-time physics engine.
www.patreon.com

Building GTK+ app in Rust for a first time.
turbomack.github.io

Understanding Rust through AVL trees.
francismurillo.github.io

Writing an OS in Rust: Updates in July 2019.
os.phil-opp.com

Rust reverses research ruin.
medium.com/@me_26124

Veloren: A multiplayer voxel RPG written in Rust.
veloren.net

Minimum safe abstractions.
llogiq.github.io

How to serve static files with Rust.
www.steadylearner.com

Rust Rocks NB-IoT! STM32 Blue Pill with Quectel BC95-G on Apache Mynewt.
medium.com/@ly.lee