Closed mina86 closed 8 months ago
error: package
half v2.3.1
cannot be built because it requires rustc 1.70 or newer, while the currently active rustc version is 1.65.0
What about this failure then?
error: package
half v2.3.1
cannot be built because it requires rustc 1.70 or newer, while the currently active rustc version is 1.65.0What about this failure then?
It seems the MSRV is no longer accurate. This PR is trying to fix that: https://github.com/tokio-rs/prost/pull/975
Please rebase to the latest master branch to fix CI
When deriving prost::Name, prost-bulid generates the following code for full_name and type_url methods:
With those definitions, type_url:
Most of those operations can be done at build time with only a single string allocation being necessary in type_url method.
Change the generated code such that no formatting happens at run time and no temporary strings are allocated in type_url, specifically:
Furthermore, unconditionally derive type_url even if no domain is specified such that default definition (which uses temporary strings and formatting) isn’t used.