From b502d3302c332f3a8e1e6aa106b1bc4bf8f8c430 Mon Sep 17 00:00:00 2001 From: Stanisław Zagórowski Date: Fri, 19 Jan 2024 23:34:24 +0100 Subject: misc: add cargo-dist --- Cargo.toml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 22f7cde..653821d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,3 +22,21 @@ rlua = { version = "0.19.7", default-features = false, features = ["system-luaji tempfile = "3.9.0" tokio = { version = "1.35.1", features = ["macros", "rt-multi-thread"] } utf8-read = "0.4.0" + +# 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.8.0" +# CI backends to support +ci = ["github"] +# The installers to generate for each app +installers = ["shell", "powershell"] +# Target platforms to build apps for (Rust target-triple syntax) +targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc"] +# Publish jobs to run in CI +pr-run-mode = "skip" -- cgit v1.3.1