1 2 3 4 5 6 7 8 9 10 11
extern crate last_git_commit; use last_git_commit::{LastGitCommit, Path}; fn main() { let lgc = LastGitCommit::new(None, None).unwrap(); let path = lgc.path(); println!("Path: {}", path); // "." }