Philipp Oppermann
7232a31b57
Send `InputClosed` events to operators too
3 years ago
Philipp Oppermann
1213d70efb
Mark operator `Event` type as `non_exhaustive`
3 years ago
Philipp Oppermann
cdc0be1206
Rename `FfiEvent` to `RawEvent`
3 years ago
Philipp Oppermann
62319f1ec1
Add support for Rust operators again
3 years ago
Philipp Oppermann
d8260d5d2c
Inherit package version from workspace root
This way, we don't need to update the version manually in all sub-crates on every release.
3 years ago
haixuanTao
9a0b303e98
Replace all versions to `v0.1.1`
3 years ago
Philipp Oppermann
5375628930
Allow operators to stop the full dataflow
Useful in case of emergencies.
3 years ago
Philipp Oppermann
f473c856c1
Fix clippy warnings across whole projects
3 years ago
Philipp Oppermann
c54209ff98
Pass `SendOutput` by reference
3 years ago
Philipp Oppermann
933affaf16
Rename type
3 years ago
Philipp Oppermann
a2fd5b0ebd
Autogenerate the `operator_api.h` header file
3 years ago
Philipp Oppermann
dcd3f8f18d
Rework raw operator API to support the `#[ffi_export]` attribute of `safer-ffi`
Requires removing the lifetime of the `SendOutput` type. We now use a `'static` Arc-owned closure instead.
To make sure that all types show up in the C header files that we'll generate, we make sure that all the top-level types use `#[repr(C)]` instead of `#[repr(transparent)]`.
3 years ago
Philipp Oppermann
1bf0be0140
Switch back to upstream version of `safer-ffi`
3 years ago
Philipp Oppermann
b0cf6fa4f5
Rework raw operator API on top of `safer-api` crate
Allows a higher-level interface
3 years ago
Philipp Oppermann
8e21a990d0
Create a Rust dataflow example
The example shows how to use the dora node and operator APIs.
3 years ago
Philipp Oppermann
825e9a8d7b
Allow operators to stop themselves through a special return value
Useful for source operators that take timers as inputs. Without an explicit stop instructions, they would always run forever.
3 years ago
haixuanTao
28a902d83a
Moving folders in correspondance with #41
Simply moving crate to mirror our discussion without touching at names
3 years ago