You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using version 2.2.5 from Cargo, if I do any of the following:
use protobuf::text_format::print_to_string;
use protobuf::text_format::print_to;
use protobuf::text_format::fmt;
use protobuf::text_format::quote_escape_bytes;
they all work fine, however if I do:
use protobuf::text_format::merge_from_str;
I get compile error:
error[E0432]: unresolved import protobuf::text_format::merge_from_str
--> src/main.rs:10:5
|
10 | use protobuf::text_format::merge_from_str;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no merge_from_str in text_format
The text was updated successfully, but these errors were encountered:
I went and viewed my internal crates.io cache of the source code and it looks like it's still using the version from May when text_format was a single.rs file rather than a directory
Reflection for mutability is not implemented in the stable 2.x branches.
And porting this change to stable branch is either impossible or very hard without breaking backward compatibility.
So the easiest way to fix it is to release version 3.
The major drawback against releasing version 3 is the fact that version 2 was released just 7 months ago.
And also I have some uncertainties about APIs in version 3. E. g. I would really reduce generated code size (see #339) as a feature of version 3, but I don't yet know how to do it.
I'm using version 2.2.5 from Cargo, if I do any of the following:
they all work fine, however if I do:
use protobuf::text_format::merge_from_str;
I get compile error:
The text was updated successfully, but these errors were encountered: