From 10a9981b98fe46416055d545075e864cbd54bea2 Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Mon, 11 Nov 2024 16:54:07 -0800 Subject: [PATCH] chore: standardize licenses --- deny.toml | 7 ++- packages/api/actor/Cargo.toml | 2 +- packages/api/cf-verification/Cargo.toml | 2 +- packages/api/cloud/Cargo.toml | 2 +- packages/api/games/Cargo.toml | 2 +- packages/api/job/Cargo.toml | 2 +- packages/api/matchmaker/Cargo.toml | 2 +- packages/api/monolith-edge/Cargo.toml | 2 +- packages/api/monolith-public/Cargo.toml | 2 +- packages/api/portal/Cargo.toml | 2 +- packages/api/provision/Cargo.toml | 2 +- packages/api/status/Cargo.toml | 2 +- packages/api/traefik-provider/Cargo.toml | 2 +- packages/api/ui/Cargo.toml | 2 + packages/common/api-helper/build/Cargo.toml | 2 +- packages/common/api-helper/macros/Cargo.toml | 2 +- packages/common/cache/build/Cargo.toml | 2 +- packages/common/cache/result/Cargo.toml | 2 +- .../common/chirp-workflow/core/Cargo.toml | 2 +- packages/common/chirp/client/Cargo.toml | 2 +- packages/common/chirp/types/Cargo.toml | 2 +- .../common/chirp/worker-attributes/Cargo.toml | 4 +- packages/common/chirp/worker/Cargo.toml | 4 +- packages/common/claims/Cargo.toml | 2 +- packages/common/config/Cargo.toml | 2 + packages/common/env/Cargo.toml | 2 + packages/common/formatted-error/Cargo.toml | 2 +- packages/common/global-error/Cargo.toml | 2 +- packages/common/health-checks/Cargo.toml | 2 +- packages/common/hub-embed/Cargo.toml | 2 + packages/common/migrate/Cargo.toml | 2 + packages/common/nomad-util/Cargo.toml | 2 +- packages/common/operation/macros/Cargo.toml | 2 +- packages/common/s3-util/Cargo.toml | 2 +- packages/common/schemac/Cargo.toml | 2 +- packages/common/service-manager/Cargo.toml | 2 + .../api-auth/rust-server/Cargo.toml | 2 +- .../smithy-output/api-auth/rust/Cargo.toml | 2 +- .../rust-server/Cargo.toml | 2 +- .../api-cf-verification/rust/Cargo.toml | 2 +- .../api-cloud/rust-server/Cargo.toml | 2 +- .../smithy-output/api-cloud/rust/Cargo.toml | 2 +- .../api-group/rust-server/Cargo.toml | 2 +- .../smithy-output/api-group/rust/Cargo.toml | 2 +- .../api-identity/rust-server/Cargo.toml | 2 +- .../api-identity/rust/Cargo.toml | 2 +- .../api-job/rust-server/Cargo.toml | 2 +- .../smithy-output/api-job/rust/Cargo.toml | 2 +- .../api-kv/rust-server/Cargo.toml | 2 +- .../smithy-output/api-kv/rust/Cargo.toml | 2 +- .../api-matchmaker/rust-server/Cargo.toml | 2 +- .../api-matchmaker/rust/Cargo.toml | 2 +- .../api-party/rust-server/Cargo.toml | 2 +- .../smithy-output/api-party/rust/Cargo.toml | 2 +- .../api-portal/rust-server/Cargo.toml | 2 +- .../smithy-output/api-portal/rust/Cargo.toml | 2 +- .../api-status/rust-server/Cargo.toml | 2 +- .../smithy-output/api-status/rust/Cargo.toml | 2 +- .../rust-server/Cargo.toml | 2 +- .../api-traefik-provider/rust/Cargo.toml | 2 +- packages/common/test-images/Cargo.toml | 2 +- packages/common/test/Cargo.toml | 2 + packages/common/util/core/Cargo.toml | 2 +- packages/common/util/macros/Cargo.toml | 2 +- packages/infra/server/Cargo.toml | 1 + .../standalone/default-create/Cargo.toml | 2 + packages/services/dynamic-config/Cargo.toml | 2 + packages/services/user/Cargo.toml | 2 + scripts/cargo/update_licenses.ts | 45 +++++++++++++++++++ 69 files changed, 129 insertions(+), 60 deletions(-) create mode 100755 scripts/cargo/update_licenses.ts diff --git a/deny.toml b/deny.toml index 6427b430be..b66354d71e 100644 --- a/deny.toml +++ b/deny.toml @@ -10,12 +10,15 @@ ignore = [ [licenses] allow = [ "Apache-2.0", + "BSD-2-Clause", "BSD-3-Clause", "ISC", "MIT", "MPL-2.0", "CC0-1.0", "Unicode-3.0", + "Zlib", + "EPL-2.0", ] # We use the same config to scan multiple projects @@ -30,8 +33,8 @@ name = "ring" allow = ["OpenSSL"] [[licenses.exceptions]] -name = "portpicker" -allow = ["Unlicense"] +name = "lockfree-object-pool" +allow = ["BSL-1.0"] # Boost Software License, not Business Source License # See https://github.com/EmbarkStudios/buildkite-jobify/blob/a1b953b03f3330e499b1af47cc2dc38bd777da7c/deny.toml#LL27C1-L38C1 [[licenses.clarify]] diff --git a/packages/api/actor/Cargo.toml b/packages/api/actor/Cargo.toml index f566a84beb..97f4f91b12 100644 --- a/packages/api/actor/Cargo.toml +++ b/packages/api/actor/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "api-actor" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/api/cf-verification/Cargo.toml b/packages/api/cf-verification/Cargo.toml index c680b3a411..c1347973e4 100644 --- a/packages/api/cf-verification/Cargo.toml +++ b/packages/api/cf-verification/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "api-cf-verification" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/api/cloud/Cargo.toml b/packages/api/cloud/Cargo.toml index 559061a8d8..f2f815a3ce 100644 --- a/packages/api/cloud/Cargo.toml +++ b/packages/api/cloud/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "api-cloud" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/api/games/Cargo.toml b/packages/api/games/Cargo.toml index ed2fc5e3ec..ad361ac89a 100644 --- a/packages/api/games/Cargo.toml +++ b/packages/api/games/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "api-games" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/api/job/Cargo.toml b/packages/api/job/Cargo.toml index 042913877b..05ac5aeed0 100644 --- a/packages/api/job/Cargo.toml +++ b/packages/api/job/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "api-job" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/api/matchmaker/Cargo.toml b/packages/api/matchmaker/Cargo.toml index b9910d8010..3568438873 100644 --- a/packages/api/matchmaker/Cargo.toml +++ b/packages/api/matchmaker/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "api-matchmaker" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/api/monolith-edge/Cargo.toml b/packages/api/monolith-edge/Cargo.toml index 7c7e410e74..3ae17b5193 100644 --- a/packages/api/monolith-edge/Cargo.toml +++ b/packages/api/monolith-edge/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "api-monolith-edge" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/api/monolith-public/Cargo.toml b/packages/api/monolith-public/Cargo.toml index 85834fd5ca..f7052afddd 100644 --- a/packages/api/monolith-public/Cargo.toml +++ b/packages/api/monolith-public/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "api-monolith-public" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/api/portal/Cargo.toml b/packages/api/portal/Cargo.toml index 401e0f1e0a..dcf8377fdd 100644 --- a/packages/api/portal/Cargo.toml +++ b/packages/api/portal/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "api-portal" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/api/provision/Cargo.toml b/packages/api/provision/Cargo.toml index 635165b242..2f8ee3551e 100644 --- a/packages/api/provision/Cargo.toml +++ b/packages/api/provision/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "api-provision" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] edition = "2018" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/api/status/Cargo.toml b/packages/api/status/Cargo.toml index 09855485d8..d910f80a8b 100644 --- a/packages/api/status/Cargo.toml +++ b/packages/api/status/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "api-status" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/api/traefik-provider/Cargo.toml b/packages/api/traefik-provider/Cargo.toml index 1bf4867385..d6b6544a6c 100644 --- a/packages/api/traefik-provider/Cargo.toml +++ b/packages/api/traefik-provider/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "api-traefik-provider" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/api/ui/Cargo.toml b/packages/api/ui/Cargo.toml index 0a2c364b48..13aed9df9c 100644 --- a/packages/api/ui/Cargo.toml +++ b/packages/api/ui/Cargo.toml @@ -2,6 +2,8 @@ name = "api-ui" version = "0.1.0" edition = "2021" +authors = ["Rivet Gaming, LLC "] +license = "Apache-2.0" [dependencies] rivet-convert = { path = "../../common/convert" } diff --git a/packages/common/api-helper/build/Cargo.toml b/packages/common/api-helper/build/Cargo.toml index 59a2a45d69..628d0964b8 100644 --- a/packages/common/api-helper/build/Cargo.toml +++ b/packages/common/api-helper/build/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "api-helper" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [features] diff --git a/packages/common/api-helper/macros/Cargo.toml b/packages/common/api-helper/macros/Cargo.toml index 3c1cab2b7a..d170463d93 100644 --- a/packages/common/api-helper/macros/Cargo.toml +++ b/packages/common/api-helper/macros/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "api-helper-macros" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [lib] diff --git a/packages/common/cache/build/Cargo.toml b/packages/common/cache/build/Cargo.toml index e4347992a5..5b7eb61b82 100644 --- a/packages/common/cache/build/Cargo.toml +++ b/packages/common/cache/build/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "rivet-cache" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/common/cache/result/Cargo.toml b/packages/common/cache/result/Cargo.toml index 687746bd89..159b77a69a 100644 --- a/packages/common/cache/result/Cargo.toml +++ b/packages/common/cache/result/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "rivet-cache-result" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/common/chirp-workflow/core/Cargo.toml b/packages/common/chirp-workflow/core/Cargo.toml index a80204c971..6dbd85f456 100644 --- a/packages/common/chirp-workflow/core/Cargo.toml +++ b/packages/common/chirp-workflow/core/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "chirp-workflow" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/common/chirp/client/Cargo.toml b/packages/common/chirp/client/Cargo.toml index e93f15eca2..d71b8b0d0f 100644 --- a/packages/common/chirp/client/Cargo.toml +++ b/packages/common/chirp/client/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "chirp-client" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/common/chirp/types/Cargo.toml b/packages/common/chirp/types/Cargo.toml index 579db37901..6447ce46b5 100644 --- a/packages/common/chirp/types/Cargo.toml +++ b/packages/common/chirp/types/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "chirp-types" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/common/chirp/worker-attributes/Cargo.toml b/packages/common/chirp/worker-attributes/Cargo.toml index be7ca387cb..86373c908c 100644 --- a/packages/common/chirp/worker-attributes/Cargo.toml +++ b/packages/common/chirp/worker-attributes/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "chirp-worker-attributes" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" -license = "Apache-2.0" description = "Server manager for running a Chirp worker." +authors = ["Rivet Gaming, LLC "] +license = "Apache-2.0" [lib] proc-macro = true diff --git a/packages/common/chirp/worker/Cargo.toml b/packages/common/chirp/worker/Cargo.toml index d013e1a752..73a96a5c52 100644 --- a/packages/common/chirp/worker/Cargo.toml +++ b/packages/common/chirp/worker/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "chirp-worker" version = "0.1.5" -authors = ["Rivet Gaming, LLC "] edition = "2021" -license = "Apache-2.0" description = "Server manager for running a Chirp worker." +authors = ["Rivet Gaming, LLC "] +license = "Apache-2.0" [features] default = ["attributes"] diff --git a/packages/common/claims/Cargo.toml b/packages/common/claims/Cargo.toml index 2031a871d1..7bac8ac129 100644 --- a/packages/common/claims/Cargo.toml +++ b/packages/common/claims/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "rivet-claims" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/common/config/Cargo.toml b/packages/common/config/Cargo.toml index 378a5a41ce..415a736ac6 100644 --- a/packages/common/config/Cargo.toml +++ b/packages/common/config/Cargo.toml @@ -2,6 +2,8 @@ name = "rivet-config" version = "0.1.0" edition = "2021" +authors = ["Rivet Gaming, LLC "] +license = "Apache-2.0" [dependencies] config = { version = "0.14.0", default-features = false, features = ["async", "json", "yaml"] } diff --git a/packages/common/env/Cargo.toml b/packages/common/env/Cargo.toml index a22e762089..10b9925c3e 100644 --- a/packages/common/env/Cargo.toml +++ b/packages/common/env/Cargo.toml @@ -2,6 +2,8 @@ name = "rivet-env" version = "0.1.0" edition = "2021" +authors = ["Rivet Gaming, LLC "] +license = "Apache-2.0" [dependencies] lazy_static = "1.5.0" diff --git a/packages/common/formatted-error/Cargo.toml b/packages/common/formatted-error/Cargo.toml index 13d8479bb7..134256d55e 100644 --- a/packages/common/formatted-error/Cargo.toml +++ b/packages/common/formatted-error/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "formatted-error" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/common/global-error/Cargo.toml b/packages/common/global-error/Cargo.toml index 13a8529d77..ddbee4a395 100644 --- a/packages/common/global-error/Cargo.toml +++ b/packages/common/global-error/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "global-error" version = "0.1.5" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [features] diff --git a/packages/common/health-checks/Cargo.toml b/packages/common/health-checks/Cargo.toml index 3e49b9cfe9..8472bfebea 100644 --- a/packages/common/health-checks/Cargo.toml +++ b/packages/common/health-checks/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "rivet-health-checks" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/common/hub-embed/Cargo.toml b/packages/common/hub-embed/Cargo.toml index b9eaa397c5..cc59d641ad 100644 --- a/packages/common/hub-embed/Cargo.toml +++ b/packages/common/hub-embed/Cargo.toml @@ -2,6 +2,8 @@ name = "rivet-hub-embed" version = "0.1.0" edition = "2021" +authors = ["Rivet Gaming, LLC "] +license = "Apache-2.0" [build-dependencies] reqwest = { version = "0.12.8", features = ["blocking"] } diff --git a/packages/common/migrate/Cargo.toml b/packages/common/migrate/Cargo.toml index af768bbac4..6bb28f077f 100644 --- a/packages/common/migrate/Cargo.toml +++ b/packages/common/migrate/Cargo.toml @@ -2,6 +2,8 @@ name = "rivet-migrate" version = "0.1.0" edition = "2021" +authors = ["Rivet Gaming, LLC "] +license = "Apache-2.0" [dependencies] anyhow = "1.0" diff --git a/packages/common/nomad-util/Cargo.toml b/packages/common/nomad-util/Cargo.toml index 2f8d7499e9..4c821ca7e0 100644 --- a/packages/common/nomad-util/Cargo.toml +++ b/packages/common/nomad-util/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "nomad-util" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/common/operation/macros/Cargo.toml b/packages/common/operation/macros/Cargo.toml index 067c76528d..02cdea591b 100644 --- a/packages/common/operation/macros/Cargo.toml +++ b/packages/common/operation/macros/Cargo.toml @@ -2,8 +2,8 @@ name = "rivet-operation-macros" version = "0.1.0" edition = "2021" -license = "Apache-2.0" authors = ["Rivet Gaming, LLC "] +license = "Apache-2.0" [lib] proc-macro = true diff --git a/packages/common/s3-util/Cargo.toml b/packages/common/s3-util/Cargo.toml index 8f4da8ec20..4a0bb3e084 100644 --- a/packages/common/s3-util/Cargo.toml +++ b/packages/common/s3-util/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "s3-util" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/common/schemac/Cargo.toml b/packages/common/schemac/Cargo.toml index b90252564b..97644e1b6e 100644 --- a/packages/common/schemac/Cargo.toml +++ b/packages/common/schemac/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "schemac" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/common/service-manager/Cargo.toml b/packages/common/service-manager/Cargo.toml index 3f79f2928f..d93c952e04 100644 --- a/packages/common/service-manager/Cargo.toml +++ b/packages/common/service-manager/Cargo.toml @@ -2,6 +2,8 @@ name = "rivet-service-manager" version = "0.1.0" edition = "2021" +authors = ["Rivet Gaming, LLC "] +license = "Apache-2.0" [dependencies] anyhow = "1.0.89" diff --git a/packages/common/smithy-output/api-auth/rust-server/Cargo.toml b/packages/common/smithy-output/api-auth/rust-server/Cargo.toml index d7587c7ba3..eab1fcfdbb 100644 --- a/packages/common/smithy-output/api-auth/rust-server/Cargo.toml +++ b/packages/common/smithy-output/api-auth/rust-server/Cargo.toml @@ -2,8 +2,8 @@ [package] name = "rivet-auth-server" version = "0.0.1" -authors = ["Rivet "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-auth/rust/Cargo.toml b/packages/common/smithy-output/api-auth/rust/Cargo.toml index 4b67ef0597..636b6fb5a5 100644 --- a/packages/common/smithy-output/api-auth/rust/Cargo.toml +++ b/packages/common/smithy-output/api-auth/rust/Cargo.toml @@ -2,9 +2,9 @@ [package] name = "rivet-auth" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] description = "" edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-cf-verification/rust-server/Cargo.toml b/packages/common/smithy-output/api-cf-verification/rust-server/Cargo.toml index d31177f349..6910b8ce77 100644 --- a/packages/common/smithy-output/api-cf-verification/rust-server/Cargo.toml +++ b/packages/common/smithy-output/api-cf-verification/rust-server/Cargo.toml @@ -2,8 +2,8 @@ [package] name = "rivet-cf-verification-server" version = "0.0.1" -authors = ["Rivet "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-cf-verification/rust/Cargo.toml b/packages/common/smithy-output/api-cf-verification/rust/Cargo.toml index 139a47b65f..03d681ced8 100644 --- a/packages/common/smithy-output/api-cf-verification/rust/Cargo.toml +++ b/packages/common/smithy-output/api-cf-verification/rust/Cargo.toml @@ -2,9 +2,9 @@ [package] name = "rivet-cf-verification" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] description = "" edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-cloud/rust-server/Cargo.toml b/packages/common/smithy-output/api-cloud/rust-server/Cargo.toml index c12e18f9db..df4b14dda5 100644 --- a/packages/common/smithy-output/api-cloud/rust-server/Cargo.toml +++ b/packages/common/smithy-output/api-cloud/rust-server/Cargo.toml @@ -2,8 +2,8 @@ [package] name = "rivet-cloud-server" version = "0.0.1" -authors = ["Rivet "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-cloud/rust/Cargo.toml b/packages/common/smithy-output/api-cloud/rust/Cargo.toml index f6ebc25a38..6e26ad07d4 100644 --- a/packages/common/smithy-output/api-cloud/rust/Cargo.toml +++ b/packages/common/smithy-output/api-cloud/rust/Cargo.toml @@ -2,9 +2,9 @@ [package] name = "rivet-cloud" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] description = "Rivet service for developers to manage games" edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-group/rust-server/Cargo.toml b/packages/common/smithy-output/api-group/rust-server/Cargo.toml index 554261fabd..23e27e448d 100644 --- a/packages/common/smithy-output/api-group/rust-server/Cargo.toml +++ b/packages/common/smithy-output/api-group/rust-server/Cargo.toml @@ -2,8 +2,8 @@ [package] name = "rivet-group-server" version = "0.0.7" -authors = ["Rivet "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-group/rust/Cargo.toml b/packages/common/smithy-output/api-group/rust/Cargo.toml index 18b409c541..ae6b114b7f 100644 --- a/packages/common/smithy-output/api-group/rust/Cargo.toml +++ b/packages/common/smithy-output/api-group/rust/Cargo.toml @@ -2,9 +2,9 @@ [package] name = "rivet-group" version = "0.0.7" -authors = ["Rivet Gaming, LLC "] description = "Rivet service enabling identities to create groups together" edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-identity/rust-server/Cargo.toml b/packages/common/smithy-output/api-identity/rust-server/Cargo.toml index 00e11f5e67..aa67a0f291 100644 --- a/packages/common/smithy-output/api-identity/rust-server/Cargo.toml +++ b/packages/common/smithy-output/api-identity/rust-server/Cargo.toml @@ -2,8 +2,8 @@ [package] name = "rivet-identity-server" version = "0.0.14" -authors = ["Rivet "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-identity/rust/Cargo.toml b/packages/common/smithy-output/api-identity/rust/Cargo.toml index 439cec51e6..31f442ad4c 100644 --- a/packages/common/smithy-output/api-identity/rust/Cargo.toml +++ b/packages/common/smithy-output/api-identity/rust/Cargo.toml @@ -2,9 +2,9 @@ [package] name = "rivet-identity" version = "0.0.14" -authors = ["Rivet Gaming, LLC "] description = "Rivet service for authenticating and managing identities" edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-job/rust-server/Cargo.toml b/packages/common/smithy-output/api-job/rust-server/Cargo.toml index 4ff0f4b815..81efb34499 100644 --- a/packages/common/smithy-output/api-job/rust-server/Cargo.toml +++ b/packages/common/smithy-output/api-job/rust-server/Cargo.toml @@ -2,8 +2,8 @@ [package] name = "rivet-job-server" version = "0.0.1" -authors = ["Rivet "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-job/rust/Cargo.toml b/packages/common/smithy-output/api-job/rust/Cargo.toml index 14d235694e..00303ff9fe 100644 --- a/packages/common/smithy-output/api-job/rust/Cargo.toml +++ b/packages/common/smithy-output/api-job/rust/Cargo.toml @@ -2,9 +2,9 @@ [package] name = "rivet-job" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] description = "" edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-kv/rust-server/Cargo.toml b/packages/common/smithy-output/api-kv/rust-server/Cargo.toml index 652e9b1b7e..2ecc540639 100644 --- a/packages/common/smithy-output/api-kv/rust-server/Cargo.toml +++ b/packages/common/smithy-output/api-kv/rust-server/Cargo.toml @@ -2,8 +2,8 @@ [package] name = "rivet-kv-server" version = "0.0.8" -authors = ["Rivet "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-kv/rust/Cargo.toml b/packages/common/smithy-output/api-kv/rust/Cargo.toml index 74bd59f955..c9f77f181c 100644 --- a/packages/common/smithy-output/api-kv/rust/Cargo.toml +++ b/packages/common/smithy-output/api-kv/rust/Cargo.toml @@ -2,9 +2,9 @@ [package] name = "rivet-kv" version = "0.0.8" -authors = ["Rivet Gaming, LLC "] description = "Rivet service for interacting with the key-value database" edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-matchmaker/rust-server/Cargo.toml b/packages/common/smithy-output/api-matchmaker/rust-server/Cargo.toml index 1c855bcbe3..f3f7e48b1d 100644 --- a/packages/common/smithy-output/api-matchmaker/rust-server/Cargo.toml +++ b/packages/common/smithy-output/api-matchmaker/rust-server/Cargo.toml @@ -2,8 +2,8 @@ [package] name = "rivet-matchmaker-server" version = "0.0.8" -authors = ["Rivet "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-matchmaker/rust/Cargo.toml b/packages/common/smithy-output/api-matchmaker/rust/Cargo.toml index f4cdcd47ac..acd81fbcd0 100644 --- a/packages/common/smithy-output/api-matchmaker/rust/Cargo.toml +++ b/packages/common/smithy-output/api-matchmaker/rust/Cargo.toml @@ -2,9 +2,9 @@ [package] name = "rivet-matchmaker" version = "0.0.8" -authors = ["Rivet Gaming, LLC "] description = "Rivet service for matchmaking players and managing lobbies" edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-party/rust-server/Cargo.toml b/packages/common/smithy-output/api-party/rust-server/Cargo.toml index 65420a8004..fde71681c5 100644 --- a/packages/common/smithy-output/api-party/rust-server/Cargo.toml +++ b/packages/common/smithy-output/api-party/rust-server/Cargo.toml @@ -2,8 +2,8 @@ [package] name = "rivet-party-server" version = "0.0.7" -authors = ["Rivet "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-party/rust/Cargo.toml b/packages/common/smithy-output/api-party/rust/Cargo.toml index 84bef14bd9..f35046cd16 100644 --- a/packages/common/smithy-output/api-party/rust/Cargo.toml +++ b/packages/common/smithy-output/api-party/rust/Cargo.toml @@ -2,9 +2,9 @@ [package] name = "rivet-party" version = "0.0.7" -authors = ["Rivet Gaming, LLC "] description = "Rivet service enabling identities to play together in real time across games" edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-portal/rust-server/Cargo.toml b/packages/common/smithy-output/api-portal/rust-server/Cargo.toml index ed4f3c5219..d6e3a494ef 100644 --- a/packages/common/smithy-output/api-portal/rust-server/Cargo.toml +++ b/packages/common/smithy-output/api-portal/rust-server/Cargo.toml @@ -2,8 +2,8 @@ [package] name = "rivet-portal-server" version = "0.0.1" -authors = ["Rivet "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-portal/rust/Cargo.toml b/packages/common/smithy-output/api-portal/rust/Cargo.toml index 49564b8ffc..ba75f36a1d 100644 --- a/packages/common/smithy-output/api-portal/rust/Cargo.toml +++ b/packages/common/smithy-output/api-portal/rust/Cargo.toml @@ -2,9 +2,9 @@ [package] name = "rivet-portal" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] description = "" edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-status/rust-server/Cargo.toml b/packages/common/smithy-output/api-status/rust-server/Cargo.toml index 7786816441..203df48771 100644 --- a/packages/common/smithy-output/api-status/rust-server/Cargo.toml +++ b/packages/common/smithy-output/api-status/rust-server/Cargo.toml @@ -2,8 +2,8 @@ [package] name = "rivet-status-server" version = "0.0.1" -authors = ["Rivet "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-status/rust/Cargo.toml b/packages/common/smithy-output/api-status/rust/Cargo.toml index 58c1e938e6..27c39cbee3 100644 --- a/packages/common/smithy-output/api-status/rust/Cargo.toml +++ b/packages/common/smithy-output/api-status/rust/Cargo.toml @@ -2,9 +2,9 @@ [package] name = "rivet-status" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] description = "" edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-traefik-provider/rust-server/Cargo.toml b/packages/common/smithy-output/api-traefik-provider/rust-server/Cargo.toml index 0200ba87a3..34c07d0064 100644 --- a/packages/common/smithy-output/api-traefik-provider/rust-server/Cargo.toml +++ b/packages/common/smithy-output/api-traefik-provider/rust-server/Cargo.toml @@ -2,8 +2,8 @@ [package] name = "rivet-traefik-provider-server" version = "0.0.1" -authors = ["Rivet "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/smithy-output/api-traefik-provider/rust/Cargo.toml b/packages/common/smithy-output/api-traefik-provider/rust/Cargo.toml index ec4a502545..41db1320ca 100644 --- a/packages/common/smithy-output/api-traefik-provider/rust/Cargo.toml +++ b/packages/common/smithy-output/api-traefik-provider/rust/Cargo.toml @@ -2,9 +2,9 @@ [package] name = "rivet-route" version = "0.0.1" -authors = ["Rivet Gaming, LLC "] description = "" edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [package.metadata.docs.rs] diff --git a/packages/common/test-images/Cargo.toml b/packages/common/test-images/Cargo.toml index 29a055e569..1099845cc7 100644 --- a/packages/common/test-images/Cargo.toml +++ b/packages/common/test-images/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "rivet-test-images" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [dependencies] diff --git a/packages/common/test/Cargo.toml b/packages/common/test/Cargo.toml index 0ab1f7ce01..84857f21d5 100644 --- a/packages/common/test/Cargo.toml +++ b/packages/common/test/Cargo.toml @@ -2,6 +2,8 @@ name = "rivet-test" version = "0.1.0" edition = "2021" +authors = ["Rivet Gaming, LLC "] +license = "Apache-2.0" [dependencies] types-proto = { version = "0.1.0", path = "../types-proto/core" } diff --git a/packages/common/util/core/Cargo.toml b/packages/common/util/core/Cargo.toml index 1012c986af..dc62594b9d 100644 --- a/packages/common/util/core/Cargo.toml +++ b/packages/common/util/core/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "rivet-util" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [features] diff --git a/packages/common/util/macros/Cargo.toml b/packages/common/util/macros/Cargo.toml index c969bcd80e..cc64b3cb37 100644 --- a/packages/common/util/macros/Cargo.toml +++ b/packages/common/util/macros/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "rivet-util-macros" version = "0.1.0" -authors = ["Rivet Gaming, LLC "] edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [lib] diff --git a/packages/infra/server/Cargo.toml b/packages/infra/server/Cargo.toml index af3139e8ee..91826afa0d 100644 --- a/packages/infra/server/Cargo.toml +++ b/packages/infra/server/Cargo.toml @@ -2,6 +2,7 @@ name = "rivet-server" version = "0.1.0" edition = "2021" +authors = ["Rivet Gaming, LLC "] license = "Apache-2.0" [[bin]] diff --git a/packages/services/cloud/standalone/default-create/Cargo.toml b/packages/services/cloud/standalone/default-create/Cargo.toml index adadf502d0..5e3579fa17 100644 --- a/packages/services/cloud/standalone/default-create/Cargo.toml +++ b/packages/services/cloud/standalone/default-create/Cargo.toml @@ -2,6 +2,8 @@ name = "cloud-default-create" version = "0.1.0" edition = "2021" +authors = ["Rivet Gaming, LLC "] +license = "Apache-2.0" [dependencies] chirp-client = { path = "../../../../common/chirp/client" } diff --git a/packages/services/dynamic-config/Cargo.toml b/packages/services/dynamic-config/Cargo.toml index 601164b46b..a8f9ba94dd 100644 --- a/packages/services/dynamic-config/Cargo.toml +++ b/packages/services/dynamic-config/Cargo.toml @@ -2,6 +2,8 @@ name = "dynamic-config" version = "0.1.0" edition = "2021" +authors = ["Rivet Gaming, LLC "] +license = "Apache-2.0" [dependencies] chirp-workflow = { version = "0.1.0", path = "../../common/chirp-workflow/core" } diff --git a/packages/services/user/Cargo.toml b/packages/services/user/Cargo.toml index a574aab76a..947b9e9fb7 100644 --- a/packages/services/user/Cargo.toml +++ b/packages/services/user/Cargo.toml @@ -2,6 +2,8 @@ name = "user" version = "0.1.0" edition = "2021" +authors = ["Rivet Gaming, LLC "] +license = "Apache-2.0" [dependencies] chirp-workflow = { path = "../../common/chirp-workflow/core" } diff --git a/scripts/cargo/update_licenses.ts b/scripts/cargo/update_licenses.ts new file mode 100755 index 0000000000..ae052220df --- /dev/null +++ b/scripts/cargo/update_licenses.ts @@ -0,0 +1,45 @@ +#!/usr/bin/env -S deno run --allow-net --allow-env --allow-read --allow-write + +// Import necessary Deno modules +import { join } from "https://deno.land/std@0.114.0/path/mod.ts"; + +// Define the directory path +const packagesDir = join(import.meta.dirname, "../../packages"); + +// Function to update Cargo.toml files recursively +async function updateCargoTomlFiles(dir: string) { + // Read the directory + for await (const dirEntry of Deno.readDir(dir)) { + const fullPath = join(dir, dirEntry.name); + + if (dirEntry.isDirectory) { + // Recursively update Cargo.toml files in subdirectories + await updateCargoTomlFiles(fullPath); + } else if (dirEntry.isFile && dirEntry.name === "Cargo.toml") { + try { + // Read the Cargo.toml file + let data = await Deno.readTextFile(fullPath); + + // Remove existing license and authors fields + data = data.replace(/license\s*=\s*".*"\s*\n?/g, ""); + data = data.replace(/authors\s*=\s*\[.*\]\s*\n?/g, ""); + + // Find the end of the [package] block, ignore trailing whitespace, and insert new fields + data = data.replace( + /(\[package\][\s\S]*?)(\s*)(?=\n\[.*\]|\n?$)/, + `$1\nauthors = ["Rivet Gaming, LLC "]\nlicense = "Apache-2.0"\n`, + ); + + // Write the updated Cargo.toml file + console.log(data); + await Deno.writeTextFile(fullPath, data); + console.log(`Updated ${fullPath}`); + } catch (error) { + console.error(`Failed to update ${fullPath}:`, error); + } + } + } +} + +// Execute the function starting from the root packages directory +updateCargoTomlFiles(packagesDir);