Skip to content

Commit

Permalink
chore: remove openssl deps (GreptimeTeam#5079)
Browse files Browse the repository at this point in the history
* chore: remove openssl deps

* ci: add ci task to check blacklisted dependencies
  • Loading branch information
sunng87 authored Dec 2, 2024
1 parent 0f116c8 commit bcadce3
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 174 deletions.
2 changes: 2 additions & 0 deletions .github/cargo-blacklist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
native-tls
openssl
36 changes: 36 additions & 0 deletions .github/workflows/dependency-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Check Dependencies

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
check-dependencies:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Run cargo tree
run: cargo tree --prefix none > dependencies.txt

- name: Extract dependency names
run: awk '{print $1}' dependencies.txt > dependency_names.txt

- name: Check for blacklisted crates
run: |
while read -r dep; do
if grep -qFx "$dep" dependency_names.txt; then
echo "Blacklisted crate '$dep' found in dependencies."
exit 1
fi
done < .github/cargo-blacklist.txt
echo "No blacklisted crates found."
189 changes: 16 additions & 173 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ common-query.workspace = true
common-recordbatch.workspace = true
common-time.workspace = true
datatypes = { workspace = true }
mysql = { version = "23.0.1" }
mysql = { version = "25.0.1", default-features = false, features = ["minimal", "rustls-tls"] }
serde.workspace = true
serde_json.workspace = true
tokio-postgres = { workspace = true }
Expand Down

0 comments on commit bcadce3

Please sign in to comment.