Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

Commit

Permalink
feat: Introduce RocksDbStorage, genericize storage throughout.
Browse files Browse the repository at this point in the history
* Introduce `RocksDbStorage`
* Rename NativeStorage -> SledStorage, WebStorage -> IndexedDbStorage. Make storage generic over gateway.
* Added `PerformanceStorage<S: Storage>`, `trait noosphere_storage::Space` for benchmarking storage
  backends.
  • Loading branch information
jsantell committed Sep 12, 2023
1 parent accb5e8 commit f9dca50
Show file tree
Hide file tree
Showing 52 changed files with 1,518 additions and 496 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/noosphere_apple_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
with:
brew: protobuf cmake
- name: 'Cargo Build'
run: cargo build --package noosphere --release --locked --target ${{ matrix.target }}
run: cargo build --package noosphere --release --locked --target ${{ matrix.target }} --features rocksdb
- run: |
cd target/${{ matrix.target }}/release
- uses: actions/upload-artifact@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run_test_suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
ipfs_version: v0.17.0
run_daemon: true
- name: 'Run Rust native target tests'
run: cargo test --features test-kubo,helpers
run: cargo test --features test-kubo,helpers,performance
env:
NOOSPHERE_LOG: deafening

Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
ipfs_version: v0.17.0
run_daemon: true
- name: 'Run Rust native target tests'
run: NOOSPHERE_LOG=deafening cargo test --features test-kubo,headers
run: NOOSPHERE_LOG=deafening cargo test --features test-kubo,headers,performance
run-test-suite-linux-c:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
shell: bash
- name: 'Run Rust headless browser tests'
working-directory: ./rust
run: CHROMEDRIVER=/usr/local/bin/chromedriver cargo test --target wasm32-unknown-unknown
run: CHROMEDRIVER=/usr/local/bin/chromedriver cargo test --target wasm32-unknown-unknown --features performance
shell: bash

run-test-suite-web-typescript:
Expand Down
Loading

0 comments on commit f9dca50

Please sign in to comment.