Can you pass tokens from quote! macro into other macros

So, you intend to call a third-party proc-macro from within your own proc-macro. Alas, the "obvious" step of saying that you depend on their proc-macro crate to call their function implementation is not possible:

//! This, alas, doesn't work
::rocket_okapi_codegen::routes_with_openapi(
    quote!(#a, #b).into()
)

So, instead, you need to call their macro as a macro, that is, inside the emitted code:

quote!(
    ::some::path::routes_with_openapi![ #a, #b ];
)

And then remains the question of the crate setup and what ::some::path should be. I've explained those in detail in the following post: