#scope #enums #oauth2 #generate #google #macro #proc

macro tlns-google-oauth2-proc

A half-assed procedural macro that generates Scope enums and trait that converting the scopes back and fourth

4 releases

0.2.1 Jul 4, 2024
0.2.0 Jul 1, 2024
0.1.1 Jul 1, 2024
0.1.0 Jun 30, 2024

#1426 in Procedural macros

Download history 415/week @ 2024-06-28 89/week @ 2024-07-05 11/week @ 2024-07-12 2/week @ 2024-07-19

181 downloads per month
Used in tlns-google-oauth2

MIT license

12KB
238 lines

tlns-google-oauth2-proc

This crate contains generate_scopes_enums!() that will generate a bunch of enum scopes with full scope conversion. This is intended to be used in tlns-google-oauth2 but you can make changes to it.

Dependencies

~4–6MB
~131K SLoC