about summary refs log tree commit diff
path: root/src/tools/generate-copyright
AgeCommit message (Collapse)AuthorLines
2025-01-06Ensure generate-copyright is executed from the project root.Jonathan Pallant-1/+4
2024-12-09dist: Re-work how we describe the licence of Rust in our distributionsJonathan Pallant-14/+35
) add COPYRIGHT*.html files to the rustc binary distribution ) add contents of LICENSE folder to dist tarballs, because some of our in-tree licences will require that the license text is reproduced. ) The wording of COPYRIGHT is adjusted to not include license text (`reuse` ensures that it's in the LICENSE folder) ) A blanket copyright notice is added to LICENCE-MIT as required by the text. The general approach is that the license statements are now compiled using a tool in CI (generate-copyright), and you get either: * the source code (COPYRIGHT, LICENCE-APACHE, LICENCE-MIT, REUSE.toml and the LICENCES folder), or * the compiled version (COPYRIGHT.html, COPYRIGHT-library.html and the LICENCES folder).
2024-11-25generate-copyright: Ensure output has UNIX line-endings for consistency.Jonathan Pallant-0/+8
2024-11-22generate-copyright: Fixup comment for get_metadata_and_notices.Jonathan Pallant-1/+1
2024-11-21generate-copyright: Now generates a library file too.Jonathan Pallant-27/+178
We only run reuse once, so the output has to be filtered to find only the files that are relevant to the library tree. Outputs build/COPYRIGHT.html and build/COPYRIGHT-library.html.
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-9/+6
2024-08-06Apparently library/std is now part of a workspace at library/Jonathan Pallant-1/+1
2024-08-06Update to rinja 0.3Jonathan Pallant-1/+1
2024-08-06generate-copyright: gather files inside interesting foldersJonathan Pallant-17/+33
2024-08-06generate-copyright: Render Node with rinja too.Jonathan Pallant-73/+73
2024-08-06generate-copyright: use rinja to format the outputJonathan Pallant-152/+146
I can't find a way to derive rinja::Template for Node - I think because it is a recursive type. So I rendered it manually using html_escape.
2024-08-06generate-copyright: use cargo-metadataJonathan Pallant-62/+19
2024-08-06generate-copyright: Fix typoJonathan Pallant-1/+1
2024-08-06generate-copyright: Produce HTML, not MarkdownJonathan Pallant-102/+151
This format works better with large amounts of structured data. We also mark which deps are in the stdlib
2024-08-06Update generate-copyrightJonathan Pallant-12/+309
This tool now scans for cargo dependencies and includes any important looking license files. We do this because cargo package metadata is not sufficient - the Apache-2.0 license says you have to include any NOTICE file, for example. And authors != copyright holders (cargo has the former, we must include the latter).
2024-07-29Reformat `use` declarations.Nicholas Nethercote-1/+2
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-07-22Removed CondensedDirectory support from license tools.Jonathan Pallant-29/+9
Now that we have reuse-tool 4.0, we no longer need to massage the JSON license data to collapse LLVM into a single copyright notice and license - reuse-tool can do it for us using an annotation in REUSE.toml. This effectively reverts c6eb03b.
2023-11-27Fix generate-copyright tool.Jonathan Pallant (Ferrous Systems)-2/+2
LLVM copyrights are now condensed to those reported in the .reuse/dep5 file.
2023-11-22condense llvm licensing into a single itemJonathan Pallant (Ferrous Systems)-7/+28
2023-04-10Fix remaining typosDaniPopes-7/+7
2023-03-09include directories in grouped licensing informationPietro Albini-3/+3
2022-11-15initial prototype of the tool to generate copyright noticesPietro Albini-0/+105