Add proc-macro feature
authorDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 30 Mar 2023 00:50:30 +0000 (09:50 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 30 Mar 2023 00:50:30 +0000 (09:50 +0900)
packaging/rust-synstructure.spec

index f3cff85..f27d913 100644 (file)
@@ -51,6 +51,7 @@ cp %{SOURCE1} .
 %{rustc_std_build} --crate-type=dylib \
         --crate-name=%{real_crate_name} \
         %{?rustc_edition:--edition=%{rustc_edition}} \
+        --cfg='feature="proc-macro"' \
         %rust_dylib_extern proc_macro2 \
         %rust_dylib_extern quote \
         %rust_dylib_extern syn \