From 39da8e8d631d55cff09aa55958f55693138c00a3 Mon Sep 17 00:00:00 2001 From: neon_arch Date: Mon, 5 Jun 2023 12:30:14 +0300 Subject: [PATCH] build: optimise build profiles and add necessary information under package section --- Cargo.toml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b8f2755..2e2adfb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,8 +2,9 @@ name = "websurfx" version = "0.12.0" edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +description = "An open-source alternative to Searx that provides clean, ad-free, and organic results with incredible speed while keeping privacy and security in mind." +repository = "https://github.com/neon-mmd/websurfx" +license = "AGPL-3.0" [dependencies] reqwest = {version="*",features=["json"]} @@ -25,3 +26,28 @@ once_cell = {version="*"} [dev-dependencies] rusty-hook = "^0.11.2" + +[profile.dev] +opt-level = 0 +debug = true +split-debuginfo = '...' +debug-assertions = true +overflow-checks = true +lto = false +panic = 'unwind' +incremental = true +codegen-units = 256 +rpath = false + +[profile.release] +opt-level = 3 +debug = false +split-debuginfo = '...' +debug-assertions = false +overflow-checks = false +lto = 'thin' +panic = 'unwind' +incremental = false +codegen-units = 16 +rpath = false +strip = "debuginfo"