1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#![doc = include_str!("../README.md")]

pub use fluvio_smartmodule_derive::{smartmodule, SmartOpt};
pub const ENCODING_ERROR: i32 = -1;

pub use eyre::Error;
pub use eyre::eyre;
pub type Result<T> = eyre::Result<T>;

/// used only in smartmodule
#[cfg(feature = "smartmodule")]
pub mod memory;

pub use fluvio_protocol::record::{Record, RecordData};
/// remap to old data plane
pub mod dataplane {
    pub mod smartmodule {
        pub use crate::input::*;
        pub use crate::output::*;
        pub use crate::error::*;
        pub use fluvio_protocol::link::smartmodule::*;
    }
    pub mod core {
        pub use fluvio_protocol::*;
    }
    pub mod record {
        pub use fluvio_protocol::record::*;
    }
}

mod input;
mod output;
mod error;