From e718bcc4e47f5a9c571e74b70bfb4e1c0c4f06e5 Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Sun, 10 Mar 2024 17:07:44 +0300 Subject: [PATCH] Use placeholders + change some Cargo.toml vars --- Cargo.toml | 8 ++++++-- Makefile.toml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 19e1d48..7783a57 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,14 @@ [package] -name = "kos_ytm" +name = "{{project-name}}" version = "0.1.0" +authors = ["{{authors}}"] edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -kos = { git = "https://git.coders-squad.com/KOS_Rust/Core" } +kos = { git = "https://git.kolibrios.org/Rust/Core" } cstr_core = { version = "0.2.4", default-features = false, features = ["nightly"] } + +[profile.release] +opt-level = "s" diff --git a/Makefile.toml b/Makefile.toml index cc81ed8..a2b071f 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -13,4 +13,4 @@ args = ["clean"] [tasks.build] command = "cargo" -args = ["objcopy", "@@remove-empty(RELEASE_FLAG)", "--", "-O", "binary", "rust.kex"] +args = ["objcopy", "@@remove-empty(RELEASE_FLAG)", "--", "-O", "binary", "{{crate_name}}.kex"]