pub fn export(dir: PathBuf, _prog_args: &[String]) -> Result<i32>
Builds the subcrates to get a directory that we can serve. Returns an exit code.