Optimize release build
Some checks failed
Build docker image / Build-Docker-Image (push) Has been cancelled

This commit is contained in:
2025-06-28 22:33:53 +02:00
parent c2ef4c6044
commit ece17cea77
2 changed files with 14 additions and 57 deletions

56
.vscode/launch.json vendored
View File

@@ -1,56 +0,0 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'batch_downloader'",
"cargo": {
"args": [
"build",
"--bin=batch_downloader",
"--package=batch_downloader"
],
"filter": {
"name": "batch_downloader",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}",
"env": {
"API_KEY": "debug",
"MINIO_HOST": "minio.kurbezz.ru:9000",
"MINIO_BUCKET": "book.archives",
"MINIO_ACCESS_KEY": "SAYRdiuaMvc3gjtxGZRm",
"MINIO_SECRET_KEY": "MUwBZs80J8rzKKJvp9Iv4tLBfyxakH7MkrgHiWc1",
"LIBRARY_API_KEY": "v3TGJxquSX8qg42EdeatASJddrSDcPdK",
"LIBRARY_URL": "https://book-library.kurbezz.ru",
"CACHE_API_KEY": "kGaA6feem7Nz5ZuRQDp6L8pdwEdnCAKH",
"CACHE_URL": "https://book-channel-cache.kurbezz.ru",
}
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'batch_downloader'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=batch_downloader",
"--package=batch_downloader"
],
"filter": {
"name": "batch_downloader",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}

View File

@@ -3,7 +3,20 @@ name = "batch_downloader"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.release]
opt-level = 3
debug = false
strip = true
lto = true
codegen-units = 1
panic = 'abort'
[profile.profiling]
inherits = "release"
debug = true
strip = false
[dependencies]
tokio = { version = "1.44.1", features = ["full"] }