Rust 1.39
blog.rust-lang.org
blog.rust-lang.org
It's important because unless rustfmt is available, bindgen would put everything onto one line: https://github.com/rust-lang/rust-bindgen/issues/1600
Rustc would generate (unrelated) warnings for the generated code but before the bugfix it'd print the entire line, hitting the maximum log size limit on CI and causing the build to fail because of that.
These unexpected behaviours are tough to nail down when one is trying to get the code/setup working. Really appreciate the time these fixes potentially save for future users. The complex nature probably also hints at maturity of Rust codebase.
#[cfg(windows)] slice: &[u16]
Am I the only one who finds this syntax ugly - to the point of being inappropriate for a general-purpose programming language?Maybe it just takes a bit of familiarity with the language, but everything does fit together really well after the initial learning phases.
That said, only one or the other should probably be on HN; it's a tough call as to which. This post is more general, but people are going to care about async/await more than anything else...
Right now the other post is enjoying more attention and has meaningful engaging discussion. Requesting @dang to remove this (21473257) from front page and possibly tag the other one (21473259) with 1.39.0 release.
WASM lets me reuse the same codebase to host demos/previews/simpler games directly inside of a website, without needing to convince the user it's trustworthy and worth their time to download/install/grant permissions to first.
I'm sure other SPAs could also see benefits...
P.D: I'm building a relational language (not engine, but could be part of it)
Now I support: Scalars, Vectors, Tables (Vectors of Row vectors) and Indexed tables (Table alike on top of BTree). Now i'm trying to solve how incorporate iterators (https://www.reddit.com/r/rust/comments/dnhzo1/for_a_interpre...). Solving this the lang is ready to go for a MPV.
I plan to use for real for my projects, so is not just a exercise for fun.
rustup target add wasm32-unknown-unknown
Targeting browser APIs is a little more involved, generally requiring either: cargo install cargo-web
cargo web build [...]
for stdweb, or for web-sys: cargo install wasm-pack
wasm-pack build [...]