rust-number-prefix icon indicating copy to clipboard operation
rust-number-prefix copied to clipboard

Cargo: include README and LICENSE files in published crates

Open decathorpe opened this issue 4 years ago • 2 comments

The original change to exclude those files was probably well-intentioned, but the MIT license terms require that the license text is shipped with any redistributed sources (like those published to crates.io, or those shipped as part of linux distro packages), see - for example - the "Conditions" on the MIT entry on https://choosealicense.com.

Including the README file doesn't hurt either, but at least the LICENCE file really should be included in published crates.

decathorpe avatar Jul 20 '21 13:07 decathorpe

Thanks @decathorpe - I came to submit the same thing (for the license specifically).

Edit: fwiw, for other users who need this, you can fork, apply the change, and patch the crate in Cargo.toml:

[patch.crates-io]
number_prefix = { git = "https://github.com/your-name/rust-number-prefix" }

ankane avatar Dec 01 '22 04:12 ankane

FYI, I now "officially" forked number_prefix, made some cleanups (including this PR), and published it as https://crates.io/crates/unit-prefix

decathorpe avatar Feb 17 '24 18:02 decathorpe