Size: a a a

Rust — русскоговорящее сообщество

2021 June 27

NK

ID:0 in Rust — русскоговорящее сообщество
источник

NK

ID:0 in Rust — русскоговорящее сообщество
Updates from core

fix force-warns to allow dashes
rust-lang/rust/pull/86117

suggest a trailing comma if a 1-tuple is expected and a parenthesized expression is found
rust-lang/rust/pull/86116

do not suggest to add type annotations for unnameable types
rust-lang/rust/pull/86215

to_digit simplification (less jumps)
rust-lang/rust/pull/85630

multiple improvements to RwLocks
rust-lang/rust/pull/84687

add Ipv6Addr::is_unicast
rust-lang/rust/pull/85791

stabilize wasm simd intrinsics
rust-lang/rust/pull/86204

stabilize maybe_uninit_ref
rust-lang/rust/pull/86273

stabilize simd_x86_bittest
rust-lang/rust/pull/86233

cargo: implement warning for ignored trailing arguments
rust-lang/cargo/pull/9561

clippy: fix while_let_on_iterator suggestion in a closure
rust-lang/rust-clippy/pull/7262

clippy: remove requirement of fully qualified path for disallowed_method/type
rust-lang/rust-clippy/pull/7345

clippy: fix false positive on semicolon_if_nothing_returned
rust-lang/rust-clippy/pull/7326

clippy: fix false positive in default_numeric_fallback with external macro expansion
rust-lang/rust-clippy/pull/7325

clippy: Vec extend to append
rust-lang/rust-clippy/pull/7270

BPF target support
rust-lang/rust/pull/79608

support for force-warns
rust-lang/rust/pull/85788

improve debugging experience for enums on windows-msvc
rust-lang/rust/pull/85292

parser: ensure that all nonterminals have tokens after parsing
rust-lang/rust/pull/84995

don't suggest unsized indirection in where-clauses
rust-lang/rust/pull/85979

rustc: allow safe #[target_feature] on wasm
rust-lang/rust/pull/84988

always go through the expn_that_defined query
rust-lang/rust/pull/86002

perf: miscellaneous inlining improvements
rust-lang/rust/pull/85892

perf: only compute the trait map once
rust-lang/rust/pull/85905

stabilize vecdeque_binary_search
rust-lang/rust/pull/83362

update standard library for IntoIterator implementation of arrays
rust-lang/rust/pull/85930

clippy: don't warn about cfg!(..) as a constant in assertions
rust-lang/rust-clippy/pull/7319

clippy: fix needless_collect with binding shadowing
rust-lang/rust-clippy/pull/7289

clippy: add lint manual_str_repeat
rust-lang/rust-clippy/pull/7265
источник

NK

ID:0 in Rust — русскоговорящее сообщество
Updates from Rust Community

Official
[Inside] 1.53.0 pre-release testing
blog.rust-lang.org

[Inside] Please welcome Boxy, Léo Lanteri Thauvin and the8472 to compiler-contributors
blog.rust-lang.org

Newsletters
This Month in Rust GameDev #22 - May 2021
gamedev.rs

Project/Tooling Updates
rust-analyzer Changelog #81
rust-analyzer.github.io

AWS-SDK-Rust: CloudFormation, SageMaker, EC2, and SES
awslabs/aws-sdk-rust/releases/tag/v0.0.8-alpha

Announcing Aya
confused.ai

This Week In TensorBase 7
tensorbase.io

Introducing cap-std, a capability-based version of the Rust standard library
blog.sunfishcode.online

Wasmer 2.0, it's a big deal!
wasmer.io

New crate announcement, iterate
www.reddit.com

ripgrep 13.0.0 release
BurntSushi/ripgrep/releases/tag/13.0.0

Observations/Thoughts
A few thoughts on Fuchsia security
blog.cr0.org

On using Rust to implement shell history search/sync (interview with Ellie Huxtable)
console.dev

Visualizing memory management in Rust
deepu.tech

[audio] Using Rust with Flutter
youtu.be

Rust Walkthroughs
Embedded-Rust: Build & Flash binary to STM32F3DISCOVERY
blog.knoldus.com

Learning to Fly: Let's simulate evolution in Rust! (pt 4)
pwy.io

Baby's first Rust with extra steps (XPC, launchd, and FFI)!
dstancu.net

Speeding Up the WebCola Graph Viz Library with Rust + WebAssembly
cprimozic.net

From NAND to Raytracer: Raytracing on the Hack computer (feat. Rust)
blog.alexqua.ch

Cacao: Building macOS (and iOS) Apps in Rust
rymc.io

Build an API in Rust (Part 1)
dev.to

Learn to Build a Parser in Rust for Fun and Profit
dev.to

Beginner's Guide to Running Rust on AWS Lambda
dev.to

A Command Line Key-Value Data Store using the Rust Programming Language.
dev.to

How to use casbin authorization in your rust web-app (part 3)
dev.to

Speeding up incoming message parsing by 3- to 10-times by switching from serde to the nom library
medium.com/tezedge

[ZH] [series] Build front-end web apps with Yew and WebAssembly in Rust -part 3: Assets & Refactor (Rust 和 Wasm 的融合,使用 yew 构建 web 前端(3)- 资源文件及小重构)
blog.budshome.com

[ZH] [series] Build front-end web apps with Yew and WebAssembly in Rust -part 4: GraphQL data & Parsing (Rust 和 Wasm 的融合,使用 yew 构建 web 前端(4)- 获取 GraphQL 数据并解析)
blog.budshome.com

[video] Building a Web Application with Rust - Part 1 - Configuration
youtu.be

[video] Building a Web Application with Rust - Part 2 - Database Setup
youtu.be

[video] Lock-Free to Wait-Free Simulation in Rust (part 2)
youtu.be

Miscellaneous
Meet the Rustaceans: A series of interviews with Facebook Rust engineers
developers.facebook.com

Pop!_OS uses a lot of Rust
www.reddit.com

[video] Keynote: Bryan Cantrill - Hardware/Software Co-design: The Coming Golden Age
youtu.be
источник

NK

ID:0 in Rust — русскоговорящее сообщество
Crate of the week: nativeshell

This week has two crates: nativeshell gets you a Flutter app in Rust, while static-rc is a compile-time reference-counted smart pointer.
источник

NK

ID:0 in Rust — русскоговорящее сообщество
источник

NK

ID:0 in Rust — русскоговорящее сообщество
Updates from core

use AttrVec for Arm, FieldDef, and Variant
rust-lang/rust/pull/86385

prefer partition_point to look up assoc items
rust-lang/rust/pull/86392

lint for unused borrows as part of UNUSED_MUST_USE
rust-lang/rust/pull/86426

miri: report an error if a #[no_mangle]/#[export_name = ...] function has the same symbol name as a built-in shim
rust-lang/miri/pull/1832

fix span calculation in format strings
rust-lang/rust/pull/86104

stabilize span_open() and span_close()
rust-lang/rust/pull/86136

stabilize ops::ControlFlow (just the type)
rust-lang/rust/pull/85608

linear interpolation
rust-lang/rust/pull/85925

add functions Duration::try_from_secs_{f32, `f64'}
rust-lang/rust/pull/82179

specialize io::Bytes::size_hint for more types
rust-lang/rust/pull/86202

optimize Eq implementation for paths
rust-lang/rust/pull/86179

integrate binary search codes of binary_search_by and partition_point
rust-lang/rust/pull/85406

futures: introduce stream::select_with_strategy
rust-lang/futures-rs/pull/2450

cargo: don't allow config env to modify vars set by cargo
rust-lang/cargo/pull/9579

cargo: avoid quadratic complexity when splitting output into lines
rust-lang/cargo/pull/9586

rustdoc: fix ICE when using #[doc(keyword = "...")] on non-items
rust-lang/rust/pull/86401

rustdoc: account for const-unstable functions
rust-lang/rust/pull/86473

clippy: fix wrong config option being suggested for deprecated wrong_pub_self_convention lint
rust-lang/rust-clippy/pull/7382

clippy: improve panic message on "Found multiple rlibs" error in compile-test
rust-lang/rust-clippy/pull/7380

clippy: add macro_braces lint to check for irregular brace use in certain macros
rust-lang/rust-clippy/pull/7299

clippy: check for unbalanced tick pairs in doc_markdown lint
rust-lang/rust-clippy/pull/7357

clippy: move from-iter-instead-of-collect to pedantic
rust-lang/rust-clippy/pull/7375
источник

NK

ID:0 in Rust — русскоговорящее сообщество
Updates from Rust Community

Official
Announcing Rust 1.53.0
blog.rust-lang.org

[Inside] Rust Compiler June Steering Cycle
blog.rust-lang.org

Project/Tooling Updates
rust-analyzer Changelog #82
rust-analyzer.github.io

IntelliJ Rust Changelog #149
intellij-rust.github.io

rustymind - Parse and visualize brainwaves with Rust
junjunjd/rustymind

This Week In TensorBase 8
tensorbase.io

Supporting Miguel Ojeda's Work on Rust in the Linux Kernel
www.memorysafety.org

rustc_codegen_gcc: Progress Report #1
blog.antoyo.xyz

Observations/Thoughts
Walking through "The Java Tutorials" with Rust - boxed trait objects and the search for inheritance
rust-java-tutorials.netlify.app

WABT: A wonderful CLI for manipulating Wasm
blog.knoldus.com

wasm-bindgen making Rust and JavaScript interoperability easy
blog.knoldus.com

Type-checked keypaths in Rust
www.cmyr.net

Exploring ways to make async Rust easier
carllerche.com

Reading Back What You Wrote in Rust
www.morsecodist.io

First Rust Project: A Chess Engine
www.reddit.com

Rust vs C++ for game development
blog.logrocket.com

Skipping Tests in Rust
plume.benboeckel.net

[ZH] Build a Gameboy emulator in Rust
yodalee.me

[video] Why the future of the cloud will be built on Rust - Oliver Gould, Buoyant
youtu.be

Rust Walkthroughs
Rust and AWS Lambda
mitchgollub.com

Deserializing Binary Data Files in Rust
adventures.michaelfbryan.com

Yet Another Snazzy Rust CLI
dev.to

Build an API in Rust (Part 2)
dev.to

Polymorphism in Rust
oswalt.dev

Getting started with MongoDB and Redis in Rust
romankudryashov.com

Making My Website Part 1: Monitoring On A Raspberry Pi
www.rotoclone.zone

[ZH] Develop WebAssembly Program in Rust
yodalee.me

[video] Rust Fuzzing #3: How to write (better) Rust fuzz targets?
youtu.be

[video] Building a Web Application with Rust - Part III - Database Manager
youtu.be

[video] Building a Web Application with Rust - Part IV - HTTP Server
youtu.be

Miscellaneous
Rust is not a Company
blog.m-ou.se

Google Wants To See Rust Code In The Linux Kernel, Contracts The Main Developer
www.phoronix.com

Rust is the most wanted language by Godot Engine users
www.reddit.com
источник

NK

ID:0 in Rust — русскоговорящее сообщество
Crate of the week: serde-encrypt

This week's crate is serde-encrypt, a library that adds encryption to all Serialize impls.
источник

AB

Ayrat Badykov in Rust — русскоговорящее сообщество
написал пост о проблемах background обработки и о библиотеке, которую я написал для этого
https://www.badykov.com/rust/2021/06/27/fang/
источник

С

Сергей in Rust — русскоговорящее сообщество
Коллеги, подскажите, пожалуйста, как использовать (https://github.com/tokio-rs/tracing) чтобы в логах выводилась информация с файлом и номером строки где пишется лог. pretty() эту инфу выводит, но слишком pretty, так что на лог по 4 строки уходит. Я хочу лог в одну строчку, но с инфой о файле. Есть такая возможность?
Вот так инитиализирую:
    tracing_subscriber::fmt()
       .with_level(true)
       .with_thread_names(true)
       .with_max_level(tracing::Level::TRACE)
       .init();
источник

c⁣

createStore<🦉>... in Rust — русскоговорящее сообщество
источник

V

Vetro in Rust — русскоговорящее сообщество
источник

Z

Zymlex (Юрий) in Rust — русскоговорящее сообщество
Если каждый объект в структуре зависит от предыдущего и требует действий перед дропом, то для правильного дропа их стоит расположить в обратном порядке, а для каждого типа в структуре реализовать Drop? Возможно ли самому указать порядок дропа в структуре?
источник

V

Vetro in Rust — русскоговорящее сообщество
The fields of a struct are dropped in declaration order.
источник

V

Vetro in Rust — русскоговорящее сообщество
источник

Z

Zymlex (Юрий) in Rust — русскоговорящее сообщество
т.е. с первого?
источник

V

Vetro in Rust — русскоговорящее сообщество
+
источник

V

Vetro in Rust — русскоговорящее сообщество
сверху вниз, короче
источник

Z

Zymlex (Юрий) in Rust — русскоговорящее сообщество
странно, конечно
источник

AW

Alex Wow in Rust — русскоговорящее сообщество
Логично
Ты же читаешь сверху вниз ,а не снизу вверх
источник