From c8f86a2f9cbbacddde964b0dcb3750425723ef29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czy=C5=BC?= Date: Tue, 13 Aug 2024 15:06:32 +0200 Subject: [PATCH] chore: using cargo-dist for package building --- Cargo.toml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index baae0d0..7b8b488 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,3 +51,23 @@ once_cell = "1.19.0" [patch.crates-io.serenity-voice-model] git = "https://github.com/serenity-rs/serenity" branch = "current" + +# The profile that 'cargo dist' will build with +[profile.dist] +inherits = "release" +lto = "thin" + +# Config for 'cargo dist' +[workspace.metadata.dist] +# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax) +cargo-dist-version = "0.20.0" +# CI backends to support +ci = "github" +# The installers to generate for each app +installers = ["shell"] +# Target platforms to build apps for (Rust target-triple syntax) +targets = ["x86_64-unknown-linux-gnu"] +# Path that installers should place binaries in +install-path = "CARGO_HOME" +# Whether to install an updater program +install-updater = false