dilib 0.2.1

A dependency injection library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
use std::fs;
use std::path::PathBuf;

fn main() {
    println!("cargo:rerun-if-changed=README.md");

    let readme = fs::read_to_string("README.md").expect("Failed to read README.md");
    let output = PathBuf::from(std::env::var("OUT_DIR").unwrap()).join("README-lib.md");
    fs::write(output, readme).expect("Failed to write README-lib.md");
}