tracers-libelf-sys 0.1.0

Exposes libelf as a Rust crate to ensure libstapsdt-sys is able to find libelf in the path. Never use this crate directly; use `tracers` and let it determine the correct implementation at build time.
Documentation
#![allow(clippy::all)]
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]

// Only include the implementation if the build.rs script reported successful build
#[cfg(enabled)]
include!("libelf.rs");

#[cfg(all(test, enabled))]
mod tests {
    use super::{elf_version, EV_CURRENT, EV_NONE};
    #[test]
    fn elf_version_is_correct() {
        //Make a token call to a libelf function just to verify all dependent libraries load
        let version = unsafe { elf_version(EV_CURRENT) };
        println!("libelf version: {}", version);

        assert_ne!(version, EV_NONE);
    }
}