Skip to content

Commit

Permalink
add new pb license
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavrax committed Nov 7, 2023
1 parent f15bb75 commit da3e5c9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "pubnub"
version = "0.4.0"
edition = "2021"
license = "MIT"
license-file = "LICENSE"
authors = ["PubNub <[email protected]>"]
description = "PubNub SDK for Rust"
Expand Down
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,24 @@ [email protected].

## License

This project is licensed under the [MIT license](https://github.com/pubnub/rust/blob/master/LICENSE).
This project is licensed under the [PubNub Software Development Kit License Agreement](https://github.com/pubnub/rust/blob/master/LICENSE).

### cargo-deny

Currently our license is not added into the [SPDX license list](https://spdx.org/licenses/) so `cargo-deny` will raise an issue about it.
If you agree on our license you can simply satisfy it by following onfiguration:
```toml
[licenses]
allow = [
#...
"LicenseRef-PubNubSoftwareDevelopmentKitLicenseAgreement"
]

[[licenses.clarify]]
name = "pubnub"
expression = "LicenseRef-PubNubSoftwareDevelopmentKitLicenseAgreement"
license-files = [
{ path = "LICENSE", hash = 0x48826f13 },
]
```

8 changes: 8 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ allow = [
# Before inserting a new license here, please check if it is already in the list of
# licenses that are allowed: https://blueoakcouncil.org/list

"LicenseRef-PubNubSoftwareDevelopmentKitLicenseAgreement",
"MIT",
"Apache-2.0",
"BlueOak-1.0.0",
Expand All @@ -47,6 +48,13 @@ exceptions = [
#{ allow = ["Zlib"], name = "adler32", version = "*" },
]

[[licenses.clarify]]
name = "pubnub"
expression = "LicenseRef-PubNubSoftwareDevelopmentKitLicenseAgreement"
license-files = [
{ path = "LICENSE", hash = 0x48826f13 },
]

[licenses.private]
ignore = false
registries = [
Expand Down

0 comments on commit da3e5c9

Please sign in to comment.