diff --git a/src/db/add_package.rs b/src/db/add_package.rs index 08e75d3f6..358ff8b9f 100644 --- a/src/db/add_package.rs +++ b/src/db/add_package.rs @@ -38,7 +38,7 @@ pub(crate) fn add_package_into_database(conn: &Connection, let readme = get_readme(metadata_pkg, source_dir).unwrap_or(None); let (release_time, yanked, downloads) = try!(get_release_time_yanked_downloads(metadata_pkg)); let is_library = match metadata_pkg.targets[0].kind.as_slice() { - &[ref kind] if kind == "lib" => true, + &[ref kind] if kind == "lib" || kind == "proc-macro" => true, _ => false, }; let metadata = Metadata::from_source_dir(source_dir)?;