Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using placeholder rustdoc generation for current crate #351

Prev Previous commit
Next Next commit
Added derive Debugs
  • Loading branch information
tonowak committed Feb 4, 2023
commit d5787e31dae881b77984cec055bda7fbb850ea4d
4 changes: 4 additions & 0 deletions src/rustdoc_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ pub(crate) trait BaselineLoader {
) -> anyhow::Result<PathBuf>;
}

#[derive(Debug)]
pub(crate) struct RustdocBaseline {
path: PathBuf,
}
Expand All @@ -323,6 +324,7 @@ impl BaselineLoader for RustdocBaseline {
}
}

#[derive(Debug)]
pub(crate) struct PathBaseline {
project_root: PathBuf,
lookup: std::collections::HashMap<String, Manifest>,
Expand Down Expand Up @@ -380,6 +382,7 @@ impl BaselineLoader for PathBaseline {
}
}

#[derive(Debug)]
pub(crate) struct GitBaseline {
path: PathBaseline,
}
Expand Down Expand Up @@ -465,6 +468,7 @@ fn bytes2str(b: &[u8]) -> &std::ffi::OsStr {
std::ffi::OsStr::new(str::from_utf8(b).unwrap())
}

#[derive(Debug)]
pub(crate) struct RegistryBaseline {
target_root: PathBuf,
version: Option<semver::Version>,
Expand Down