#![cfg(feature = "examples")]
use std::io;
#[path = "resp_codec_impl/mod.rs"]
mod resp_codec_impl;
pub use resp_codec_impl::{codec::RespFrameCodec, frame::RespFrame};
use wireframe::{
app::{Envelope, WireframeApp},
serializer::BincodeSerializer,
};
fn main() -> io::Result<()> {
let app = WireframeApp::<BincodeSerializer, (), Envelope>::new()
.map_err(|error| io::Error::other(error.to_string()))?
.with_codec(RespFrameCodec::new(1024))
.route(1, std::sync::Arc::new(|_: &Envelope| Box::pin(async {})))
.map_err(|error| io::Error::other(error.to_string()))?;
let _ = app;
Ok(())
}