git-stub-vcs
VCS abstraction and materialization for git stubs.
A GitStub (e.g., foo.json.gitstub) contains a
reference to a file stored in Git history, in the format commit:path. This
crate provides a VCS abstraction for reading file contents from history, and
helpers to materialize these references into actual files.
Usage in build scripts
// build.rs
use Materializer;
Usage outside build scripts
use Materializer;
// repo_root is relative to the current working directory.
let materializer = standard
.expect;
// git_stub_path is relative to repo_root.
let spec_path = materializer
.materialize
.expect;
License
This project is available under the terms of either the Apache 2.0 license or the MIT license.