prost-enum 0.0.2

Enhance Enums of prost generated files to support serde and sea-orm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Usage

Use `prost_enum::enhance` to make protobuf enums support better serialize / deserialize.

(Optional) Make enums to be used in Sea-ORM, which will be treated as `i32` / `Integer`.

```rust
// In build.rs
let mut config = prost_build::Config::new();
// ...
config.enum_attribute(
    ".",
    "#[prost_enum::enhance]",
);
// ...
```