1version = 1
2
3# Reuse annotations file.
4#
5# This file controls how reuse-tool finds copyright and license notices within
6# source files. As the tool has a habit of picking up random uses of the word
7# 'Copyright' within source code, and because it will complain that other files
8# do not contain any specific copyright and license notifications, we usually
9# just set a blanket license and copyright notice for a whole sub-tree at a
10# time.
11#
12# See https://reuse.software and https://github.com/fsfe/reuse-tool for more
13# details. We currently use reuse-tool version 4.0.3.
14
15[[annotations]]
16path = [
17 "compiler/**",
18 "library/**",
19 "tests/**",
20 "src/**",
21 ".github/**",
22 "Cargo.lock",
23 "Cargo.toml",
24 "CODE_OF_CONDUCT.md",
25 "bootstrap.example.toml",
26 "configure",
27 "CONTRIBUTING.md",
28 "COPYRIGHT",
29 "INSTALL.md",
30 "LICENSE-APACHE",
31 "license-metadata.json",
32 "LICENSE-MIT",
33 "README.md",
34 "RELEASES.md",
35 "REUSE.toml",
36 "rustfmt.toml",
37 "rust-bors.toml",
38 "triagebot.toml",
39 "typos.toml",
40 "package.json",
41 "yarn.lock",
42 "x",
43 "x.ps1",
44 "x.py",
45 ".clang-format",
46 ".editorconfig",
47 ".git-blame-ignore-revs",
48 ".gitattributes",
49 ".gitignore",
50 ".gitmodules",
51 ".mailmap",
52 ".ignore",
53]
54precedence = "override"
55SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
56SPDX-License-Identifier = "MIT OR Apache-2.0"
57
58[[annotations]]
59path = "compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp"
60precedence = "override"
61SPDX-FileCopyrightText = [
62 "2003-2019 University of Illinois at Urbana-Champaign.",
63 "The Rust Project Developers (see https://thanks.rust-lang.org)",
64]
65SPDX-License-Identifier = "Apache-2.0 WITH LLVM-exception AND (Apache-2.0 OR MIT)"
66
67[[annotations]]
68path = "library/core/src/unicode/unicode_data.rs"
69precedence = "override"
70SPDX-FileCopyrightText = "1991-2024 Unicode, Inc."
71SPDX-License-Identifier = "Unicode-3.0"
72
73[[annotations]]
74path = "library/std/src/sync/mpmc/**"
75precedence = "override"
76SPDX-FileCopyrightText = [
77 "2019 The Crossbeam Project Developers",
78 "The Rust Project Developers (see https://thanks.rust-lang.org)",
79]
80SPDX-License-Identifier = "MIT OR Apache-2.0"
81
82[[annotations]]
83path = "library/std/src/sys/sync/mutex/fuchsia.rs"
84precedence = "override"
85SPDX-FileCopyrightText = [
86 "2016 The Fuchsia Authors",
87 "The Rust Project Developers (see https://thanks.rust-lang.org)",
88]
89SPDX-License-Identifier = "BSD-2-Clause AND (MIT OR Apache-2.0)"
90
91[[annotations]]
92path = "src/test/rustdoc/auxiliary/enum-primitive.rs"
93precedence = "override"
94SPDX-FileCopyrightText = "2015 Anders Kaseorg <andersk@mit.edu>"
95SPDX-License-Identifier = "MIT"
96
97[[annotations]]
98path = "src/librustdoc/html/static/fonts/Fira**"
99precedence = "override"
100SPDX-FileCopyrightText = ["2014, Mozilla Foundation", "2014, Telefonica S.A."]
101SPDX-License-Identifier = "OFL-1.1"
102
103[[annotations]]
104path = "src/librustdoc/html/static/fonts/NanumBarun**"
105precedence = "override"
106SPDX-FileCopyrightText = "2010 NAVER Corporation"
107SPDX-License-Identifier = "OFL-1.1"
108
109[[annotations]]
110path = [
111 "src/librustdoc/html/static/fonts/SourceCodePro**",
112 "src/librustdoc/html/static/fonts/SourceSerif4**",
113]
114precedence = "override"
115SPDX-FileCopyrightText = "2010, 2012, 2014-2023, Adobe Systems Incorporated"
116SPDX-License-Identifier = "OFL-1.1"
117
118[[annotations]]
119path = "src/librustdoc/html/static/css/normalize.css"
120precedence = "override"
121SPDX-FileCopyrightText = "Nicolas Gallagher and Jonathan Neal"
122SPDX-License-Identifier = "MIT"
123
124[[annotations]]
125path = "src/librustdoc/html/static/css/rustdoc.css"
126precedence = "override"
127SPDX-FileCopyrightText = [
128 "2016 Ike Ku, Jessica Stokes and Leon Guan",
129 "The Rust Project Developers (see https://thanks.rust-lang.org)",
130]
131SPDX-License-Identifier = "MIT OR Apache-2.0"
132
133[[annotations]]
134path = "src/doc/rustc-dev-guide/mermaid.min.js"
135precedence = "override"
136SPDX-FileCopyrightText = "2014-2021 Knut Sveidqvist"
137SPDX-License-Identifier = "MIT"
138
139[[annotations]]
140path = "library/backtrace/**"
141precedence = "override"
142SPDX-FileCopyrightText = [
143 "2014 Alex Crichton",
144 "The Rust Project Developers (see https://thanks.rust-lang.org)",
145]
146SPDX-License-Identifier = "MIT OR Apache-2.0"
147
148[[annotations]]
149path = "src/doc/embedded-book/**"
150precedence = "override"
151SPDX-FileCopyrightText = [
152 "Rust on Embedded Devices Working Group",
153 "The Rust Project Developers (see https://thanks.rust-lang.org)",
154]
155SPDX-License-Identifier = "MIT OR Apache-2.0 OR CC-BY-SA-4.0"
156
157[[annotations]]
158path = "src/doc/rust-by-example/**"
159precedence = "override"
160SPDX-FileCopyrightText = [
161 "2014 Jorge Aparicio",
162 "The Rust Project Developers (see https://thanks.rust-lang.org)",
163]
164SPDX-License-Identifier = "MIT OR Apache-2.0"
165
166[[annotations]]
167path = "src/llvm-project/**"
168precedence = "override"
169SPDX-FileCopyrightText = [
170 "2003-2019 by the contributors listed in CREDITS.TXT (https://github.com/rust-lang/llvm-project/blob/7738295178045041669876bf32b0543ec8319a5c/llvm/CREDITS.TXT)",
171 "2010 Apple Inc",
172 "2003-2019 University of Illinois at Urbana-Champaign.",
173]
174SPDX-License-Identifier = "NCSA AND Apache-2.0 WITH LLVM-exception"
175
176[[annotations]]
177path = "src/gcc/**"
178precedence = "override"
179SPDX-FileCopyrightText = [
180 "Copyright (C) 1997-2024 Free Software Foundation, Inc.",
181]
182SPDX-License-Identifier = "GPL-3.0-or-later"
183
184[[annotations]]
185path = "src/gcc/gcc/testsuite/**"
186precedence = "override"
187SPDX-FileCopyrightText = [
188 "Copyright (C) 2000-2024 Free Software Foundation, Inc.",
189]
190SPDX-License-Identifier = "GPL-2.0-only"
191
192[[annotations]]
193path = "src/gcc/gcc/testsuite/c-c++-common/analyzer/*.c"
194precedence = "override"
195SPDX-FileCopyrightText = [
196 "Copyright (c) 2007-2011 Atheros Communications Inc.",
197 "Copyright (c) 2011-2012,2017 Qualcomm Atheros, Inc.",
198 "Copyright (c) 2016-2017 Erik Stromdahl <erik.stromdahl@gmail.com>",
199]
200SPDX-License-Identifier = "ISC"
201
202[[annotations]]
203path = "src/gcc/libstdc++-v3/config/os/aix/os_defines.h"
204precedence = "override"
205SPDX-FileCopyrightText = [
206 "Copyright (C) 2000-2024 Free Software Foundation, Inc.",
207]
208SPDX-License-Identifier = "GCC-exception-3.1"