Skip to content

Commit

Permalink
Use SPDX with parentheses in metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsivonen committed Apr 5, 2022
1 parent b73366a commit fcf1e10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "A Gecko-oriented implementation of the Encoding Standard"
version = "0.8.30"
edition = '2018'
authors = ["Henri Sivonen <hsivonen@hsivonen.fi>"]
license-file = "COPYRIGHT"
license = "(Apache-2.0 OR MIT) AND BSD-3-Clause"
readme = "README.md"
documentation = "https://docs.rs/encoding_rs/"
homepage = "https://docs.rs/encoding_rs/"
Expand Down
22 changes: 5 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,7 @@ characters. Vietnamese tone marks can be decomposed using the

## Licensing

TL;DR: ((Apache-2.0 OR MIT) AND BSD-3-Clause) for the code and data combination,
but [crates.io doesn't support
parentheses](https://github.com/rust-lang/crates.io/issues/2595), so the crate
metadata points to a custom file.
TL;DR: `(Apache-2.0 OR MIT) AND BSD-3-Clause` for the code and data combination.

Please see the file named
[COPYRIGHT](https://github.com/hsivonen/encoding_rs/blob/master/COPYRIGHT).
Expand All @@ -134,19 +131,6 @@ from CC0 to BSD-3-Clause between the initial release of this crate and the prese
version of this crate. The in-source licensing legends have been updated for the
parts of the generated code that have changed since the upstream license change.

To work around the lack of support for paretheses in crates.io metadata, the
`cargo deny` clarification is:

```toml
[[licenses.clarify]]
name = "encoding_rs"
version = "*"
expression = "(Apache-2.0 OR MIT) AND BSD-3-Clause"
license-files = [
{ path = "COPYRIGHT", hash = 0x39f8ad31 }
]
```

## Documentation

Generated [API documentation](https://docs.rs/encoding_rs/) is available
Expand Down Expand Up @@ -466,6 +450,10 @@ To regenerate the generated code:

## Release Notes

### 0.8.31

* Use SPDX with parentheses now that crates.io supports parentheses.

### 0.8.30

* Update the licensing information to take into account the WHATWG data license change.
Expand Down

0 comments on commit fcf1e10

Please sign in to comment.