From f87ad41f72ca4465a0c5b4ba9fd36a7b09e4d4f4 Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Mon, 24 Jun 2024 15:49:36 +0200 Subject: Initial commit Co-authored-by: Klaus Aehlig --- test/build-script/bar.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/build-script/bar.rs (limited to 'test/build-script/bar.rs') diff --git a/test/build-script/bar.rs b/test/build-script/bar.rs new file mode 100644 index 0000000..30de275 --- /dev/null +++ b/test/build-script/bar.rs @@ -0,0 +1,15 @@ + +#[cfg(not(bar))] +pub fn hello(){ + println!("hello bar"); +} + +#[cfg(bar)] +pub fn hello(){ + println!("hello build script"); +} + +pub fn add(a: i32, b: i32) -> i32 { + a + b +} + -- cgit v1.2.3