Rise Chen
Rise Chen
You can test [this code](https://github.com/rise0chen/nix_test) in ubuntu:16.04 with docker. rustc 1.65.0 (897e37553 2022-11-02)
I have updated to the latest stable rust. It also can't work. stable-x86_64-unknown-linux-gnu updated - rustc 1.67.1 (d5a82bbd2 2023-02-07) (from rustc 1.65.0 (897e37553 2022-11-02))
It can work when I set ```toml [profile.dev] lto = true [profile.release] lto = true ``` in `Cargo.toml`
No, I not want to use `pregenerated-bindings`. I have success to run this project by manual configure. I run `bootstrap` , `configure` and set `ETHERCAT_PATH` env, then run `cargo run`,...
Can I call `ethercat-sys/build.rs` in my `build.rs`?
Because of I use this version https://github.com/mlua-rs/mlua/pull/498. It set a global hook. I modify code that set hook for every thread manually: ``` use core::time::Duration; use futures_util::future::select_all; use mlua::prelude::*; fn...
> > `let lua = Lua::new();` > > must be `let lua = unsafe { Lua::unsafe_new_with(LuaStdLib::ALL, LuaOptions::default()) };` since `debug` module is not enabled by default. > > > `thread.set_hook(LuaHookTriggers::EVERY_LINE,...
```rust use core::time::Duration; use futures_util::future::select_all; use mlua::prelude::*; fn global_hook_ok(_lua: &Lua, debug: mlua::Debug) -> LuaResult { let source = debug .source() .source .unwrap_or(std::borrow::Cow::Borrowed("~")); let is_rust = source.len() < 2; println!("lua hook({}):...