Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo registry
uses: actions/cache@v4
with:
Expand All @@ -30,35 +30,35 @@ jobs:
key: ${{ runner.os }}-cargo-check-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-check-

- name: Run cargo check
run: cargo check --workspace --all-targets
run: cargo check --all-targets

fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt

- name: Check formatting
run: cargo fmt --all -- --check
run: cargo fmt -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: Cache cargo registry
uses: actions/cache@v4
with:
Expand All @@ -69,19 +69,19 @@ jobs:
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-clippy-

- name: Run clippy
run: cargo clippy --workspace --all-targets -- -D warnings
run: cargo clippy --all-targets -- -D warnings

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo registry
uses: actions/cache@v4
with:
Expand All @@ -92,19 +92,19 @@ jobs:
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-test-

- name: Run tests
run: cargo test --workspace
run: cargo test

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo registry
uses: actions/cache@v4
with:
Expand All @@ -115,6 +115,6 @@ jobs:
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-

- name: Build release
run: cargo build --workspace --release
run: cargo build --release
42 changes: 2 additions & 40 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@
resolver = "2"
members = [
"crates/cli",
"crates/api",
"crates/worker",
"crates/watcher",
"crates/cve",
"crates/common",
"crates/seed",
]

[workspace.package]
version = "0.1.11"
version = "0.1.12"
edition = "2021"
authors = ["brin contributors"]
license = "MIT"
Expand All @@ -21,46 +15,14 @@ repository = "https://github.com/superagent-ai/brin"
# Async runtime
tokio = { version = "1.43", features = ["full"] }

# Web framework
axum = { version = "0.8", features = ["macros"] }
tower = "0.5"
tower-http = { version = "0.6", features = ["cors", "compression-gzip", "trace"] }

# Database
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-rustls", "postgres", "chrono", "uuid"] }
deadpool-redis = "0.18"
redis = { version = "0.27", features = ["tokio-comp"] }

# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

# HTTP client
reqwest = { version = "0.12", default-features = false, features = ["json", "gzip", "rustls-tls"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }

# CLI
clap = { version = "4.5", features = ["derive", "env"] }
dialoguer = "0.11"
indicatif = "0.17"
colored = "2.1"
console = "0.15"

# Utilities
anyhow = "1.0"
thiserror = "2.0"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1.11", features = ["v4", "serde"] }
url = { version = "2.5", features = ["serde"] }
semver = { version = "1.0", features = ["serde"] }
flate2 = "1.0"
tar = "0.4"
zip = "2.2"
tempfile = "3.14"
dotenvy = "0.15"
async-trait = "0.1"
urlencoding = "2.1"

# Internal crates
common = { path = "crates/common" }
44 changes: 0 additions & 44 deletions Dockerfile.api

This file was deleted.

40 changes: 0 additions & 40 deletions Dockerfile.cve

This file was deleted.

40 changes: 0 additions & 40 deletions Dockerfile.watcher

This file was deleted.

50 changes: 0 additions & 50 deletions Dockerfile.worker

This file was deleted.

Loading