mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 02:19:22 +02:00
align descriptions
This commit is contained in:
@ -6,7 +6,7 @@ authors = [
|
||||
"kingxsp <jin.hb.zh@outlook.com>",
|
||||
"Yuki Okushi <huyuumi.dev@gmail.com>",
|
||||
]
|
||||
description = "Protobuf support for Actix Web"
|
||||
description = "Protobuf payload extractor for Actix Web"
|
||||
keywords = ["actix", "web", "protobuf", "protocol", "rpc"]
|
||||
homepage = "https://actix.rs"
|
||||
repository = "https://github.com/actix/actix-extras.git"
|
||||
|
@ -1,6 +1,6 @@
|
||||
# actix-protobuf
|
||||
|
||||
> Protobuf support for Actix Web.
|
||||
> Protobuf payload extractor for Actix Web.
|
||||
|
||||
[](https://crates.io/crates/actix-protobuf)
|
||||
[](https://docs.rs/actix-protobuf/0.8.0)
|
||||
@ -23,6 +23,7 @@ use actix_web::*;
|
||||
pub struct MyObj {
|
||||
#[prost(int32, tag = "1")]
|
||||
pub number: i32,
|
||||
|
||||
#[prost(string, tag = "2")]
|
||||
pub name: String,
|
||||
}
|
||||
@ -33,7 +34,7 @@ async fn index(msg: ProtoBuf<MyObj>) -> Result<HttpResponse> {
|
||||
}
|
||||
```
|
||||
|
||||
See [here](https://github.com/actix/actix-extras/tree/master/actix-protobuf/examples/prost-example) for the complete example.
|
||||
See [here](https://github.com/actix/examples/tree/master/protobuf) for the complete example.
|
||||
|
||||
## License
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
//! Protobuf payload extractor for Actix Web.
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(rust_2018_idioms, nonstandard_style)]
|
||||
#![warn(future_incompatible)]
|
||||
|
Reference in New Issue
Block a user