aurae icon indicating copy to clipboard operation
aurae copied to clipboard

SPDX License Identifiers in the Source Code

Open krisnova opened this issue 2 years ago • 2 comments

Folks might consider vendoring small crates and modules from the Aurae source code.

Can we please add SPDX license identifiers to every .rs file in the project?

For more on using the SPDX in source code read the SPDX tutorial.

Basically I think we just need to use this and fill in the blanks in each of our headers.

# Copyright [year file created] - [last year file modified], [project founder] and the [project name] contributors
# SPDX-License-Identifier: [SPDX license expression]

krisnova avatar Mar 26 '23 17:03 krisnova

Can we then maybe also reduce this huuuuuge license header in our source code files to the legally required minimum? CC: @dmah42

MalteJ avatar Jan 23 '24 21:01 MalteJ

fun fact: there is no legally required minimum that i know about. the package has a license and copyright statement. it is true that someone might want to vendor parts of the source code but i'm not sure how a header in a source file stops them/encourages them doing it.

the current header was a deliberate choice and preference by Nóva and is very much her personal style.

dmah42 avatar Jan 24 '24 13:01 dmah42

# ---------------------------------------------------------------------------- #
#                +--------------------------------------------+                #
#                |   █████╗ ██╗   ██╗██████╗  █████╗ ███████╗ |                #
#                |  ██╔══██╗██║   ██║██╔══██╗██╔══██╗██╔════╝ |                #
#                |  ███████║██║   ██║██████╔╝███████║█████╗   |                #
#                |  ██╔══██║██║   ██║██╔══██╗██╔══██║██╔══╝   |                #
#                |  ██║  ██║╚██████╔╝██║  ██║██║  ██║███████╗ |                #
#                |  ╚═╝  ╚═╝ ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚══════╝ |                #
#                +--------------------------------------------+                #
#                                                                              #
#                         Distributed Systems Runtime                          #
# ---------------------------------------------------------------------------- #
# Copyright 2022 - 2024, [project founder] and the aurae contributors
# SPDX-License-Identifier: Apache-2.0

is this a little better?

bpmooch avatar Jun 20 '24 16:06 bpmooch

it's about 18 lines better i think :D

dmah42 avatar Jun 21 '24 13:06 dmah42

i'm starting to edit headers as i edit files.

dmah42 avatar Jun 25 '24 17:06 dmah42