This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::{collections::HashSet, env, fmt::Write, fs, path::Path}; | |
use walkdir::WalkDir; | |
type Res = Result<(), Box<dyn std::error::Error>>; | |
// replace: | |
// "ROOT DIR": root dir of proto files to generate | |
// "INCLUDE DIR": where all "package" specifier based on | |
// "REPO DIR": where to monitor change for build.rs rerun |