Convert snake_case
to mixedCase
at compile time instead of runtime
#26
Labels
enhancement
New feature or request
methods
This applies to the `rvk_methods` crate (or to the `methods` module before the crate split)
The
rvk_methods
crate currently uses macros to "generate" functions for all methods. The issue is that in order to convertsnake_case
names intomixedCase
names expected by the VK API, a staticHashMap
is initialized for each category at runtime.This is not ideal, as it should be possible to generate everything at compile time by using proc macros and/or
build.rs
.https://github.com/u32i64/rvk/blob/64aa7bac9e95f833f0c5ba30633cf2a29c22f14d/rvk_methods/src/lib.rs#L18-L60
The text was updated successfully, but these errors were encountered: