From 72c57682ac7c923e3abe4e88528258d587383b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augusto=20Elesb=C3=A3o?= Date: Fri, 13 Oct 2023 09:54:11 +0200 Subject: [PATCH] chore: move common metadata to workspace package --- Cargo.toml | 26 ++++++++++++++++---------- contracts/increment/Cargo.toml | 6 +++++- packages/bindings/Cargo.toml | 11 ++++++----- packages/proto/Cargo.toml | 31 ++++++++++++++++--------------- 4 files changed, 43 insertions(+), 31 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7dc24f0..864f802 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,16 +2,11 @@ members = ["packages/*", "contracts/*"] resolver = "2" -[profile.release] -codegen-units = 1 -debug = false -debug-assertions = false -incremental = false -lto = true -opt-level = 3 -overflow-checks = true -panic = 'abort' -rpath = false +[workspace.package] +authors = ["Augusto Elesbão "] +license = "Apache-2.0" +repository = "https://github.com/archway-network/archway-bindings" +homepage = "https://archway.io" [workspace.dependencies] cosmwasm-schema = "1.4.0" @@ -23,3 +18,14 @@ cw2 = "1.1.0" schemars = "0.8.15" serde = { version = "1.0.188", default-features = false, features = ["derive"] } thiserror = { version = "1.0.48" } + +[profile.release] +codegen-units = 1 +debug = false +debug-assertions = false +incremental = false +lto = true +opt-level = 3 +overflow-checks = true +panic = 'abort' +rpath = false diff --git a/contracts/increment/Cargo.toml b/contracts/increment/Cargo.toml index 544b5be..12faa32 100644 --- a/contracts/increment/Cargo.toml +++ b/contracts/increment/Cargo.toml @@ -1,8 +1,12 @@ [package] name = "increment" version = "0.2.0" -authors = ["Augusto Elesbão "] edition = "2021" +authors.workspace = true +license.workspace = true +repository.workspace = true +homepage.workspace = true +readme = "README.md" exclude = [ # Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication. diff --git a/packages/bindings/Cargo.toml b/packages/bindings/Cargo.toml index ff8459f..9be1655 100644 --- a/packages/bindings/Cargo.toml +++ b/packages/bindings/Cargo.toml @@ -3,7 +3,12 @@ name = "archway-bindings" version = "0.2.0" edition = "2021" description = "CosmWasm bindings to interact with Archway's modules" -authors = ["Augusto Elesbão "] +authors.workspace = true +license.workspace = true +repository.workspace = true +homepage.workspace = true +readme = "README.md" + categories = [ "cryptography", "cryptography::cryptocurrencies", @@ -17,10 +22,6 @@ keywords = [ "smart-contracts", "wasm", ] -license = "Apache-2.0" -repository = "https://github.com/archway-network/archway-bindings" -homepage = "https://archway.io" -readme = "README.md" [features] backtraces = ["cosmwasm-std/backtraces"] diff --git a/packages/proto/Cargo.toml b/packages/proto/Cargo.toml index 1b0fab5..ace9ac2 100644 --- a/packages/proto/Cargo.toml +++ b/packages/proto/Cargo.toml @@ -2,25 +2,26 @@ name = "archway-proto" version = "0.1.0" edition = "2021" -description = "Rust build of Archway's protobuf definitions" -authors = ["Augusto Elesbão "] +description = "Rust build of Archway's ProtoBuf definitions" +authors.workspace = true +license.workspace = true +repository.workspace = true +homepage.workspace = true +readme = "README.md" + categories = [ - "cryptography", - "cryptography::cryptocurrencies", - "database", - "wasm", + "cryptography", + "cryptography::cryptocurrencies", + "database", + "wasm", ] keywords = [ - "archway", - "blockchain", - "cosmwasm", - "proto", - "smart-contracts", + "archway", + "blockchain", + "cosmwasm", + "proto", + "smart-contracts", ] -license = "Apache-2.0" -repository = "https://github.com/archway-network/archway-bindings" -homepage = "https://archway.io" -readme = "README.md" [dependencies] prost = "0.11.9"