Skip to content

Commit 6a74e1f

Browse files
committed
Enable feature(asm_experimental_arch) for tests
This is needed to use `probe!` on ppc64le and s390x See rust-lang/rust#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 <[email protected]>
1 parent bece44a commit 6a74e1f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libbpf-rs/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ libbpf-rs = {path = ".", features = ["generate-test-files"]}
4848
log = "0.4.4"
4949
memmem = "0.1.1"
5050
plain = "0.2.3"
51-
probe = "0.3"
51+
probe = ">=0.3, <0.6"
5252
scopeguard = "1.1"
5353
serial_test = { version = "3.0", default-features = false }
5454
tempfile = "3.3"

libbpf-rs/tests/test.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![feature(asm_experimental_arch)]
12
#![allow(clippy::let_unit_value)]
23
#![warn(clippy::absolute_paths)]
34

0 commit comments

Comments
 (0)