8 Commits

Author SHA1 Message Date
Gabriel Cruz
20e29fd454
chore: unpoop code 2026-06-03 16:16:58 -03:00
Ivan FB
f96a5b158a
Remove wildcard event listener; keep per-event dispatch (#70) 2026-06-02 22:22:35 +02:00
Ivan FB
e0bd74232b
Rust event examples (#53)
* rust examples: sync main.rs + tokio main.rs demoing the listener API

Adds two bundled examples to the generated Rust crate:

- examples/main.rs: sync flow using std::sync::mpsc to bridge a typed
  on_echo_fired listener into main + a wildcard add_event_listener
  that uses decode_event_payload::<EchoEvent>(envelope) for the
  matching event id.
- examples/tokio_main.rs: same shape via #[tokio::main] +
  tokio::sync::mpsc.

Bumps generateCargoToml to ship `[dev-dependencies]` with tokio's
`rt-multi-thread` + `macros` features so the bundled examples can use
#[tokio::main] without polluting the library's runtime profile.

Run with `cargo run --example main` (set DYLD_LIBRARY_PATH=<repo> on
macOS until build.rs emits an rpath).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* simplify examples

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 13:34:56 -03:00
Ivan FB
c43563f82f
rust codegen: per-event typed add_on_<x>_listener + wildcard add_event_listener (#52) 2026-05-29 20:40:28 +02:00
Ivan FB
3f19411684
Event listener abi (#50) 2026-05-28 16:00:28 +02:00
Ivan FB
6a7e4616fd
Adjust events to cbor (#39) 2026-05-25 15:51:56 +02:00
Ivan FB
ac303a707e
Start using CBOR (#23)
Co-authored-by: NagyZoltanPeter <113987313+NagyZoltanPeter@users.noreply.github.com>
Co-authored-by: Gabriel Cruz <8129788+gmelodie@users.noreply.github.com>
2026-05-16 01:08:42 +02:00
Ivan FB
a52c4facd9
Simplified FFI authoring with auto-generated C++ and Rust bindings (#15) 2026-05-11 23:28:17 +02:00