From da3e5c920c0d28ed780eab501e31bd93f8db3894 Mon Sep 17 00:00:00 2001 From: Xavrax Date: Tue, 7 Nov 2023 16:24:42 +0100 Subject: [PATCH] add new pb license --- Cargo.toml | 1 - README.md | 22 +++++++++++++++++++++- deny.toml | 8 ++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fa95dd0f..f4fdc10c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,6 @@ name = "pubnub" version = "0.4.0" edition = "2021" -license = "MIT" license-file = "LICENSE" authors = ["PubNub "] description = "PubNub SDK for Rust" diff --git a/README.md b/README.md index ea8e056b..dd5c9e6a 100644 --- a/README.md +++ b/README.md @@ -222,4 +222,24 @@ support@pubnub.com. ## 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 }, +] +``` + diff --git a/deny.toml b/deny.toml index 3df3ccfe..fbf229d6 100644 --- a/deny.toml +++ b/deny.toml @@ -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", @@ -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 = [