From b723a62516237bdb363e5cec7041b67266a0ed79 Mon Sep 17 00:00:00 2001 From: nkaz001 Date: Thu, 8 Aug 2024 04:47:14 -0400 Subject: [PATCH] fix(rust): switch to Rust native tls. --- .github/workflows/release-python.yml | 2 +- hftbacktest/Cargo.toml | 2 +- py-hftbacktest/Cargo.toml | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 46269cb..0b05ff3 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -44,7 +44,7 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get install -y pkg-config openssl libssl-dev perl perl-doc + sudo apt-get install -y pkg-config openssl libssl-dev - name: Build wheels uses: PyO3/maturin-action@v1 with: diff --git a/hftbacktest/Cargo.toml b/hftbacktest/Cargo.toml index df99cce..780d660 100644 --- a/hftbacktest/Cargo.toml +++ b/hftbacktest/Cargo.toml @@ -41,7 +41,7 @@ serde = { version = "1.0.196", features = ["derive"], optional = true } serde_json = { version = "1.0.113", optional = true } tokio = { version = "1.35.1", features = ["full"], optional = true } tokio-tungstenite = { version = "0.23.1", features = ["native-tls"], optional = true } -reqwest = { version = "0.12.3", features = ["json"], optional = true } +reqwest = { version = "0.12.3", features = ["json", "rustls-tls"], optional = true } zip = { version = "2.1.3", optional = true } futures-util = { version = "0.3.30", optional = true } sha2 = { version = "0.11.0-pre.3", optional = true } diff --git a/py-hftbacktest/Cargo.toml b/py-hftbacktest/Cargo.toml index 3c612ee..adcc1ac 100644 --- a/py-hftbacktest/Cargo.toml +++ b/py-hftbacktest/Cargo.toml @@ -10,8 +10,4 @@ crate-type = ["cdylib"] [dependencies] pyo3 = { version = "0.22.1", features = ["extension-module"] } hftbacktest = { path = "../hftbacktest", features = ["backtest"] } -hftbacktest-derive = { path = "../hftbacktest-derive" } - -[dependencies.openssl-sys] -version = "0.9" -features = ["vendored"] \ No newline at end of file +hftbacktest-derive = { path = "../hftbacktest-derive" } \ No newline at end of file