containerof 0.3.0

Macros and traits facilitating the use of intrusive structures in Rust.
Documentation
1
2
3
4
5
6
7
8
9
extern crate rustc_version;

use rustc_version::{version, Version};

fn main() {
    if version().unwrap() >= Version::parse("1.77.0").unwrap() {
        println!("cargo:rustc-cfg=has_offset_of");
    }
}