rustler
rustler copied to clipboard
Safe Rust bridge for creating Erlang NIF functions
I want to call BPF functions through Rust, but as soon as I have an invocation of its loader class in my code, I get an error: ``` = note:...
This PR builds on the previous work of @turion (https://github.com/rusterlium/rustler/pull/430), @SeokminHong (https://github.com/rusterlium/rustler/pull/430#issuecomment-1175816881) and @neosimsim (https://github.com/rusterlium/rustler/pull/471), so kudos to them, this PR only attempts to complete their prior work. Handling lifetimes...
Small failing example: ```rust use rustler::NifTuple; #[derive(NifTuple)] struct Foo { t: T, t2: T, } fn main() { } ``` ``` error[E0107]: missing generics for struct `Foo` --> src/main.rs:4:8 |...
Work in progress to fix #428
I recently started work on [ex-gpgme](https://github.com/fastjames/ex-gpgme) to bring it up to date for use in an application. While I have been able to update rustler to 0.25.0, I have encountered...
I've gone through and added inline to some commonly used functions. If everyone is happy, we could also add these to others. We should judge **what** should be inlined. See...
I'm having trouble making rustler compile my crate in `release` mode. `MIX_ENV` does not seem to have any impact. Is there a switch I can use somewhere? On version 0.25.0
Hello, I'm encountered error on file rights in compilation. I'm working on Docker container based on the official `docker.io/elixir:otp-25` image (running on [lima](https://github.com/lima-vm/lima) vm and the host machine is M1...
Can we implement `std::hash::Hash` for `Atom` like this: ```rust impl std::hash::Hash for Atom { fn hash(&self, state: &mut H) { state.write_usize(self.term) } } ``` If so, I can open up...
Closes #470