idanarye / rust-typed-builder

Compile-time type-checked builder derive
https://crates.io/crates/typed-builder
Apache License 2.0
904 stars 52 forks source link

Include license files in typed-builder-macro crate #141

Closed decathorpe closed 4 months ago

decathorpe commented 4 months ago

Both the Apache-2.0 and MIT licenses require that (re)distributed sources contain a copy of the original license text. As of right now, the sources published and redistributed via crates.io for the typed-builder-macro crate do not contain license texts.

This PR adds symbolic links that point at the license texts in the project's root directory, which is enough for "cargo package" / "cargo publish" to resolve and include them when publishing to crates.io in most circumstances (unless you're running the "cargo publish" command on Windows, AFAIK).

idanarye commented 4 months ago

Any reason not to just copy the files? It's not like they are going to change...

decathorpe commented 4 months ago

Any reason not to just copy the files? It's not like they are going to change...

Not really. Looking at other projects where multiple crates are published from the same repo, using symbolic links just seems to be the standard practice.

decathorpe commented 4 months ago

Thank you!