link2xt
d71bf1c4be
Fix documentation on enabling REPL logs
...
As `repl` example was moved into `deltachat_repl` crate,
the name of the log target has changed.
2023-03-08 14:03:02 +00:00
Sebastian Klähn
ef1970b742
Also document private items for rust docs ( #4137 )
...
also document private items for rust docs
2023-03-08 14:13:07 +01:00
Asiel Díaz Benítez
4bb131e7e7
Merge pull request #4128 from deltachat/adb/add-golang-to-readme
...
add new golang bindings lib to README.md
2023-03-08 03:12:59 -05:00
Floris Bruynooghe
c9b8c5079b
wording
2023-03-07 15:45:18 +01:00
Floris Bruynooghe
eec5ae96e8
Update docs and fix string allocation
...
The docs say you should always unref the string and NULL is never
returned. The implementation should follow that.
2023-03-07 15:36:33 +01:00
Floris Bruynooghe
4b94eadf5e
typo
2023-03-07 14:40:51 +01:00
Floris Bruynooghe
52a1886937
naming conventions!
...
they're hard
2023-03-07 14:40:01 +01:00
Floris Bruynooghe
9767f51c3d
update .h file too
2023-03-07 14:13:42 +01:00
Floris Bruynooghe
6674b888cc
Merge branch 'master' into flub/send-backup
2023-03-07 12:52:45 +01:00
Floris Bruynooghe
a5e6bd3e8e
Do not require context for non-context methods
...
This follows the ffi style better.
2023-03-07 12:49:42 +01:00
Floris Bruynooghe
b6c24932a7
Apply typos from code review
...
Co-authored-by: Hocuri <hocuri@gmx.de >
2023-03-07 12:23:30 +01:00
link2xt
e39011a43b
Release 1.111.0
v1.111.0
2023-03-05 13:26:22 +00:00
adbenitez
8b8dcf61ef
add new golang bindings lib to README.md
2023-03-04 23:14:45 -05:00
link2xt
3df5e6e9d3
Use "dep:" syntax to avoid creating dependency features
...
It is supported since Rust 1.60
2023-03-04 10:24:16 +00:00
link2xt
fe60b2dd2d
Update scripts/anroid-rpc-server.sh
...
Ported changes from deltachat-android/scripts/ndk-make.sh
2023-03-04 09:35:56 +00:00
link2xt
260dbbd36f
Optimize release builds and dependencies for size
2023-03-03 18:43:53 +00:00
link2xt
7e5a8714a0
Add scripts/codespell.sh and spellcheck
2023-03-03 18:40:36 +00:00
iequidoo
627cf20074
Housekeeping: delete the blobs backup dir ( #4104 )
2023-03-03 11:06:41 -03:00
Floris Bruynooghe
d73d56c399
bump testdir for windows bug workaround
2023-03-03 13:13:58 +01:00
Floris Bruynooghe
731e90f0d5
update cargo-deny
2023-03-03 12:53:43 +01:00
Floris Bruynooghe
e0a6c2ef54
Merge branch 'master' into flub/send-backup
2023-03-03 12:46:05 +01:00
Floris Bruynooghe
c38ae31f31
Configure cargo-deny fully
...
This adds more configuration to cargo-deny so that the output is not a
giant list of warnings hiding new entries. Instead the config now
lists the things that would emit warnings. It also adds -Dwarnings to
the CI job so that new warnings will be cleaned up: they can be added
to the config easily to fix the warnings.
2023-03-03 12:37:54 +01:00
Floris Bruynooghe
c5408e0561
Merge branch 'master' into flub/send-backup
2023-03-03 09:48:33 +01:00
Floris Bruynooghe
c1a2df91ac
Fix typo in blob names
...
This is now tested properly too.
2023-03-02 21:53:13 +01:00
Floris Bruynooghe
da85c2412e
fix iterator
2023-03-02 21:48:14 +01:00
Floris Bruynooghe
f5c334a1e4
ci: Make sure clippy script check everything
...
Also disable missing_docs_in_private_items as this is like 300+ errors
currently.
2023-03-02 21:33:20 +01:00
Simon Laux
3453aac27e
jsonrpc: ts bindings: update .npmignore ( #4119 )
...
to remove files from the npm package that is not needed by end users.
#ignore-changelog
2023-03-02 13:57:17 +01:00
Floris Bruynooghe
d108f9b3e3
clippy
2023-03-02 11:47:03 +01:00
link2xt
9c48bf9d13
Upgrade rustyline to 11.0.0
2023-03-02 10:43:29 +00:00
Floris Bruynooghe
e3014a349c
Merge branch 'master' into flub/send-backup
2023-03-02 11:35:17 +01:00
dependabot[bot]
04fa80b3bd
Merge pull request #4120 from deltachat/dependabot/cargo/human-panic-1.1.1
2023-03-02 10:33:08 +00:00
dependabot[bot]
d7c8fc624a
Merge pull request #4121 from deltachat/dependabot/cargo/async-native-tls-0.5.0
2023-03-02 10:32:51 +00:00
Floris Bruynooghe
9d88ef069e
log some more
2023-03-02 11:21:05 +01:00
Floris Bruynooghe
155dff2813
renaming of upstream
2023-03-02 11:18:30 +01:00
Floris Bruynooghe
38d4ea8514
Use std::slice::Iter instead of manually tracking the offset
2023-03-02 11:15:02 +01:00
Floris Bruynooghe
6f24874eb8
Use a RAII guard to remove the db export
2023-03-02 10:58:39 +01:00
Floris Bruynooghe
2d20812652
some typos
2023-03-02 09:39:50 +01:00
dependabot[bot]
e866053070
cargo: bump async-native-tls from 0.4.0 to 0.5.0
...
Bumps [async-native-tls](https://github.com/async-email/async-native-tls ) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/async-email/async-native-tls/releases )
- [Commits](https://github.com/async-email/async-native-tls/compare/v0.4.0...v0.5.0 )
---
updated-dependencies:
- dependency-name: async-native-tls
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-02 02:32:53 +00:00
dependabot[bot]
81bacf9038
cargo: bump human-panic from 1.1.0 to 1.1.1
...
Bumps [human-panic](https://github.com/rust-cli/human-panic ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/rust-cli/human-panic/releases )
- [Changelog](https://github.com/rust-cli/human-panic/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-cli/human-panic/compare/v1.1.0...v1.1.1 )
---
updated-dependencies:
- dependency-name: human-panic
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-02 02:32:35 +00:00
link2xt
4e166b1b4a
Run cargo update
2023-03-01 22:42:03 +00:00
Floris Bruynooghe
5762fbb9a7
Allow JSON-RPC to get text of QR code as well
...
Desktop does use this as it allows reading QR codes as text from the
clipboard as well as copying the QR text to the clipboard instead of
showing the QR code.
2023-03-01 11:27:21 +01:00
link2xt
2dc04220b8
Simplify dc_jsonrpc_init
2023-02-28 22:46:24 +00:00
iequidoo
b149df1993
test_{delete,trash}_multiple_messages: Continue waiting for events if not all messages disappeared
2023-02-28 15:05:47 -03:00
iequidoo
e767d84bea
Switch to DEFERRED transactions
...
We do not make all transactions
[IMMEDIATE](https://www.sqlite.org/lang_transaction.html#deferred_immediate_and_exclusive_transactions )
for more parallelism -- at least read transactions can be made DEFERRED to run in parallel
w/o any drawbacks. But if we make write transactions DEFERRED also w/o any external locking,
then they are upgraded from read to write ones on the first write statement. This has some
drawbacks:
- If there are other write transactions, we block the thread and the db connection until
upgraded. Also if some reader comes then, it has to get next, less used connection with a
worse per-connection page cache.
- If a transaction is blocked for more than busy_timeout, it fails with SQLITE_BUSY.
- Configuring busy_timeout is not the best way to manage transaction timeouts, we would
prefer it to be integrated with Rust/tokio asyncs. Moreover, SQLite implements waiting
using sleeps.
- If upon a successful upgrade to a write transaction the db has been modified by another
one, the transaction has to be rolled back and retried. It is an extra work in terms of
CPU/battery.
- Maybe minor, but we lose some fairness in servicing write transactions, i.e. we service
them in the order of the first write statement, not in the order they come.
The only pro of making write transactions DEFERRED w/o the external locking is some
parallelism between them. Also we have an option to make write transactions IMMEDIATE, also
w/o the external locking. But then the most of cons above are still valid. Instead, if we
perform all write transactions under an async mutex, the only cons is losing some
parallelism for write transactions.
2023-02-28 15:05:47 -03:00
Simon Laux
fc019de18c
jsonrpc: add get webxdc blob API getWebxdcBlob ( #4070 )
...
* jsonrpc: add get webxdc blob API `getWebxdcBlob`
* add info about path
* format
2023-02-27 17:46:13 +00:00
link2xt
c79ded1406
Fixes for get_webxdc_blob documentation
2023-02-27 14:36:57 +00:00
link2xt
d1d43e889a
python: add more type annotations
2023-02-27 13:07:35 +00:00
link2xt
7bdf79dee5
python: do not shadow variables to fix pyright warnings
2023-02-27 13:07:35 +00:00
link2xt
a6b2c25d42
Move changelog to the unreleased section and add PR number
2023-02-27 08:26:34 +00:00
Asiel Díaz Benítez
210ec79872
Merge pull request #4097 from deltachat/adb/add-send-msg
...
add more advanced API to send a message
2023-02-27 00:32:18 -05:00