From 27f5a3b16b7093ab5e7b90fb22eaeb4194b58215 Mon Sep 17 00:00:00 2001 From: nym21 Date: Sat, 5 Apr 2025 00:55:22 +0200 Subject: [PATCH] dist: move config to config.toml --- Cargo.toml | 22 ++++++++++++++++++++-- dist-workspace.toml | 19 ------------------- 2 files changed, 20 insertions(+), 21 deletions(-) delete mode 100644 dist-workspace.toml diff --git a/Cargo.toml b/Cargo.toml index b6cdf1da1..643175be6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,10 +12,8 @@ lto = "fat" codegen-units = 1 panic = "abort" -# The profile that 'dist' will build with [profile.dist] inherits = "release" -lto = "fat" [workspace.dependencies] bitcoin = { version = "0.32.5", features = ["serde"] } @@ -44,3 +42,23 @@ serde = { version = "1.0.219", features = ["derive"] } serde_json = { version = "1.0.140", features = ["float_roundtrip"] } tabled = "0.18.0" zerocopy = { version = "0.8.24", features = ["derive"] } + +[workspace.metadata.release] +shared-version = true +tag-name = "v{{version}}" + +[workspace.metadata.dist] +# The preferred dist version to use in CI (Cargo.toml SemVer syntax) +cargo-dist-version = "0.28.0" +# CI backends to support +ci = "github" +# The installers to generate for each app +installers = [] +# Target platforms to build apps for (Rust target-triple syntax) +targets = [ + "aarch64-apple-darwin", + "aarch64-unknown-linux-gnu", + "x86_64-apple-darwin", + "x86_64-unknown-linux-gnu", + "x86_64-pc-windows-msvc", +] diff --git a/dist-workspace.toml b/dist-workspace.toml deleted file mode 100644 index f6f7aab41..000000000 --- a/dist-workspace.toml +++ /dev/null @@ -1,19 +0,0 @@ -[workspace] -members = ["cargo:."] - -# Config for 'dist' -[dist] -# The preferred dist version to use in CI (Cargo.toml SemVer syntax) -cargo-dist-version = "0.28.0" -# CI backends to support -ci = "github" -# The installers to generate for each app -installers = [] -# Target platforms to build apps for (Rust target-triple syntax) -targets = [ - "aarch64-apple-darwin", - "aarch64-unknown-linux-gnu", - "x86_64-apple-darwin", - "x86_64-unknown-linux-gnu", - "x86_64-pc-windows-msvc", -]