From 6a8dfd26782f27a0091cc9a33ac7af3dce459522 Mon Sep 17 00:00:00 2001 From: Daniel Sanchez Quiros Date: Tue, 27 Sep 2022 08:39:15 +0200 Subject: [PATCH] Added missing cargo config --- .cargo/config.toml | 4 ++++ waku-sys/build.rs | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..17b73c8 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,4 @@ +[build] +# when using osx, we need to link against some golang libraries, it did just work with this missing flags +# from: https://github.com/golang/go/issues/42459 +rustflags = ["-C", "link-args=-framework CoreFoundation -framework Security"] \ No newline at end of file diff --git a/waku-sys/build.rs b/waku-sys/build.rs index 955f6c4..5983533 100644 --- a/waku-sys/build.rs +++ b/waku-sys/build.rs @@ -1,5 +1,3 @@ -extern crate core; - use std::env; use std::env::set_current_dir; use std::path::PathBuf;