Skip to content

Commit

Permalink
getting started, feels very doable
Browse files Browse the repository at this point in the history
[x] proof of concept, pure rust and only pulling images for now
[x] using kanal for message passing
[x] async page pull
[x] small cli with arguments
[x] reuse the same client over time, and the same connection pool across the threads
[x] image crop and resize
[x] pull all the payloads
[ ] nice threadpool handling, workstealing and all ideally
[ ] image encoding
[ ] bulletproof all paths
[ ] unit tests
[x] CI
[ ] CD
[ ] python wrap
  • Loading branch information
blefaudeux committed Feb 1, 2025
1 parent a46e601 commit 76c76a2
Show file tree
Hide file tree
Showing 13 changed files with 3,907 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Rust CI

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

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
rust: [stable]

steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy

- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Check formatting
run: cd rust/datago && cargo fmt --all -- --check

- name: Build
run: cd rust/datago && cargo build --verbose

- name: Run tests
run: cd rust/datago && cargo test --verbose
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ build

__pycache__
*.pyc

target/debug
1 change: 1 addition & 0 deletions rust/datago/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target
Loading

0 comments on commit 76c76a2

Please sign in to comment.