diff --git a/.gitignore b/.gitignore index a1079ad..ed7232a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .DS_Store *.xlsx *.txt +makefile # Файлы окружения .env diff --git a/Cargo.lock b/Cargo.lock index 7d04a30..000b1b4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,6 +19,7 @@ dependencies = [ "env_logger", "futures", "log", + "openssl", "regex", "reqwest", "serde", @@ -980,6 +981,15 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" +[[package]] +name = "openssl-src" +version = "300.6.0+3.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8e8cbfd3a4a8c8f089147fd7aaa33cf8c7450c4d09f8f80698a0cf093abeff4" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" version = "0.9.113" @@ -988,6 +998,7 @@ checksum = "ad2f2c0eba47118757e4c6d2bff2838f3e0523380021356e7875e858372ce644" dependencies = [ "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] diff --git a/Cargo.toml b/Cargo.toml index 8932bee..bc6d1e7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,4 +28,16 @@ log = "0.4" env_logger = "0.11" [dev-dependencies] -tokio = { version = "1.0", features = ["full", "rt-multi-thread"] } \ No newline at end of file +tokio = { version = "1.0", features = ["full", "rt-multi-thread"] } + +[target.x86_64-unknown-linux-gnu.dependencies] +openssl = { version = "0.10", features = ["vendored"] } + +[target.x86_64-unknown-linux-musl.dependencies] +openssl = { version = "0.10", features = ["vendored"] } + +[profile.release] +opt-level = "z" # Оптимизация на размер (s/z) +lto = true # Link Time Optimization +codegen-units = 1 # Лучшая оптимизация (но дольше компиляция) +strip = true