Skip to content

Commit

Permalink
Merge pull request #571 from Horusiath/cloudflare-client
Browse files Browse the repository at this point in the history
Add `wasm` module & cloudflare client
  • Loading branch information
LucioFranco committed Nov 7, 2023
2 parents 027daa3 + 9050911 commit 0322a55
Show file tree
Hide file tree
Showing 19 changed files with 982 additions and 413 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,41 @@ jobs:
LIBSQL_BOTTOMLESS_AWS_DEFAULT_REGION: eu-central-2
LIBSQL_BOTTOMLESS_BUCKET: bottomless
LIBSQL_BOTTOMLESS_ENDPOINT: http://localhost:9000

# TODO(lucio): Enable this, for some reason github doesn't like this
# but won't tell me why...
# test-rust-wasm:
# runs-on: ubuntu-latest
# name: Run Rust Wasm Tests
# env:
# RUSTFLAGS: -D warnings
# steps:
# - uses: hecrj/setup-rust-action@v1
# with:
# targets: [wasm32-unknown-unknown]

# # needed because we run out of disk space during tests
# - name: Free Disk Space (Ubuntu)
# uses: jlumbroso/free-disk-space@main
# with:
# # this might remove tools that are actually needed,
# # when set to "true" but frees about 6 GB
# tool-cache: true

# - uses: actions/checkout@v3

# - name: Set up cargo cache
# uses: actions/cache@v3
# continue-on-error: false
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# target/
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# restore-keys: ${{ runner.os }}-cargo-

# - name: Run check
# command: cargo check --verbose -p libsql --target wasm32-unknown-unknown --no-default-features --features cloudflare
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
.vscode/
.idea/
*.sqld
168 changes: 151 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bindings/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ edition = "2021"
crate-type = ["cdylib"]

[dependencies]
js-sys = "0.3.64"
js-sys = "0.3"
libsql = { path = "../../libsql", default_features = false, features = ["core"] }
wasm-bindgen = "0.2"
Loading

0 comments on commit 0322a55

Please sign in to comment.