summaryrefslogtreecommitdiffstats
path: root/content/2018-11-20-this-week-in-rust.md
blob: 4aba8f3b0c7ac313a183af8774bf42ef57b83b7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
Title: This Week in Rust 261
Number: 261
Date: 2018-11-20
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

* [A verified email address will be required to publish to crates.io starting on 2019-02-28](https://users.rust-lang.org/t/a-verified-email-address-will-be-required-to-publish-to-crates-io-starting-on-2019-02-28/22425).
* [Rust and game development](https://alexene.github.io/2018/11/15/Rust-and-game-development.html).
* [Build your own shell using Rust](https://www.joshmcguigan.com/blog/build-your-own-shell-rust/).
* [Stacked borrows implemented: An aliasing model for Rust](https://www.ralfj.de/blog/2018/11/16/stacked-borrows-implementation.html).
* [Bringing Elm's architecture to Rust and Webassembly](https://sindrejohansen.no/blog/willow/rust/elm/2018/11/16/willow-elm-in-rust.html).
* [Programming Servo: a background-hang-monitor](https://medium.com/programming-servo/programming-servo-a-background-hang-monitor-73e89185ce1).
* [Compile time feature flags in Rust](https://www.worthe-it.co.za/programming/2018/11/18/compile-time-feature-flags-in-rust.html).
* [Program synthesis is possible in Rust](http://fitzgeraldnick.com/2018/11/15/program-synthesis-is-possible-in-rust.html).
* [This year in embedded Rust](https://rust-embedded.github.io/blog/2018-11-14-this-year-in-embedded-rust/).

# Crate of the Week

This week's crate is [cargo-sweep](https://github.com/holmgr/cargo-sweep), a cargo subcommand to clean cargo's various temporaries. Thanks to [Viktor Holmgren](https://users.rust-lang.org/t/crate-of-the-week/2704/470) 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.

* [Mundane: Test that symbol version names are correct](https://github.com/google/mundane/issues/8).
* [Mundane: Linker bug compiling on Linux](https://github.com/google/mundane/issues/3).
* [Mundane: Pin to a particular version of BoringSSL](https://github.com/google/mundane/issues/10).
* [gcode: WebAssembly showcase website](https://github.com/Michael-F-Bryan/gcode-rs/issues/32).

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

124 pull requests were [merged in the last week][merged]

[merged]: https://github.com/search?q=is%3Apr+org%3Arust-lang+is%3Amerged+merged%3A2018-11-12..2018-11-19

* [remove "approx env bounds" if we already know from trait](https://github.com/rust-lang/rust/pull/56043)
* [resolve: implement uniform paths 2.0](https://github.com/rust-lang/rust/pull/56042)
* [chalk lowering rule: ProjectionEq-Normalize](https://github.com/rust-lang/rust/pull/52153)
* [miri backtrace improvements](https://github.com/rust-lang/rust/pull/55970)
* [fix emission of niche-filling discriminant values](https://github.com/rust-lang/rust/pull/55701)
* [avoid shared ref in UnsafeCell::get](https://github.com/rust-lang/rust/pull/56012)
* [CTFE: dynamically make sure we do not call non-const-fn](https://github.com/rust-lang/rust/pull/56007)
* [reattach all grandchildren when constructing specialization graph](https://github.com/rust-lang/rust/pull/54906)
* [ty: return impl Iterator from Predicate::walk_tys](https://github.com/rust-lang/rust/pull/55949)
* [a handful of hir tweaks](https://github.com/rust-lang/rust/pull/55930)
* [make miri value visitor useful for mutation](https://github.com/rust-lang/rust/pull/55916)
* [miri enum discriminant handling: Fix treatment of pointers, better error when it is undef](https://github.com/rust-lang/rust/pull/55894)
* [more precise spans for temps and their drops](https://github.com/rust-lang/rust/pull/55781)
* [reference count `crate_inherent_impls`s return value](https://github.com/rust-lang/rust/pull/55882)
* [unix RwLock: avoid racy access to write_locked](https://github.com/rust-lang/rust/pull/55865)
* [forward the ABI of the non-zero sized fields of an union if they have the same ABI](https://github.com/rust-lang/rust/pull/55834)
* [a few tweaks to iterations/collecting](https://github.com/rust-lang/rust/pull/55827)
* [move `static_assert!` into librustc_data_structures](https://github.com/rust-lang/rust/pull/55805)
* [wrap some query results in `Lrc`](https://github.com/rust-lang/rust/pull/55778)
* [avoid converting bytes to UTF-8 strings to print, just pass bytes to stdout/err](https://github.com/rust-lang/rust/pull/55754)
* [impl_stable_hash_for: support enums and tuple structs with generic parameters](https://github.com/rust-lang/rust/pull/55722)
* [std: Synchronize access to global env during `exec`](https://github.com/rust-lang/rust/pull/55939)
* [add mem::forget_unsized() for forgetting unsized values](https://github.com/rust-lang/rust/pull/55785)
* [core/char: speed up `to_digit()` for `radix <= 10`](https://github.com/rust-lang/rust/pull/55932)
* [add `VecDeque::resize_with`](https://github.com/rust-lang/rust/pull/56016)
* [add `FromIterator<A>` to `Box<[A]>`](https://github.com/rust-lang/rust/pull/55843)
* [speed up `String::from_utf16`](https://github.com/rust-lang/rust/pull/55530)
* [cargo: add `c` alias for `check`](https://github.com/rust-lang/cargo/pull/6218)
* [cargo: distinguish custom build invocations](https://github.com/rust-lang/cargo/pull/6331)
* [cargo: allow crate_type=bin examples to run](https://github.com/rust-lang/cargo/pull/6330)
* [rustdoc: properly calculate spans for intra-doc link resolution errors](https://github.com/rust-lang/rust/pull/55962)

## 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:

*No RFCs were approved this week.*

## 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.

### [RFCs](https://github.com/rust-lang/rfcs/labels/final-comment-period)

* [disposition: merge] [Stabilise exhaustive integer pattern matching](https://github.com/rust-lang/rfcs/pull/2591).
* [disposition: merge] [Needle API (née Pattern API)](https://github.com/rust-lang/rfcs/pull/2500).
* [disposition: close] [Add RFC for officially adopting Ferris](https://github.com/rust-lang/rfcs/pull/2328).

### [Tracking Issues & PRs](https://github.com/rust-lang/rust/labels/final-comment-period)

* [disposition: merge] [[Stabilization] Stablize using some arbitrary self types defined in std](https://github.com/rust-lang/rust/issues/55786).
* [disposition: merge] [experiment: Support aliasing local crate root in extern prelude](https://github.com/rust-lang/rust/pull/55275).
* [disposition: merge] [Refiling "#[repr(simd)] struct(isize, isize) not allowed"](https://github.com/rust-lang/rust/issues/55078).
* [disposition: merge] [Tracking issue for inclusion of `derive` in lint `unused_attributes`](https://github.com/rust-lang/rust/issues/54651).
* [disposition: merge] [Tracking issue for RFC 2361, "Simpler alternative dbg!() macro"](https://github.com/rust-lang/rust/issues/54306).
* [disposition: merge] [Tracking issue for RFC 2302, Tuple struct construction with `Self(v1, v2, ..)`](https://github.com/rust-lang/rust/issues/51994).
* [disposition: merge] [tracking issue for `?` macro repetition](https://github.com/rust-lang/rust/issues/48075).

## New RFCs

* [Symbol Mangling v2](https://github.com/rust-lang/rfcs/pull/2603).
* [#[attribute]s galore](https://github.com/rust-lang/rfcs/pull/2602).
* [Multiple Attributes in an Attribute Container](https://github.com/rust-lang/rfcs/pull/2600).

# Upcoming Events

### Online

* [Nov 28. Rust Community Team Meeting in Discord](https://discordapp.com/channels/442252698964721669/443773747350994945).
* [Dec  4. Rust Community Content Subteam Meeting in Discord](https://discordapp.com/channels/442252698964721669/443773747350994945).
* [Dec  5. Rust Events Team Meeting in Telegram](https://t.me/joinchat/EkKINhHCgZ9llzvPidOssA).
* [Dec  5. Rust Community Team Meeting in Discord](https://discordapp.com/channels/442252698964721669/443773747350994945).
* [Dec 12. Rust Community Team Meeting in Discord](https://discordapp.com/channels/442252698964721669/443773747350994945).

### Africa

* [Dec  5. Johannesburg, SA - Johannesburg meetup](https://www.meetup.com/Johannesburg-Rust-Meetup/events/jdqplqyxqbhb/).

### Asia

* [Dec  6. Pune, IN - Rust workshop at Pune, India](https://reps.mozilla.org/e/rust-community-meetup-pune/).
* [Dec 12. Hangzhou, CN - Rust Hangzhou](https://www.meetup.com/Rust-Hangzhou/events/256338781/).

### Europe

* [Nov 28. Berlin, DE - Berlin Rust Hack and Learn](https://www.meetup.com/opentechschool-berlin/events/rjgkhqyxpblc/).
* [Nov 28. Milan, IT - Milano - Welcome Webasm](https://www.meetup.com/rust-language-milano/events/256623789).
* [Nov 29. Copenhagen, DK - Copenhagen Rust Group - Hack Night #11](http://cph.rs/).
* [Dec  3. Karlsruhe, DE - Rust 2018 Edition](https://www.meetup.com/Rust-Hack-Learn-Karlsruhe/events/256200841/?_xtd=gqFyqTE5MzgwNjQ5OKFwp2FuZHJvaWQ&from=ref).
* [Dec  5. Cologne, DE - Cologne meetup](https://rust.cologne/2018/12/05/rust-2018-eve.html).
* [Dec 12. Berlin, DE - Berlin Rust Hack and Learn](https://www.meetup.com/opentechschool-berlin/events/rjgkhqyxqbqb/).
* [Dec 15 & 16. Moscow, RU - RustRush 2018](https://rustrush.ru).

### North America

* [Nov 28. Vancouver, CA - Vancouver Rust meetup](https://www.meetup.com/Vancouver-Rust/events/xttphqyxpblc/).
* [Nov 28. Ann Arbor, US - Ann Arbor Rust Meetup](https://www.meetup.com/Ann-Arbor-Rust-Meetup/events/cgsskqyxpblc/).
* [Dec  2. Mountain View, US - Rust Dev in Mountain View!](https://www.meetup.com/Rust-Dev-in-Mountain-View/events/glnfcpyxqbdb/).
* [Dec  5. Atlanta, US - Rust Atlanta Meetup](https://www.meetup.com/Rust-ATL/events/cbcmbqyxqbhb/).
* [Dec  5. Indianopolis, US - Indy.rs](https://www.meetup.com/indyrs/events/mffbtpyxqbhb/).
* [Dec  6. Phoenix, US - Phoenix 2018 Edition Release Party](https://www.meetup.com/Desert-Rustaceans/events/256503618).
* [Dec  9. Mountain View, US - Rust Dev in Mountain View!](https://www.meetup.com/Rust-Dev-in-Mountain-View/events/glnfcpyxqbmb/).
* [Dec 10. Seattle, US - Seattle Rust Meetup](https://www.meetup.com/Seattle-Rust-Meetup/events/pkggvpyxqbnb/).
* [Dec 12. Boulder, US - Rust Boulder/Denver Monthly Meeting](http://www.meetup.com/Rust-Boulder-Denver/).
* [Dec 12. Vancouver, CA - Vancouver Rust meetup](https://www.meetup.com/Vancouver-Rust/events/rzszlqyxqbqb/).

### South America

* [Nov 24. Sao Paulo, BR - Rust Meetup: Sao Paulo](https://www.meetup.com/Rust-Sao-Paulo-Meetup/events/255942981/).

If you are running a Rust event please add it to the [calendar] to get
it mentioned here. Please remember to add a link to the event too.
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

* [Software Engineer for Qwant Maps, Paris, FR](https://www.welcometothejungle.co/companies/qwant-research/jobs/software-engineer-qwant-maps_paris).
* [Embedded operating system developer, Karlsruhe, DE](https://www.pse.kit.edu/karriere/joboffer.php?id=2093&language=en).
* [Student research assistant (embedded), Karlsruhe, DE](https://twitter.com/oli_obk/status/1064856324071178240).
* [Rust Developer at Parity, Berlin, DE](https://paritytech.io/jobs/).

*Tweet us at [@ThisWeekInRust](https://twitter.com/ThisWeekInRust) to get your job offers listed here!*

# Quote of the Week

> It’s like building stuff with LEGO. Sure, it could be a single type, but then you’d need a type for every possible combination of types, which would arguably be a whole lot worse.

– Daniel Keep [on rust-users](https://users.rust-lang.org/t/help-getting-started-with-converting-c-project/22370/8)

Thanks to llogiq for the suggestion!

[Please submit your quotes for next week](http://users.rust-lang.org/t/twir-quote-of-the-week/328)!

*This Week in Rust is edited by: [nasa42](https://github.com/nasa42), [llogiq](https://github.com/llogiq), and [Flavsditz](https://github.com/Flavsditz).*

<small>[Discuss on r/rust](https://www.reddit.com/r/rust/comments/9z1mwd/this_week_in_rust_261/).</small>