0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-24 23:18:22 -05:00

build: optimise build profiles and add necessary information under package section

This commit is contained in:
neon_arch 2023-06-05 12:30:14 +03:00
parent e7701e1014
commit 39da8e8d63

View File

@ -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"