Commit graph

27 commits

Author SHA1 Message Date
Guillaume Gomez
a6b7a26c3d Update rinja version in generate-copyright 2025-04-06 01:47:10 +02:00
Pietro Albini
33e7f9bc66
generate-copyright: pass the vendored sources from bootstrap 2025-02-17 11:00:21 +01:00
Pietro Albini
08b4f6d2c6
generate-copyright: pass the list of manifests from bootstrap 2025-02-14 14:55:24 +01:00
Pietro Albini
36c314cfb7
generate-copyright: pass the source root from bootstrap 2025-02-14 14:55:22 +01:00
bjorn3
1fcae03369 Rustfmt 2025-02-08 22:12:13 +00:00
Jonathan Pallant
f7f2fa540f
Ensure generate-copyright is executed from the project root. 2025-01-06 11:02:30 +00:00
Jonathan Pallant
f9c16997dc
dist: Re-work how we describe the licence of Rust in our distributions
) 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-12-09 10:18:55 +00:00
Jonathan Pallant
16a78526ce
generate-copyright: Ensure output has UNIX line-endings for consistency. 2024-11-25 11:26:47 +00:00
Jonathan Pallant
2932833414
generate-copyright: Fixup comment for get_metadata_and_notices. 2024-11-22 10:14:40 +00:00
Jonathan Pallant
9dfc682834
generate-copyright: Now generates a library file too.
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-11-21 10:01:21 +00:00
Michael Goulet
c682aa162b Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
Jonathan Pallant
99579f3ec1
Apparently library/std is now part of a workspace at library/ 2024-08-06 12:12:57 +01:00
Jonathan Pallant
4e24e9b1ad
Update to rinja 0.3 2024-08-06 12:03:37 +01:00
Jonathan Pallant
5277b67b69
generate-copyright: gather files inside interesting folders 2024-08-06 11:11:09 +01:00
Jonathan Pallant
30ac7c9a81
generate-copyright: Render Node with rinja too. 2024-08-06 11:11:05 +01:00
Jonathan Pallant
f7e6bf61a9
generate-copyright: use rinja to format the output
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-06 11:04:55 +01:00
Jonathan Pallant
dbab595d78
generate-copyright: use cargo-metadata 2024-08-06 11:04:55 +01:00
Jonathan Pallant
56f84796a4
generate-copyright: Fix typo 2024-08-06 11:04:55 +01:00
Jonathan Pallant
204e3eadf1
generate-copyright: Produce HTML, not Markdown
This format works better with large amounts of structured data.

We also mark which deps are in the stdlib
2024-08-06 11:04:55 +01:00
Jonathan Pallant
ba0d6c9739
Update generate-copyright
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-08-06 11:04:55 +01:00
Nicholas Nethercote
84ac80f192 Reformat use declarations.
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
2024-07-29 08:26:52 +10:00
Jonathan Pallant
2e971bf5c6
Removed CondensedDirectory support from license tools.
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.
2024-07-22 10:44:18 +01:00
Jonathan Pallant (Ferrous Systems)
2d1cd45875
Fix generate-copyright tool.
LLVM copyrights are now condensed to those reported in the .reuse/dep5 file.
2023-11-27 11:03:53 +00:00
Jonathan Pallant (Ferrous Systems)
c6eb03ba90
condense llvm licensing into a single item 2023-11-22 11:09:56 +00:00
DaniPopes
f470c29936
Fix remaining typos 2023-04-10 21:02:49 +02:00
Pietro Albini
49b902f06e
include directories in grouped licensing information 2023-03-09 12:24:32 +01:00
Pietro Albini
4af7de13d2
initial prototype of the tool to generate copyright notices 2022-11-15 15:02:03 +01:00