Skip to content

Commit

Permalink
bare minimum wasm sqlite backend (#905)
Browse files Browse the repository at this point in the history
Functions Ported

Co-authored-by: Ry Racherbaumer <[email protected]>
  • Loading branch information
insipx and rygine authored Aug 14, 2024
1 parent 44924a2 commit 68e71a8
Show file tree
Hide file tree
Showing 35 changed files with 9,748 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ members = [
"xmtp_user_preferences",
"xmtp_v2",
"xmtp_mls",
"xmtp_id",
"xmtp_id"
]

exclude = [
"bindings_ffi",
"bindings_wasm",
"xmtp_api_grpc_gateway",
"bindings_node",
"diesel-wasm-sqlite"
]

# Make the feature resolver explicit.
Expand Down
8 changes: 8 additions & 0 deletions diesel-wasm-sqlite/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
32 changes: 32 additions & 0 deletions diesel-wasm-sqlite/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"rust-analyzer": {
"cargo": {
"sysroot": "discover",
"allTargets": false,
"target": "wasm32-unknown-unknown"
},
"procMacro": {
"enable": true,
"attributes.enable": true,
"ignored": {
"async-trait": ["async_trait"],
"napi-derive": ["napi"],
"async-recursion": ["async_recursion"],
"ctor": ["ctor"],
"tokio": ["test"]
}
}
},
"[toml]": {
"editor.defaultFormatter": "tamasfe.even-better-toml"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
7 changes: 7 additions & 0 deletions diesel-wasm-sqlite/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
compressionLevel: mixed

enableGlobalCache: false

enableTelemetry: false

nodeLinker: node-modules
Loading

0 comments on commit 68e71a8

Please sign in to comment.