Browse Source
The probe crate (https://crates.io/crates/probe) provides a probe!() macro that defines SystemTap SDT probes on Linux hosts or does nothing on other host OSes. This crate will be used to implement DTrace support for Rust. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Link: https://lore.kernel.org/r/20251119205200.173170-4-stefanha@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>pull/316/head
committed by
Paolo Bonzini
6 changed files with 34 additions and 1 deletions
@ -0,0 +1,22 @@ |
|||||
|
project('probe-0.5-rs', 'rust', |
||||
|
meson_version: '>=1.5.0', |
||||
|
version: '0.5.2', |
||||
|
license: 'Apache-2.0 OR MIT', |
||||
|
default_options: []) |
||||
|
|
||||
|
_probe_rs = static_library( |
||||
|
'probe', |
||||
|
files('src/lib.rs'), |
||||
|
gnu_symbol_visibility: 'hidden', |
||||
|
override_options: ['rust_std=2021', 'build.rust_std=2021'], |
||||
|
rust_abi: 'rust', |
||||
|
rust_args: [ |
||||
|
'--cap-lints', 'allow', |
||||
|
], |
||||
|
) |
||||
|
|
||||
|
probe_deps = declare_dependency( |
||||
|
link_with: _probe_rs, |
||||
|
) |
||||
|
|
||||
|
meson.override_dependency('probe-0.5-rs', probe_deps) |
||||
@ -0,0 +1,7 @@ |
|||||
|
[wrap-file] |
||||
|
directory = probe-0.5.2 |
||||
|
source_url = https://crates.io/api/v1/crates/probe/0.5.2/download |
||||
|
source_filename = probe-0.5.2.tar.gz |
||||
|
source_hash = 136558b6e1ebaecc92755d0ffaf9421f519531bed30cc2ad23b22cb00965cc5e |
||||
|
#method = cargo |
||||
|
patch_directory = probe-0.5-rs |
||||
Loading…
Reference in new issue