Rise Chen
Rise Chen
```lua debug.sethook(function() sleep(10) end, "l") sleep(1000) ``` ```bash runtime error: attempt to yield across a C-call boundary stack traceback: [C]: in function 'coroutine.yield' [string "?"]:9: in function 'sleep' [string "main"]:1:...
```rust fn main() { println!("{:?}", nix::unistd::gethostname()); } ``` ``` = note: /root/build/release/deps/libnix-fca8cee73dd370df.rlib(nix-fca8cee73dd370df.nix.9961a42b-cgu.2.rcgu.o): In function `nix::sys::memfd::memfd_create::hbef039c9926ba4f0': nix.9961a42b-cgu.2:(.text._ZN3nix3sys5memfd12memfd_create17hbef039c9926ba4f0E+0x5): undefined reference to `memfd_create' collect2: error: ld returned 1 exit status = help: some...

I want to configure `Ethercat master` in `build.rs` of my project. ```rs fn main() -> Result { use std::process::Command; use std::{env, fs}; let dir = fs::canonicalize("./vendor/etherlab")?; env::set_var("ETHERCAT_PATH", &dir); env::set_current_dir(&dir)?; Command::new(format!("{}/bootstrap",...
```rust use core::time::Duration; use futures_util::future::select_all; use mlua::prelude::*; async fn sleep(_lua: Lua, ms: u64) -> LuaResult { tokio::time::sleep(Duration::from_millis(ms)).await; Ok(()) } async fn select(_lua: Lua, threads: LuaMultiValue) -> LuaResult { let futs:...
`serialport` is using v0.26. I think we should keep pace with `serialport`