Function cargo_readme::project::find_entrypoint[][src]

pub fn find_entrypoint(
    current_dir: &Path,
    manifest: &Manifest
) -> Result<PathBuf, String>

Find the default entrypoiny to read the doc comments from

Try to read entrypoint in the following order:

  • src/lib.rs
  • src/main.rs
  • file defined in the [lib] section of Cargo.toml
  • file defined in the [[bin]] section of Cargo.toml, if there is only one
    • if there is more than one [[bin]], an error is returned