diff --git a/src/tools/generate-copyright/src/main.rs b/src/tools/generate-copyright/src/main.rs index 521a9cfc86219..db5446bfbd7af 100644 --- a/src/tools/generate-copyright/src/main.rs +++ b/src/tools/generate-copyright/src/main.rs @@ -125,13 +125,19 @@ fn render_deps<'a, 'b>( deps: impl Iterator, buffer: &'b mut Vec, ) -> Result<(), Error> { + writeln!(buffer, "| Package | License | URL | Authors |")?; + writeln!(buffer, "|---------|---------|-----|---------|")?; for dep in deps { - let authors_list = dep.authors.join(", "); + let authors_list = dep.authors.join(", ").replace("<", "\\<").replace(">", "\\>"); let url = format!("https://crates.io/crates/{}/{}", dep.name, dep.version); writeln!( buffer, - "* [{} {}]({}) ({}), by {}", - dep.name, dep.version, url, dep.license, authors_list + "| {name} {version} | {license} | <{url}> | {authors} |", + name = dep.name, + version = dep.version, + license = dep.license, + url = url, + authors = authors_list )?; } Ok(())