Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add original license test to bench.rs, and omit it and other unnecessary files from published crates #8

Merged
merged 2 commits into from
Aug 16, 2024

Conversation

musicinmybrain
Copy link
Contributor

Since bench.rs is derived from the bench.rs in sharded-slab, and the MIT license says “The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software,” we need to include the original license text.

Using a source comment to include the license text should be adequate, since it’s unlikely anyone would want to distribute the compiled benchmark executable.


As a follow-up, this PR excludes the benchmarks (along with a few other unnecessary files) from published crates. This makes the crate archives slightly smaller, and makes it very clear that nothing derived from sharded-slab is compiled into the crate library, which makes downstream license analysis easier.

Since bench.rs is derived from the bench.rs in sharded-slab, and the MIT
license says “The above copyright notice and this permission notice
shall be included in all copies or substantial portions of the
Software,” we need to include the original license text.

Using a source comment to include the license text should be adequate,
since it’s unlikely anyone would want to distribute the compiled
benchmark executable.
This makes the crate archives slightly smaller, and makes it very clear
that nothing derived from sharded-slab is compiled into the crate
library, which makes downstream license analysis easier.
@ibraheemdev
Copy link
Owner

Thanks!

@ibraheemdev ibraheemdev merged commit ac859b8 into ibraheemdev:master Aug 16, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants