1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de> // // SPDX-License-Identifier: LGPL-2.1-or-later use proc_macro::TokenStream; use quote::quote; /// Collect licensing information at build-time. #[proc_macro] pub fn collect(_item: TokenStream) -> TokenStream { let licensing = embed_licensing_core::collect().expect("metadata collection failed"); quote! { #licensing } .into() }