Awesome Open Source
Awesome Open Source

Actix-web ProtoBuf Build Status codecov Join the chat at

Protobuf support for actix-web framework.

NOTICE: This repository has been archived. Please visit instead.


use actix_protobuf::*;
use actix_web::*;

#[derive(Clone, PartialEq, Message)]
pub struct MyObj {
    #[prost(int32, tag = "1")]
    pub number: i32,
    #[prost(string, tag = "2")]
    pub name: String,

async fn index(msg: ProtoBuf<MyObj>) -> Result<HttpResponse> {
    println!("model: {:?}", msg);
    HttpResponse::Ok().protobuf(msg.0) // <- send response

See here for the complete example.


This project is licensed under either of

at your option.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Rust (61,699
Protobuf (1,267
Rust Library (691
Related Projects