cunarist / rinf

Rust for native business logic, Flutter for flexible and beautiful GUI
MIT License
1.82k stars 64 forks source link

In generated rust code, i32 to enum type conversion using from_i32() is deprecated #353

Closed yeoupooh closed 2 months ago

yeoupooh commented 2 months ago

Report

If there is an enum type in protobuf message, there is a deprecated issue in converting i32 to the enum in generated rust code like below.

This could be fixed by upgrading the prost package to v0.12.6 which is the latest one. See the related fix on the prost.

Steps to Reproduce

N/A

System Information

N/A

temeddix commented 2 months ago

Great, there will be a new version soon with this fix applied :) Thanks for the report!