Kévin Commaille
4d41f94199
sled: Add helper to open stores for encryption
2022-03-10 17:14:01 +01:00
Kévin Commaille
692f95da79
sled: Add method to create CryptoStore from StateStore
...
Allow to use the same database for both stores
2022-03-10 17:14:00 +01:00
Jonas Platte
872c35efd2
Fix a typo
2022-03-10 16:52:01 +01:00
Jonas Platte
65e7688a3f
Don't require discovery to be mocked in tests
2022-03-10 16:05:51 +01:00
Jonas Platte
b1f2adf9c0
Ensure random request with Request: Send gets a Send future as well
2022-03-10 15:01:10 +01:00
Jonas Platte
81cea84a37
Fetch supported matrix versions from server in initialization
2022-03-10 15:00:40 +01:00
Jonas Platte
5f8d3dec82
Merge pull request #529 from matrix-org/jplatte/event-type
...
Use fine-grained *EventType types
2022-03-10 14:49:31 +01:00
poljar
e5359826e1
Merge pull request #528 from matrix-org/backup-fix
...
Fix the room key backup support in the crypto crate
2022-03-10 14:10:18 +01:00
Jonas Platte
1dec224210
Use fine-grained *EventType types
2022-03-10 13:54:00 +01:00
Damir Jelić
691ea2d138
ci(crypto): Test the crypto crate features when we run the CI
2022-03-10 13:52:31 +01:00
Damir Jelić
4af4faacef
feat(xtask): Add a task to check the crypto crate features
2022-03-10 13:52:31 +01:00
Damir Jelić
54a253c0bf
fix(crypto): Make our backup feature compile again
2022-03-10 13:50:29 +01:00
Jonas Platte
89ff804333
Remove extraneous newline
2022-03-10 13:49:40 +01:00
Jonas Platte
4d16370dba
Merge pull request #527 from matrix-org/jplatte/wasm-ci
2022-03-10 13:49:16 +01:00
Jonas Platte
30b3bd1c3d
Delete complicated and partially broken wasm tests
2022-03-10 13:18:59 +01:00
Jonas Platte
ff15ccaf28
Merge pull request #525 from matrix-org/jplatte/refactor
2022-03-10 12:56:05 +01:00
Jonas Platte
6af9285874
Don't use Raw::from_json where it's not needed
2022-03-10 11:59:31 +01:00
Jonas Platte
9154e93089
Allow other tests to continue when indexeddb test fails
2022-03-10 11:41:01 +01:00
Jonas Platte
ea2c9a2986
ci: Use clippy instead of check for wasm checks
2022-03-10 11:28:55 +01:00
Jonas Platte
c01475701d
Move some wasm CI logic into xtask
2022-03-10 11:02:16 +01:00
Jonas Platte
0721c7ddb2
Add missing ci subcommand description
2022-03-10 10:30:56 +01:00
Jonas Platte
36e4836c06
Merge pull request #522 from matrix-org/jplatte/send-req-refactor
2022-03-10 10:25:50 +01:00
Jonas Platte
b777617515
Replace matches! with ==
2022-03-10 10:12:53 +01:00
Jonas Platte
8a60154882
Use only #[warn], not #[deny] for lints
...
CI passes `-D warnings` to clippy, so there it will be an error either way.
For local development it is nice not to block compilation of dependent
crates on lints though.
2022-03-09 18:13:04 +01:00
Jonas Platte
d2e70c16b4
Deduplicate lint configuration
2022-03-09 18:09:02 +01:00
Jonas Platte
e6d20265bf
Allow rustfmt to format the encryption module again
2022-03-09 18:01:48 +01:00
Jonas Platte
5602deb226
Move encryption module docs into a separate markdown file
2022-03-09 18:00:57 +01:00
Jonas Platte
e4289405f5
Stop importing Result as StdResult
...
The SDK's Result aliases can optionally take the error parameter, so
there is no need to disambiguate this way.
2022-03-09 17:56:26 +01:00
Jonas Platte
76973fdc30
Improve consistency across sending requests with/out identity assertion
2022-03-09 16:48:28 +01:00
Jonas Platte
d5d6b80e08
Inline single-callsite request serialization functions
2022-03-09 15:13:06 +01:00
Jonas Platte
1ed2b8841d
Simplify HTTP request serialization logic
...
… the removed AuthenticationRequired branch was not necessary, Ruma's
`try_into_http_request` will take care of reporting the error.
2022-03-09 15:13:06 +01:00
Jonas Platte
a33898847b
Reduce duration of holding session lock
...
… by cloning the access token out.
2022-03-09 15:13:06 +01:00
Jonas Platte
bc1eb9a792
Merge pull request #521 from matrix-org/jplatte/appservice-refactor
2022-03-09 13:15:59 +01:00
Jonas Platte
3b3fede756
Merge pull request #520 from matrix-org/jplatte/clippy
2022-03-09 12:55:27 +01:00
Jonas Platte
9f72eb9490
Enable more default-off clippy lints
2022-03-09 12:41:57 +01:00
Jonas Platte
2c181bca4f
Consistently use .to_owned() instead of .to_string() for &str => String
2022-03-09 12:41:57 +01:00
Jonas Platte
b67c51c267
Remove unnecessary double reference
2022-03-09 12:41:57 +01:00
Jonas Platte
7fee5b59e8
crypto: Use Box<UserId> instead of String in SignatureError
...
… to make the field's meaning more obvious.
2022-03-09 12:41:56 +01:00
Jonas Platte
5d6f66be54
appservice: Make warp a regular dependency
...
It was optional but always required to be activated.
2022-03-09 10:35:39 +01:00
Jonas Platte
5075c2730c
Move appservice CI logic into xtask
2022-03-09 10:35:11 +01:00
Jonas Platte
1d5ba87b72
ci: Simplify test command by using -p instead of --manifest-path
2022-03-09 10:35:11 +01:00
Damir Jelić
4fa44f90bb
Merge branch 'appservice/fix-user-room-query'
2022-03-09 09:08:04 +01:00
Johannes Becker
a86da98cc2
fix(appservice): urldecode ids for user/room queries
2022-03-07 16:51:06 +01:00
Damir Jelić
6dff06579c
fix(sdk): Ensure that our login_with_sso() Client method is Send
2022-03-07 14:43:42 +01:00
Julian Sparber
38cbf24e8e
Add back homeserver logging for sso login
...
We can't use `.await` inside `info!()` because of
https://github.com/rust-lang/rust/issues/93274
2022-03-07 14:12:00 +01:00
Julian Sparber
642c4f5cfc
Ensure Client::login_with_sso() to be send
...
This removes the `info!()` log because of
https://github.com/rust-lang/rust/issues/93274
2022-03-07 13:11:52 +01:00
Damir Jelić
89e4d47ee1
chore: Bump the dashmap version across our crates
2022-03-07 09:58:00 +01:00
Jonas Platte
896d451c47
Merge pull request #515 from matrix-org/jplatte/ci
2022-03-04 12:10:47 +01:00
Jonas Platte
abe0bf0a29
Enable some useful non-default rustc lints
2022-03-04 11:35:24 +01:00
Jonas Platte
804c8e6c43
ci: Add test and test-features xtask commands
2022-03-04 10:59:17 +01:00