linux/rust/macros
Gary Guo 70a21e54a4 rust: macros: add quote! macro
Add the `quote!` macro for creating `TokenStream`s directly via the
given Rust tokens. It also supports repetitions using iterators.

It will be used by the pin-init API proc-macros to generate code.

Signed-off-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Andreas Hindborg <a.hindborg@samsung.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20230408122429.1103522-3-y86-dev@protonmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2023-04-12 18:41:05 +02:00
..
concat_idents.rs rust: macros: add concat_idents! proc macro 2022-12-04 01:59:04 +01:00
helpers.rs rust: macros: Allow specifying multiple module aliases 2023-04-10 23:55:43 +02:00
lib.rs rust: macros: add quote! macro 2023-04-12 18:41:05 +02:00
module.rs rust: error: Rename to_kernel_errno() -> to_errno() 2023-04-12 18:41:04 +02:00
quote.rs rust: macros: add quote! macro 2023-04-12 18:41:05 +02:00
vtable.rs rust: macros: add #[vtable] proc macro 2022-12-04 01:59:15 +01:00