Skip to content

Commit

Permalink
chore(clients): add start of rust client
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Jul 6, 2024
1 parent ffe2f7f commit 6439078
Show file tree
Hide file tree
Showing 6 changed files with 2,554 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Rust CI

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
rust-version: [stable, beta, nightly]

steps:
- uses: actions/checkout@v4

- name: Set up Rust ${{ matrix.rust-version }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust-version }}
profile: minimal
override: true

- name: Cache cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-git-
- name: Check toolchain
run: rustc --version

- name: Build
run: cargo build --verbose
working-directory: ./rust

- name: Run tests
run: cargo test --verbose --lib
working-directory: ./rust
env:
SPIDER_API_KEY: ${{ secrets.SPIDER_API_KEY }}
SPIDER_EMAIL: ${{ secrets.SPIDER_EMAIL }}
SPIDER_PASSWORD: ${{ secrets.SPIDER_PASSWORD }}
SUPABASE_AUTO_REFRESH_TOKEN: "false"
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Leverage the power of Spider in your Python applications. Navigate to our [Pytho

Integrate Spider effortlessly into your Javascript projects. Visit our [Javascript client library directory](./javascript/) to explore how you can utilize Spider in Node.js or browser environments. Enhance your web scraping capabilities, improve data collection strategies, and unlock new possibilities with our cutting-edge technology.

## Rust (WIP)

Integrate Spider effortlessly into your Rust projects. Visit our [Rust client library directory](./rust/) to explore how you can utilize Spider in your applications. Enhance your web scraping capabilities, improve data collection strategies, and unlock new possibilities with our cutting-edge technology.

---

### Features
Expand Down
Loading

0 comments on commit 6439078

Please sign in to comment.