tendermint-abci 0.32.2

tendermint-abci provides a simple framework with which to build low-level applications on top of Tendermint.
Documentation
//! Integration tests for ABCI client/server.

#[cfg(all(feature = "client", feature = "echo-app"))]
mod echo_app_integration {
    use tendermint_abci::{ClientBuilder, EchoApp, ServerBuilder};
    use tendermint_proto::v0_37::abci::RequestEcho;

    #[test]
    fn echo() {
        let server = ServerBuilder::default()
            .bind("127.0.0.1:0", EchoApp)
            .unwrap();
        let server_addr = server.local_addr();
        let _ = std::thread::spawn(move || server.listen());
        let mut client = ClientBuilder::default().connect(server_addr).unwrap();

        let response = client
            .echo(RequestEcho {
                message: "Hello ABCI!".to_string(),
            })
            .unwrap();
        assert_eq!(response.message, "Hello ABCI!");
    }
}