Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use opfs-sahpool from diesel, remove sqlite-web #1676

Closed
wants to merge 11 commits into from
Closed
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
1 change: 0 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -8,7 +8,6 @@ r = "run"
t = "test"
xdbg = "run --release --bin xdbg --"
xli = "run --bin xmtp_cli --"
xtask = "run --package xtask --"

[build]
rustflags = ["--cfg", "tracing_unstable"]
12 changes: 9 additions & 3 deletions .github/workflows/check-ios-android-bindings.yml
Original file line number Diff line number Diff line change
@@ -30,7 +30,10 @@ jobs:
# Mostly to avoid GitHub rate limiting
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/flakehub-cache-action@main
- uses: cachix/cachix-action@v14
with:
name: xmtp
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Cache
uses: Swatinem/rust-cache@v2
with:
@@ -60,8 +63,11 @@ jobs:
# Mostly to avoid GitHub rate limiting
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/flakehub-cache-action@main
- name: Cache
- uses: cachix/cachix-action@v14
with:
name: xmtp
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: cache rust artifacts
uses: Swatinem/rust-cache@v2
with:
workspaces: |
10 changes: 9 additions & 1 deletion .github/workflows/lint-wasm-bindings.yaml
Original file line number Diff line number Diff line change
@@ -28,7 +28,15 @@ jobs:
with:
workspaces: |
bindings_wasm
- name: Install emscripten toolchains
run: |
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
- name: Run clippy and fail on warnings
run: cargo clippy --locked --manifest-path bindings_wasm/Cargo.toml --all-features --target wasm32-unknown-unknown --no-deps -- -D warnings
run: |
source ./emsdk/emsdk_env.sh
cargo clippy --locked --manifest-path bindings_wasm/Cargo.toml --all-features --target wasm32-unknown-unknown --no-deps -- -D warnings
- name: Run format check
run: cargo fmt --manifest-path bindings_wasm/Cargo.toml --check
1 change: 0 additions & 1 deletion .github/workflows/lint-workspace.yaml
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@ on:
- "xmtp_id/**"
- "xmtp_mls/**"
- "xmtp_proto/**"
- "xmtp_v2/**"
- "xmtp_debug/**"
- "bindings_node/**"
- "bindings_ffi/**"
1 change: 0 additions & 1 deletion .github/workflows/noop.yml
Original file line number Diff line number Diff line change
@@ -18,7 +18,6 @@ on:
- "!xmtp_id/**"
- "!xmtp_mls/**"
- "!xmtp_proto/**"
- "!xmtp_v2/**"
- "!.node-version"
- "!Cargo.toml"
- "!Cargo.lock"
17 changes: 6 additions & 11 deletions .github/workflows/release-wasm-bindings.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: Release WASM Bindings

on:
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
release:
permissions:
@@ -14,23 +11,25 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Update rust toolchains, add target
run: |
rustup update

- name: Install emscripten toolchains
run: |
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
- name: Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
bindings_wasm

- name: Install wasm-bindgen
uses: taiki-e/install-action@v2
with:
tool: wasm-bindgen

- name: Setup node
uses: actions/setup-node@v4
with:
@@ -39,19 +38,15 @@ jobs:
cache: "yarn"
env:
SKIP_YARN_COREPACK_CHECK: "1"

- name: Enable corepack
run: corepack enable

- name: Install dependencies
working-directory: bindings_wasm
run: |
yarn

- name: Build
working-directory: bindings_wasm
run: yarn build

- name: Publish to NPM
uses: JS-DevTools/npm-publish@v3
with:
3 changes: 1 addition & 2 deletions .github/workflows/test-ffi-bindings.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test FFI Bindings
name: Test iOS/Android Bindings
on:
push:
branches:
@@ -15,7 +15,6 @@ on:
- "xmtp_id/**"
- "xmtp_mls/**"
- "xmtp_proto/**"
- "xmtp_v2/**"
- "Cargo.toml"
- "Cargo.lock"
- ".cargo/**"
1 change: 0 additions & 1 deletion .github/workflows/test-http-api.yml
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@ on:
- "xmtp_id/**"
- "xmtp_mls/**"
- "xmtp_proto/**"
- "xmtp_v2/**"
- "Cargo.toml"
- "Cargo.lock"
- ".cargo/**"
1 change: 0 additions & 1 deletion .github/workflows/test-node-bindings.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,6 @@ on:
- "xmtp_id/**"
- "xmtp_mls/**"
- "xmtp_proto/**"
- "xmtp_v2/**"
- ".node-version"
- "Cargo.toml"
- "Cargo.lock"
10 changes: 9 additions & 1 deletion .github/workflows/test-webassembly.yml
Original file line number Diff line number Diff line change
@@ -38,8 +38,16 @@ jobs:
.
- name: Start Docker containers
run: dev/up
- name: Install emscripten toolchains
run: |
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
- name: Build WebAssembly Packages
run: cargo build --locked --tests --release --target wasm32-unknown-unknown -p xmtp_id -p xmtp_mls -p xmtp_api_http -p xmtp_cryptography -p xmtp_common
run: |
source ./emsdk/emsdk_env.sh
cargo build --locked --tests --release --target wasm32-unknown-unknown -p xmtp_id -p xmtp_mls -p xmtp_api_http -p xmtp_cryptography -p xmtp_common
- name: test with chrome
run: |
cargo test --locked --release --target wasm32-unknown-unknown -p xmtp_mls -p xmtp_id -p xmtp_api_http -p xmtp_cryptography -p xmtp_api -- \
1 change: 0 additions & 1 deletion .github/workflows/test-workspace.yml
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@ on:
- "xmtp_id/**"
- "xmtp_mls/**"
- "xmtp_proto/**"
- "xmtp_v2/**"
- "Cargo.toml"
- "Cargo.lock"
- ".cargo/**"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -44,6 +44,7 @@ coverage

# Bower dependency directory (https://bower.io/)
bower_components
result/**

# node-waf configuration
.lock-wscript
19 changes: 0 additions & 19 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -79,25 +79,6 @@
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'xmtp_v2'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=xmtp_v2"
],
"filter": {
"name": "xmtp_v2",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
Loading