vec-tree 0.1.0

A safe tree using an arena allocator that allows deletion without suffering from the ABA problem by using generational indices.
use std::fs::File;
use std::io::Read;
use std::process::Command;

fn cargo_readme_up_to_date() {
    println!("Checking that `cargo readme >` is up to date...");

    let expected = Command::new("cargo")
        .expect("should run `cargo readme` OK")
    let expected = String::from_utf8_lossy(&expected);

    let actual = {
        let mut file = File::open(concat!(env!("CARGO_MANIFEST_DIR"), "/"))
            .expect("should open file");
        let mut s = String::new();
        file.read_to_string(&mut s)
            .expect("should read contents of file to string");

    if actual != expected {
        panic!("Run `cargo readme >` to update");