From 6a74e1f49ac15bd0bde883377c92deab630b245b Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Fri, 13 Sep 2024 15:03:08 -0500 Subject: [PATCH] Enable feature(asm_experimental_arch) for tests This is needed to use `probe!` on ppc64le and s390x See https://github.com/rust-lang/rust/issues/93335 Also loosen version requirement on `probe`; on Fedora we have been building with `probe` 0.5.1 with no issue. Tested by doing a scratch build on Fedora's Koji build system: https://koji.fedoraproject.org/koji/taskinfo?taskID=123358009 Signed-off-by: Michel Lind --- libbpf-rs/Cargo.toml | 2 +- libbpf-rs/tests/test.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libbpf-rs/Cargo.toml b/libbpf-rs/Cargo.toml index ce47c44a..f01359d3 100644 --- a/libbpf-rs/Cargo.toml +++ b/libbpf-rs/Cargo.toml @@ -48,7 +48,7 @@ libbpf-rs = {path = ".", features = ["generate-test-files"]} log = "0.4.4" memmem = "0.1.1" plain = "0.2.3" -probe = "0.3" +probe = ">=0.3, <0.6" scopeguard = "1.1" serial_test = { version = "3.0", default-features = false } tempfile = "3.3" diff --git a/libbpf-rs/tests/test.rs b/libbpf-rs/tests/test.rs index 0ed7991e..2b5b4496 100644 --- a/libbpf-rs/tests/test.rs +++ b/libbpf-rs/tests/test.rs @@ -1,3 +1,4 @@ +#![feature(asm_experimental_arch)] #![allow(clippy::let_unit_value)] #![warn(clippy::absolute_paths)]