Unsafe in Rust (use case with sysinfo)

  • 14:40 - 15:05 (JST)

    • 発表言語: English
    • 字幕言語: 日本語

Rust is a system language and sysinfo provides system information. It can be interesting to present what happens when you try to get such low level information such as the traps that you may encounter on the way. For example, how to iterate over a “C array” (which is basically just a pointer) by wrapping them inside a struct or how to handle memory allocation/free automatically by using the Drop trait.

The sysinfo crate is a very good representant of such technical issues since it interacts directly with systems by querying low-level APIs and is one of the oldest Rust crates. It allows to see how it works in such “unsafe environments” with “unsafe calls” from “unsafe system libraries”.

シェアしましょう!


プロフィール

Rust language reviewer and contributor, rustdoc team leader, “low-level” adventurer, trying to extract all information from the system before it all breaks down.

Copyright © Rust.Tokyo 2021 all rights reserved.


特定商取引法に基づく表示

Twitterもぜひフォローしてください! @rustlang_tokyo

お問い合わせ: rust-tokyo-staff@googlegroups.com

過去の開催