Title: This Week in Rust 229 Number: 229 Date: 2018-04-10 Category: This Week in Rust Hello and welcome to another issue of *This Week in Rust*! [Rust](http://rust-lang.org) is a systems language pursuing the trifecta: safety, concurrency, and speed. This is a weekly summary of its progress and community. Want something mentioned? Tweet us at [@ThisWeekInRust](https://twitter.com/ThisWeekInRust) or [send us a pull request](https://github.com/cmr/this-week-in-rust). Want to get involved? [We love contributions](https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md). *This Week in Rust* is openly developed [on GitHub](https://github.com/cmr/this-week-in-rust). If you find any errors in this week's issue, [please submit a PR](https://github.com/cmr/this-week-in-rust/pulls). # Updates from Rust Community ## News & Blog Posts * [Async & await in Rust: a full proposal](https://boats.gitlab.io/blog/post/2018-04-06-async-await-final/). * [JavaScript to Rust and back again: A wasm-bindgen tale](https://hacks.mozilla.org/2018/04/javascript-to-rust-and-back-again-a-wasm-bindgen-tale/). * [A formal look at pinning](https://www.ralfj.de/blog/2018/04/05/a-formal-look-at-pinning.html). * [The dark side of ergonomics](https://vorner.github.io/2018/04/08/Dark-side-of-ergonomics.html). * [Announcing the Formal Verification Working Group](https://internals.rust-lang.org/t/announcing-the-formal-verification-working-group/7240). * [Increasing Rust’s reach 2018](https://blog.rust-lang.org/2018/04/02/Increasing-Rusts-Reach-2018.html). * [The state of game development in Rust](http://www.davideaversa.it/2018/02/state-game-development-rust/). * [Sponza: A demo of a Rust game engine running with WASM in the browser](https://edwin0cheng.github.io/unrust/demo/sponza/). * [Futures 0.2 is here](https://aturon.github.io/2018/04/06/futures2/). * [toml 0.4.6 is released which includes a `toml!` macro to easily build `toml::Value` objects](https://docs.rs/toml/0.4/toml/macro.toml.html). * [Announcing Tower — a library for writing robust network services with Rust](https://medium.com/@carllerche/announcing-tower-a-library-for-writing-robust-network-services-with-rust-67273f052c40). * [Bringing Vulkan everywhere](http://gfx-rs.github.io/2018/04/09/vulkan-portability.html) — an update on gfx-rs portability initiative. * [Improving GStreamer performance on a high number of network streams by sharing threads between elements with Rust’s tokio crate](https://coaxion.net/blog/2018/04/improving-gstreamer-performance-on-a-high-number-of-network-streams-by-sharing-threads-between-elements-with-rusts-tokio-crate/). * [Writing a recursive ascent parser by hand](https://www.abubalay.com/blog/2018/04/08/recursive-ascent). * [Rust in ten slides](https://steveklabnik.github.io/rust-in-ten-slides/). * [A gentle introduction to Rust](https://stevedonovan.github.io/rust-gentle-intro/). * [This week in Rust docs 100](https://guillaumegomez.github.io/this-week-in-rust-docs/blog/this-week-in-rust-docs-100). * [This week in Rust and WebAssembly 1](https://rustwasm.github.io/2018/04/05/welcome-to-this-week-in-rust.html). ### From Rust All Hands in Berlin * [The Rust team All Hands in Berlin: a recap](https://blog.rust-lang.org/2018/04/06/all-hands.html). * [Sound and ergonomic specialization for Rust](https://aturon.github.io/2018/04/05/sound-specialization/). * [Cargo, Xargo, and Rustup](https://aturon.github.io/2018/04/06/rustup-xargo/). * [Custom tasks in Cargo](https://aturon.github.io/2018/04/05/workflows/). # Crate of the Week This week's crate is [shiplift](https://crates.io/crates/shiplift), a rusty API for talking with docker daemons. Thanks to [Matthias Beyer](https://users.rust-lang.org/u/musicmatze) for the suggestion! [Submit your suggestions and votes for next week][submit_crate]! [submit_crate]: https://users.rust-lang.org/t/crate-of-the-week/2704 # Call for Participation Always wanted to contribute to open-source projects but didn't know where to start? Every week we highlight some tasks from the Rust community for you to pick and get started! Some of these tasks may also have mentors available, visit the task page for more information. * [Help stabilize a subset of Macros 2.0](https://internals.rust-lang.org/t/help-stabilize-a-subset-of-macros-2-0/7252)! * [rustc-guide](https://github.com/rust-lang-nursery/rustc-guide) is a project to write a short guide about how the rust compiler works, and it needs your help. There are some [easier issues](https://github.com/rust-lang-nursery/rustc-guide/issues?q=is%3Aissue+is%3Aopen+label%3AEasy), [issues which might require a bit of investigation/code reading](https://github.com/rust-lang-nursery/rustc-guide/issues?q=is%3Aissue+is%3Aopen+label%3AMedium), and [issues which probably require some advanced knowledge or a lot of time](https://github.com/rust-lang-nursery/rustc-guide/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3AHard). * [good first issue] [distinst: Optimize Partition Moving Algorithm](https://github.com/pop-os/distinst/issues/51). distinst is a distribution installer backend written in Rust. * [distinst: Reduce LUKS Device Detection Overhead](https://github.com/pop-os/distinst/issues/80). * [distinst: Use Entire Disk as LUKS / LVM Partition](https://github.com/pop-os/distinst/issues/64). * [easy] [tokei: Improve tokei's language test coverage](https://github.com/Aaronepower/tokei/issues/63). * [Get started with these beginner-friendly issues](https://www.rustaceans.org/findwork/starters). If you are a Rust project owner and are looking for contributors, please submit tasks [here][guidelines]. [guidelines]: https://users.rust-lang.org/t/twir-call-for-participation/4821 # Updates from Rust Core 200 (!) pull requests were [merged in the last week][merged] [merged]: https://github.com/search?q=is%3Apr+org%3Arust-lang+is%3Amerged+merged%3A2018-04-02..2018-04-09 * [better `Debug` for `proc_macro` types](https://github.com/rust-lang/rust/pull/49748) * [proc_macro: reorganize public API](https://github.com/rust-lang/rust/pull/49597) * [AST: give spans to all identifiers](https://github.com/rust-lang/rust/pull/49154) * [stabilize attributes on generic parameters](https://github.com/rust-lang/rust/pull/48851) * [mem-categorization, coherence fix](https://github.com/rust-lang/rust/pull/49714) * [fix ICE with `main`'s return type containing lifetimes](https://github.com/rust-lang/rust/pull/49692) * [Make queries thread safe](https://github.com/rust-lang/rust/pull/49045) * [Print query stack on ICEs](https://github.com/rust-lang/rust/pull/49222) * [miri: add public alloc_kind accessor](https://github.com/rust-lang/rust/pull/49625) * [miri: make write_discriminant_value public](https://github.com/rust-lang/rust/pull/49758) * [add more `vec![... ; n]` optimizations](https://github.com/rust-lang/rust/pull/49496) * [`impl Unpin for Pin`](https://github.com/rust-lang/rust/pull/49621) * [introduce `Vec::resize_with` method](https://github.com/rust-lang/rust/pull/49559) * [expand macros in `extern {}` blocks](https://github.com/rust-lang/rust/pull/49350) * [non-exhaustive enums/structs: finishing touches](https://github.com/rust-lang/rust/pull/49345/files) * [add `Iterator::find_map`](https://github.com/rust-lang/rust/pull/49098) * [`std::sync::atomic::Atomic*::`{`fetch_min`, `fetch_max`, `fetch_update`}](https://github.com/rust-lang/rust/pull/48658) * [stabilize iterator methods in 1.27](https://github.com/rust-lang/rust/pull/49607) * [stabilize String::replace_range](https://github.com/rust-lang/rust/pull/49577) * [`cargo build --out-dir`](https://github.com/rust-lang/cargo/pull/5203) * [crates.io: allow feature names to begin with numbers](https://github.com/rust-lang/crates.io/pull/1331) * [rustdoc: handle future deprecation annotations](https://github.com/rust-lang/rust/pull/49179) * [book: update mdbook, allows search](https://github.com/rust-lang/rust/pull/49623) ## New Contributors * Chris Manchester * Dan Callaghan * Francis Gagné * lloydmeta * nabijaczleweli * Valentine Valyaeff * Wim Looman ## Approved RFCs Changes to Rust follow the Rust [RFC (request for comments) process](https://github.com/rust-lang/rfcs#rust-rfcs). These are the RFCs that were approved for implementation this week: * [RFC 2338: Type alias enum variants](https://github.com/rust-lang/rfcs/pull/2338). * [RFC 2102: Unnamed fields of struct and union type](https://github.com/rust-lang/rfcs/pull/2102). * [RFC 2196: Semantic build scripts for Cargo](https://github.com/rust-lang/rfcs/pull/2196). * [RFC 2295: Extend pattern API to OsStr](https://github.com/rust-lang/rfcs/pull/2295). ## Final Comment Period Every week [the team](https://www.rust-lang.org/team.html) announces the 'final comment period' for RFCs and key PRs which are reaching a decision. Express your opinions now. [This week's FCPs][fcp] are: [fcp]: https://github.com/rust-lang/rfcs/labels/final-comment-period *No RFCs are currently in final comment period.* ## New RFCs * [Add futures to libcore](https://github.com/rust-lang/rfcs/pull/2395). * [Async/await notation for ergonomic asynchronous IO](https://github.com/rust-lang/rfcs/pull/2394). * [Reserve `try` for `try { .. }` block expressions](https://github.com/rust-lang/rfcs/pull/2388). * [Delegation](https://github.com/rust-lang/rfcs/pull/2393). Syntax sugar for efficient code reuse via the composition pattern. * [`#[used]` static variables](https://github.com/rust-lang/rfcs/pull/2386). * [Introduce `#[do_not_recommend]` to control errors for trait impls](https://github.com/rust-lang/rfcs/pull/2397). * [Implement a sandbox for environment variables and files](https://github.com/rust-lang/rfcs/pull/2391). * [target_feature 1.1](https://github.com/rust-lang/rfcs/pull/2396). * [Macros Derive PlopAhead and PlopBehind](https://github.com/rust-lang/rfcs/pull/2390). # Upcoming Events The community team is trying to improve outreach to meetup organisers. Please fill out their [call for contact info](https://docs.google.com/forms/d/e/1FAIpQLSf52YXGhqBaHtCXtVna4iHYMK7IQaTqUW6V-ztsZC8C2TBInQ/viewform) if you are running or used to run a meetup. * [Apr 12. San Diego, US - San Diego Rust April Meetup - UDP Challenge](https://www.meetup.com/San-Diego-Rust/events/249505098/). * [Apr 12. Columbus, US - Columbus Rust Society - Monthly Meeting](https://www.meetup.com/columbus-rs/events/czcwhlyxgbqb/). * [Apr 12. Arlington, US - Rust DC - Learn+Try: Rust in the Browser via WebAssembly](https://www.meetup.com/RustDC/events/248552247/). * [Apr 15. Athens, GR - Rust Meetup](https://www.hackerspace.gr/wiki/5th_Rust_Meetup). * [Apr 15. Mountain View, US - Open Table / Icebreaker: what projects are you working on](https://www.meetup.com/Rust-Dev-in-Mountain-View/events/glnfcpyxgbtb/). * [Apr 17. Brussels, BE - Error, logs and more](https://www.meetup.com/Belgium-Rust-user-group/events/248297132/). * [Apr 18. Paris, FR - Devoxx 2018 - Hands-on Labs - Rust introduction](http://cfp.devoxx.fr/2018/talk/QAL-4376/Atelier_Rust). * [Apr 18. Rust Community Team Meeting at #rust-community on irc.mozilla.org](irc://irc.mozilla.org/rust-community). * [Apr 18. Berlin, DE - OpenTechSchool Berlin - Rust Hack and Learn](https://www.meetup.com/opentechschool-berlin/events/247388143/). * [Apr 18. Vancouver, CA - Rust Study/Hack/Hang-out night](https://www.meetup.com/Vancouver-Rust/events/ckwdlpyxgbxb/). * [Apr 18. Wrocław, PL - Technocracy. 1st Rust Meetup in Wrocław](https://www.meetup.com/Technocracy/events/249259107/). * [Apr 18. Milano, IT - Rust Exercises](https://www.meetup.com/rust-language-milano/events/249592365/). * [Apr 19. Rust release triage](https://internals.rust-lang.org/t/release-cycle-triage-proposal/3544). * [Apr 19. Cambridge, GB - Cambridge Rust Meetup](https://www.meetup.com/Cambridge-Rust-Meetup/events/pzwshpyxgbzb/). * [Apr 21. Chennai, IN - Monthly Meetup - April](https://www.meetup.com/mad-rs/events/249535481/). * [Apr 22. Mountain View, US - Open Table / Icebreaker: what projects are you working on](https://www.meetup.com/Rust-Dev-in-Mountain-View/events/glnfcpyxgbdc/). * [Apr 24. Rust Community Content Subteam Meeting at #rust-content on irc.mozilla.org](irc://irc.mozilla.org/rust-content). * [Apr 24. Dallas, US - Last Tuesday Meetup](https://www.meetup.com/Dallas-Rust/events/zfgwzmyxgbgc/). * [Apr 25. Rust Community Team Meeting at #rust-community on irc.mozilla.org](irc://irc.mozilla.org/rust-community). * [Apr 25. Rust Events Team Meeting](https://t.me/joinchat/EkKINhHCgZ9llzvPidOssA). * [Apr 27. Darmstadt, DE - Rhein-Main Rust Meetup](https://www.meetup.com/Rust-Rhein-Main/events/249543182/). * **[May 27. Paris, FR - RustFest Paris 2018](https://paris.rustfest.eu/)**. If you are running a Rust event please add it to the [calendar] to get it mentioned here. Email the [Rust Community Team][community] for access. [calendar]: https://www.google.com/calendar/embed?src=apd9vmbc22egenmtu5l6c5jbfc%40group.calendar.google.com [community]: mailto:community-team@rust-lang.org # Rust Jobs * [Junior Blockchain Rust Developer at Witnet Foundation](https://angel.co/witnet-foundation-1/jobs/342268-junior-blockchain-rust-developer). * [Senior Blockchain Rust Developer at Witnet Foundation](https://angel.co/witnet-foundation-1/jobs/342272-senior-blockchain-rust-developer). *Tweet us at [@ThisWeekInRust](https://twitter.com/ThisWeekInRust) to get your job offers listed here!* # Quote of the Week *No quote was selected for QotW.* [Submit your quotes for next week][submit]! [submit]: http://users.rust-lang.org/t/twir-quote-of-the-week/328 *This Week in Rust is edited by: [nasa42](https://github.com/nasa42) and [llogiq](https://github.com/llogiq).*