link2xt
2ccf39800d
Remove start_rpc_server() and make Rpc a context manager
...
Rpc now has a start() method.
This way it is possible to use Rpc from IPython without calling __aenter__()
2022-12-04 00:02:32 +00:00
link2xt
5a3065344e
Properly terminate Rpc and remove sleep() hack
2022-12-03 23:30:50 +00:00
link2xt
98b6b5e3f6
Update instructions on using ipython
2022-12-03 18:37:02 +00:00
dependabot[bot]
4d81fa6df5
Merge pull request #3795 from deltachat/dependabot/cargo/num_cpus-1.14.0
2022-12-03 17:47:28 +00:00
dependabot[bot]
8e8582e953
Merge pull request #3791 from deltachat/dependabot/cargo/serde-1.0.148
2022-12-03 17:02:47 +00:00
link2xt
7f4c05e88f
ci: do not use deprecated set-output
...
See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-12-03 13:54:11 +00:00
link2xt
20e63659a1
CI: update GitHub Actions to avoid deprecation warnings
2022-12-03 13:51:57 +00:00
dependabot[bot]
c5af69db2b
cargo: bump serde from 1.0.147 to 1.0.148
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.147 to 1.0.148.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-03 13:25:10 +00:00
dependabot[bot]
030241d1c3
Merge pull request #3804 from deltachat/dependabot/cargo/tagger-4.3.4
2022-12-03 13:23:20 +00:00
dependabot[bot]
4f01c43a93
Merge pull request #3796 from deltachat/dependabot/cargo/serde_json-1.0.89
2022-12-03 13:19:51 +00:00
dependabot[bot]
ab94471e91
Merge pull request #3794 from deltachat/dependabot/cargo/uuid-1.2.2
2022-12-03 00:36:55 +00:00
dependabot[bot]
140aa68811
cargo: bump serde_json from 1.0.87 to 1.0.89
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.87 to 1.0.89.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.87...v1.0.89 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-03 00:13:28 +00:00
dependabot[bot]
d9ef38e370
Merge pull request #3803 from deltachat/dependabot/cargo/tokio-1.22.0
2022-12-03 00:11:39 +00:00
dependabot[bot]
acf66116cd
Merge pull request #3805 from deltachat/dependabot/cargo/syn-1.0.105
2022-12-03 00:10:17 +00:00
dependabot[bot]
8e69125128
Merge pull request #3806 from deltachat/dependabot/cargo/sha-1-0.10.1
2022-12-02 23:06:29 +00:00
dependabot[bot]
7402ca3568
cargo: bump tokio from 1.21.2 to 1.22.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.21.2 to 1.22.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.21.2...tokio-1.22.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-02 18:28:24 +00:00
dependabot[bot]
d7b240f25c
cargo: bump syn from 1.0.103 to 1.0.105
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.103 to 1.0.105.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.103...1.0.105 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-02 17:31:27 +00:00
dependabot[bot]
e5e4d3bed4
cargo: bump tagger from 4.3.3 to 4.3.4
...
Bumps [tagger](https://github.com/tiby312/tagger ) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/tiby312/tagger/releases )
- [Commits](https://github.com/tiby312/tagger/commits )
---
updated-dependencies:
- dependency-name: tagger
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-02 17:31:25 +00:00
dependabot[bot]
1a59302749
Merge pull request #3793 from deltachat/dependabot/cargo/async-channel-1.8.0
2022-12-02 17:29:30 +00:00
dependabot[bot]
f0a5bbedb4
cargo: bump async-channel from 1.7.1 to 1.8.0
...
Bumps [async-channel](https://github.com/smol-rs/async-channel ) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/smol-rs/async-channel/releases )
- [Changelog](https://github.com/smol-rs/async-channel/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/async-channel/compare/v1.7.1...v1.8.0 )
---
updated-dependencies:
- dependency-name: async-channel
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-02 15:15:40 +00:00
dependabot[bot]
139665b3d6
Merge pull request #3792 from deltachat/dependabot/cargo/typescript-type-def-0.5.5
2022-12-02 15:13:42 +00:00
dependabot[bot]
ca23d59148
Merge pull request #3802 from deltachat/dependabot/cargo/regex-1.7.0
2022-12-02 15:13:09 +00:00
dependabot[bot]
1635f00a62
Merge pull request #3800 from deltachat/dependabot/cargo/reqwest-0.11.13
2022-12-02 15:11:17 +00:00
adbenitez
29a4404257
enably type-checking in tests
2022-12-01 20:33:05 -05:00
adbenitez
24db29f526
Merge remote-tracking branch 'upstream/link2xt/async-jsonrpc-client' into adb/async-jsonrpc-client
2022-12-01 20:32:36 -05:00
dependabot[bot]
e27b64274f
cargo: bump sha-1 from 0.10.0 to 0.10.1
...
Bumps [sha-1](https://github.com/RustCrypto/hashes ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha-1-v0.10.0...md2-v0.10.1 )
---
updated-dependencies:
- dependency-name: sha-1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-01 21:04:08 +00:00
dependabot[bot]
46721bcf46
cargo: bump regex from 1.6.0 to 1.7.0
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.6.0...1.7.0 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-01 21:03:25 +00:00
dependabot[bot]
80cefdd1d5
cargo: bump reqwest from 0.11.12 to 0.11.13
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.12 to 0.11.13.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.12...v0.11.13 )
---
updated-dependencies:
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-01 21:03:06 +00:00
dependabot[bot]
9972f4da48
cargo: bump num_cpus from 1.13.1 to 1.14.0
...
Bumps [num_cpus](https://github.com/seanmonstar/num_cpus ) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/seanmonstar/num_cpus/releases )
- [Changelog](https://github.com/seanmonstar/num_cpus/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/num_cpus/compare/v1.13.1...v1.14.0 )
---
updated-dependencies:
- dependency-name: num_cpus
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-01 21:02:25 +00:00
dependabot[bot]
1ab5401501
cargo: bump uuid from 1.2.1 to 1.2.2
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.2.1...1.2.2 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-01 21:02:20 +00:00
dependabot[bot]
0b60cc8341
cargo: bump typescript-type-def from 0.5.4 to 0.5.5
...
Bumps [typescript-type-def](https://github.com/dbeckwith/rust-typescript-type-def ) from 0.5.4 to 0.5.5.
- [Release notes](https://github.com/dbeckwith/rust-typescript-type-def/releases )
- [Changelog](https://github.com/dbeckwith/rust-typescript-type-def/blob/master/CHANGELOG.md )
- [Commits](https://github.com/dbeckwith/rust-typescript-type-def/compare/v0.5.4...v0.5.5 )
---
updated-dependencies:
- dependency-name: typescript-type-def
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-01 21:01:55 +00:00
link2xt
85b4746516
Turn start_rpc_server into a context manager
2022-12-01 16:36:36 +00:00
adbenitez
d17ac9c83c
add start_rpc_server() doc string
2022-12-01 03:34:43 -05:00
adbenitez
e6ff513aac
add support for PEP 561
2022-12-01 03:15:25 -05:00
adbenitez
ffbfeab977
add pytest plugin
2022-12-01 03:09:23 -05:00
adbenitez
09db062958
fix bug in Rpc.__getattr__()
2022-12-01 02:36:55 -05:00
adbenitez
ab7732d9ae
fix type hint in rpc.py
2022-12-01 02:26:50 -05:00
adbenitez
46594ec707
improve typing hints
2022-12-01 00:37:45 -05:00
adbenitez
18426561e3
fix bug in chat.get_encryption_info()
2022-12-01 00:14:07 -05:00
adbenitez
aeb7e3a9e1
fix some linter warnings
2022-11-30 23:56:50 -05:00
adbenitez
a77c46be20
fix bug in account.py: arguments declared as optional but not default value was given
2022-11-30 23:42:08 -05:00
adbenitez
a4be2cddf2
remove unused code in rpc.py
2022-11-30 23:11:50 -05:00
adbenitez
240b335181
fix bugs in account.secure_join() and chat.get_fresh_message_count()
2022-11-30 22:36:49 -05:00
link2xt
53d6807e8d
Simplify process_messages() in echo bot
2022-11-30 22:45:03 +00:00
link2xt
db38cc8891
Add get_fresh_messages_in_arrival_order() call
2022-11-30 22:43:05 +00:00
link2xt
4e2aeceeec
Do not reverse the list of fresh messages
...
Both reversed and original order do not make much sense
for the bot. Ideally bots should have their own key
to get the list of fresh messages in the order of IDs.
2022-11-30 22:38:25 +00:00
link2xt
9b04a04568
Add async python client for Delta Chat core JSON-RPC
2022-11-30 20:21:59 +00:00
link2xt
f2c97bda66
jsonrpc: add message errors to MessageObject
2022-11-30 20:35:36 +01:00
Hocuri
6c4d919828
Add members to chats in a single sql transation ( #3780 )
...
This esp. speeds up receive_imf a bit when we recreate the member list (recreate_member_list == true).
It's a preparation for https://github.com/deltachat/deltachat-core-rust/issues/3768 , which will be a one-line-fix, but recreate the member list more often, so that we want to optimize this case a bit.
It also adds a benchmark for this case. It's not that easy to make the benchmark non-flaky, but by closing all other programs and locking the CPU to 1.5GHz it worked. It is consistently a few percent faster than ./without-optim:
```
Receive messages/Receive 100 Chat-Group-Member-{Added|Removed} messages
time: [52.257 ms 52.569 ms 52.941 ms]
change: [-3.5301% -2.6181% -1.6697%] (p = 0.00 < 0.05)
Performance has improved.
Found 7 outliers among 100 measurements (7.00%)
4 (4.00%) high mild
3 (3.00%) high severe
```
2022-11-29 19:37:56 +00:00
iequidoo
f6a502a8e3
Remove the remaining AsRef<str> ( #3669 )
...
Using &str instead of AsRef is better for compile times, binary size and code complexity.
2022-11-28 17:02:05 -03:00