Konstantin Shabanov
5534eb93c6
Improve wasm32-wasi support
...
[Starting from 3.41.0 SQLite has wasm32-wasi support out of the
box.][0]
- Set `-DSQLITE_THREADSAFE=0`. Fixes:
```
$ wasmtime target/wasm32-wasi/release/examples/persons.wasm
Error: failed to run main module `target/wasm32-wasi/release/examples/persons.wasm`
Caused by:
0: failed to instantiate "target/wasm32-wasi/release/examples/persons.wasm"
1: unknown import: `env::pthread_mutexattr_init` has not been defined
```
- Drop `-DSQLITE_OS_OTHER`. Fixes:
```
$ wasmtime target/wasm32-wasi/release/examples/persons.wasm
Error: failed to run main module `target/wasm32-wasi/release/examples/persons.wasm`
Caused by:
0: failed to instantiate "target/wasm32-wasi/release/examples/persons.wasm"
1: unknown import: `env::sqlite3_os_init` has not been defined
```
- [Add wasi specific build flags][1]
- Add basic example
- Also, add instructions how to run it against wasm32-wasi.
Using of file databases is also working, though `--mapdir` arg
should be provided to `wasmtime run`.
[0]: https://wasmlabs.dev/articles/sqlite-wasi-support/
[1]: https://github.com/vmware-labs/webassembly-language-runtimes/blob/main/libs/sqlite/wasi-patches/wlr-build.sh#L11
2023-05-25 22:26:56 +06:00
gwenn
24288d9073
Merge pull request #1330 from Benjins-automation/benjins-automated-https-upgrade
...
Upgrade http links to https in Cargo.toml
2023-05-22 10:52:50 +02:00
Benji Smith
f353c23122
Upgrade plain-HTTP links to HTTPS in Cargo.toml files
2023-05-20 18:28:29 -04:00
gwenn
65e4be3a19
Merge pull request #1324 from nopjia/master
...
Add SQLITE_MAX_COLUMN compile-time option
2023-05-10 10:27:24 +02:00
Nop Jiarathanakul
4c6d915d0f
add SQLITE_MAX_COLUMN compile option
2023-05-09 13:19:25 -07:00
gwenn
1a82396f2e
Merge pull request #1321 from wasm-forge/master
...
fix compilation for target wasm32-wasi
2023-05-07 11:48:34 +02:00
Stanislav Golubtsov
ef4a0ac09d
fix compilation for target wasm32-wasi
2023-05-02 18:32:56 +02:00
gwenn
051dcf673d
Merge pull request #1318 from gwenn/clippy_
...
Fix clippy warnings
2023-04-22 17:09:43 +02:00
gwenn
697a333887
Rustfmt
2023-04-22 16:58:36 +02:00
gwenn
0f8d1aadc7
Fix clippy warnings
2023-04-22 16:53:13 +02:00
gwenn
13dc9df7b0
Merge pull request #1317 from icp1994/force-link-sys-sqlite
...
Force linking against system sqlite libs
2023-04-22 16:36:21 +02:00
gwenn
d5eafd6613
Merge pull request #1314 from kornelski/track_caller
...
Use track_caller for panicking methods
2023-04-17 19:46:20 +02:00
icp
b4604f2421
Force linking against system sqlite libs
...
This commit introduces new env var, LIBSQLITE3_SYS_USE_PKG_CONFIG,
which can be set to non-zero values to force building against sqlite
libraries from the system overriding bundled features.
2023-04-17 01:23:40 +05:30
Kornel
b6bf62db14
Use track_caller for panicking methods
2023-04-15 21:35:03 +01:00
gwenn
ef4ae94799
Merge pull request #1316 from gwenn/bindgen
...
Bump bindgen version
2023-04-14 21:24:35 +02:00
gwenn
1180a4f943
Fix clippy warning
2023-04-14 20:55:16 +02:00
gwenn
323331eae6
Bump bindgen version
2023-04-14 20:45:37 +02:00
gwenn
8ac4780526
Merge pull request #1310 from gwenn/sqlite3_auto_extension
...
Fix sqlite3_auto_extension xEntryPoint signature
2023-03-27 19:38:56 +02:00
gwenn
a1ef4b5b6d
Merge pull request #1311 from gwenn/0.29.0
...
Prepare next release
2023-03-26 10:44:08 +02:00
gwenn
8419b021bd
Prepare next release
2023-03-26 10:24:57 +02:00
gwenn
7dac07be13
Rustfmt
2023-03-25 16:15:05 +01:00
gwenn
a5c460a8f7
Fix sqlite3_cancel_auto_extension
2023-03-25 15:38:24 +01:00
gwenn
bef2472bfb
Fix sqlite3_auto_extension xEntryPoint signature
2023-03-25 11:47:27 +01:00
gwenn
c5f0b27693
Fix sqlite3_auto_extension xEntryPoint signature
2023-03-25 11:33:33 +01:00
gwenn
57a7b29b68
Merge pull request #1309 from gwenn/item_name
...
Use ParseCallbacks::item_name to fix sqlite3_index_info_* types
2023-03-25 10:46:38 +01:00
gwenn
420bf08489
Fix clippy warnings
2023-03-25 10:34:47 +01:00
gwenn
eb7fbc57d0
Use ParseCallbacks::item_name to fix sqlite3_index_info_* types
2023-03-25 10:19:56 +01:00
gwenn
fd753b14fc
Merge pull request #1306 from gwenn/3.41.2
...
Bump bundled SQLite3 to version 3.41.2
2023-03-23 21:55:15 +01:00
gwenn
72fe73219a
Merge pull request #1304 from jgraettinger/johnny/stmt-read-only
...
Add Statement.readonly() accessor
2023-03-23 21:54:49 +01:00
gwenn
8ad6149307
Bump bundled SQLite3 to version 3.41.2
2023-03-23 19:03:05 +00:00
Johnny Graettinger
7c1d5a1863
Add Statement.readonly() accessor
...
Remove cfg(extra_check) from RawStatement::readonly()
2023-03-23 18:55:19 +00:00
gwenn
32752fac77
Merge pull request #1301 from rusqlite/dependabot/cargo/bitflags-2.0
...
Update bitflags requirement from 1.2 to 2.0
2023-03-14 19:59:29 +01:00
gwenn
5a6f58acda
Fix code related to bitflags
2023-03-14 19:43:50 +01:00
gwenn
6f557a7c9d
Merge pull request #1302 from gwenn/perms
...
Add minimum permissions to rust.yml workflow
2023-03-13 19:46:36 +01:00
gwenn
10005986e9
Add minimum permissions to rust.yml workflow
2023-03-13 19:29:57 +01:00
gwenn
2bc25ff5de
Merge pull request #1300 from gwenn/3.41.1
...
Upgrade bundled SQLite version to 3.41.1
2023-03-13 19:05:13 +01:00
dependabot[bot]
da4cc409f9
Update bitflags requirement from 1.2 to 2.0
...
Updates the requirements on [bitflags](https://github.com/bitflags/bitflags ) to permit the latest version.
- [Release notes](https://github.com/bitflags/bitflags/releases )
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bitflags/bitflags/compare/1.2.0...2.0.0 )
---
updated-dependencies:
- dependency-name: bitflags
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-13 17:56:33 +00:00
gwenn
03663e00e2
Merge pull request #1299 from rusqlite/dependabot
...
Create dependabot.yml
2023-03-13 18:55:25 +01:00
gwenn
8a263963f4
Upgrade bundled SQLite version to 3.41.1
2023-03-13 17:53:49 +00:00
gwenn
6119b7c94c
Create dependabot.yml
2023-03-13 18:39:06 +01:00
gwenn
7278e5fa91
Merge pull request #1250 from gwenn/deprecated
...
Remove deprecated API
2023-03-12 15:42:58 +01:00
gwenn
08dd4b3d18
Merge pull request #1291 from gwenn/ci-script
...
Update github actions script
2023-03-12 15:39:03 +01:00
gwenn
984263142e
Merge pull request #1298 from gwenn/rm_lazy_static
...
Remove lazy_static optional dependency
2023-03-11 11:35:47 +01:00
gwenn
35e8a498c4
Remove lazy_static optional dependency
...
Was used by virtual table
2023-03-11 11:21:47 +01:00
gwenn
223926ef6f
Merge pull request #1294 from gwenn/3.41.0
...
Upgrade bundled SQLite3 sources to version 3.41.0
2023-02-24 20:36:45 +01:00
gwenn
70e37f8540
Upgrade bundled SQLite3 sources to version 3.41.0
2023-02-24 18:40:34 +00:00
gwenn
929be82c9f
Merge pull request #1293 from mhammond/no-panic-on-drop
...
No longer panic if we fail to close the connection when dropping it.
2023-02-24 08:51:25 +01:00
Mark Hammond
9c2cc12b08
No longer panic if we fail to close the connection when dropping it.
2023-02-24 15:13:25 +11:00
gwenn
27fe88e296
Update github actions script
2023-02-20 19:42:46 +01:00
gwenn
9880cdef12
Merge pull request #1271 from ssrlive/patch-1
...
Linkage issue in windows
2023-02-14 20:59:47 +01:00