14:40 - 15:05 (JST)
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”.
Copyright © Rust.Tokyo 2021 all rights reserved.
過去の開催