When trying to install schemafy using cargo install schemafy I see the following error:
error[E0433]: failed to resolve: use of undeclared type or module `proc_macro`
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/schemafy-0.5.1/src/lib.rs:83:39
|
83 | fn build_tokens(mut self, tokens: proc_macro::TokenStream) -> proc_macro::TokenStream {
| ^^^^^^^^^^ use of undeclared type or module `proc_macro`
error[E0433]: failed to resolve: use of undeclared type or module `proc_macro`
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/schemafy-0.5.1/src/lib.rs:83:67
|
83 | fn build_tokens(mut self, tokens: proc_macro::TokenStream) -> proc_macro::TokenStream {
| ^^^^^^^^^^ use of undeclared type or module `proc_macro`
error[E0433]: failed to resolve: use of undeclared type or module `proc_macro`
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/schemafy-0.5.1/src/lib.rs:157:25
|
157 | pub fn schemafy(tokens: proc_macro::TokenStream) -> proc_macro::TokenStream {
| ^^^^^^^^^^ use of undeclared type or module `proc_macro`
error[E0433]: failed to resolve: use of undeclared type or module `proc_macro`
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/schemafy-0.5.1/src/lib.rs:157:53
|
157 | pub fn schemafy(tokens: proc_macro::TokenStream) -> proc_macro::TokenStream {
| ^^^^^^^^^^ use of undeclared type or module `proc_macro`
error[E0433]: failed to resolve: use of undeclared type or module `proc_macro`
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/schemafy-0.5.1/src/lib.rs:166:27
|
166 | pub fn regenerate(tokens: proc_macro::TokenStream) -> proc_macro::TokenStream {
| ^^^^^^^^^^ use of undeclared type or module `proc_macro`
error[E0433]: failed to resolve: use of undeclared type or module `proc_macro`
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/schemafy-0.5.1/src/lib.rs:166:55
|
166 | pub fn regenerate(tokens: proc_macro::TokenStream) -> proc_macro::TokenStream {
| ^^^^^^^^^^ use of undeclared type or module `proc_macro`
error: aborting due to 6 previous errors
Simply replacing proc_macro with proc_macro2 in src/lib.rs sadly did not cut it.
When trying to install schemafy using
cargo install schemafy
I see the following error:Simply replacing
proc_macro
withproc_macro2
insrc/lib.rs
sadly did not cut it.Best, Michel