mirror of
https://github.com/flibusta-apps/batch_downloader.git
synced 2025-12-06 06:15:37 +01:00
Optimize release build
Some checks failed
Build docker image / Build-Docker-Image (push) Has been cancelled
Some checks failed
Build docker image / Build-Docker-Image (push) Has been cancelled
This commit is contained in:
56
.vscode/launch.json
vendored
56
.vscode/launch.json
vendored
@@ -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}"
|
||||
}
|
||||
]
|
||||
}
|
||||
15
Cargo.toml
15
Cargo.toml
@@ -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"] }
|
||||
|
||||
Reference in New Issue
Block a user