From 5f0ff8348f0cca7333927db21ed3a12036f6762e Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 27 Dec 2022 23:57:11 +0530 Subject: meson: Add an option to build examples Required renaming threadshare/benchmark to threadshare/ts-benchmark because 'benchmark' as a target name is reserved for meson's `benchmark` target. Disabled by default because cargo decides that it has to rebuild everything, and is really slow because of that. Also required adding --features for setting features required by the examples. Part-of: --- generic/threadshare/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'generic') diff --git a/generic/threadshare/Cargo.toml b/generic/threadshare/Cargo.toml index 0f73e6b5..ef5b9729 100644 --- a/generic/threadshare/Cargo.toml +++ b/generic/threadshare/Cargo.toml @@ -43,7 +43,7 @@ crate-type = ["cdylib", "rlib"] path = "src/lib.rs" [[example]] -name = "benchmark" +name = "ts-benchmark" path = "examples/benchmark.rs" [[example]] -- cgit v1.2.3