Remove no_std feature accepted/tizen_rust tizen accepted/tizen/rust/20231016.021713
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 22 Mar 2023 01:36:21 +0000 (10:36 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 22 Mar 2023 01:36:21 +0000 (10:36 +0900)
packaging/extern.patch [new file with mode: 0644]
packaging/rust-proc-macro-nested.spec

diff --git a/packaging/extern.patch b/packaging/extern.patch
new file mode 100644 (file)
index 0000000..d99c897
--- /dev/null
@@ -0,0 +1,12 @@
+diff --git a/src/lib.rs b/src/lib.rs
+index 0a8a675..dc3f79e 100644
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -38,7 +38,6 @@
+ //!
+ //! - Only up to 64 nested invocations are supported.
+-#![no_std]
+ include!(concat!(env!("OUT_DIR"), env!("PATH_SEPARATOR"), "count.rs"));
index df6562bfbccb4ed4afe3948478aafd00cc91ee77..906881f25c93b25b50332dfb7080daa3291741f6 100644 (file)
@@ -15,6 +15,7 @@ License:        MIT OR Apache-2.0
 URL:            https://crates.io/crates/proc-macro-nested
 Source:         %{crate}-%{version}.tar.gz
 Source1:        %{name}.manifest
+Source2:        extern.patch
 
 # ==========================================================
 # BuildRequires
@@ -30,6 +31,7 @@ Support for nested proc-macro-hack invocations.
 %prep
 %setup -q
 cp %{SOURCE1} .
+%{__patch} -p1 < %{SOURCE2}
 
 # ==========================================================
 # build section