tracers_core/lib.rs
1#![deny(warnings)]
2
3#[cfg(test)]
4#[macro_use(quickcheck)]
5extern crate quickcheck_macros;
6
7//Re-export some third-party dependencies so the caller can be sure to use the exact version we use
8//and doesn't have to add their own explicit dep
9pub extern crate failure;
10
11pub extern crate libc;
12
13pub mod argtypes;
14pub use argtypes::{wrap, ProbeArgNativeType, ProbeArgType, ProbeArgWrapper};
15
16/// The result of a provider init is either a string with some free-form details about the
17/// provider, or a string indicating the error which prevented the provider from initializing
18///
19/// On success, the string takes the form:
20///
21/// ```not_rust
22/// $PROVIDER_NAME::$IMPLEMENTATION::$VERSION
23/// ```
24///
25/// for example:
26///
27/// ```not_rust
28/// my_provider::native/native_noop::0.1.0
29/// ```
30pub type ProviderInitResult = std::result::Result<&'static str, &'static str>;
31
32#[cfg(feature = "dynamic")]
33pub mod dynamic;