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
Jonas Platte
b64d855b25
ci: Fix inconsistent formatting
2022-03-04 10:59:17 +01:00
Jonas Platte
beb4ecb581
ci: Remove mentions of non-existant matrix variables
2022-03-04 10:59:17 +01:00
Jonas Platte
ed7667dc8d
ci: Remove unnecessary ${{ }}
2022-03-04 10:59:17 +01:00
Jonas Platte
e136199bfd
ci: Don't run check / build before test
...
It is redundant.
2022-03-04 10:59:17 +01:00
Damir Jelić
95665c8bc0
Merge branch 'poljar/matrix-crypto-ffi'
2022-03-04 10:27:12 +01:00
Damir Jelić
6bb8fd7853
feat: Import the Uniffi based matrix-sdk-crypto bindings
2022-03-04 09:45:50 +01:00
Benjamin Kampmann
b3038545f5
feat(stores): Splitting Sled and Indexeddb Store into separate crates
...
More details in pull request #498 .
2022-03-03 16:32:31 +01:00
Benjamin Kampmann
44fe3a62a1
remove unneeded helper function
2022-03-03 15:38:22 +01:00
Benjamin Kampmann
ba1b3e0c7c
fix the indexeddb tests, that clippy tried to fix
2022-03-03 15:27:21 +01:00
Benjamin Kampmann
6435ea655b
fix testing function wrongly exposed
2022-03-03 13:47:25 +01:00
Benjamin Kampmann
193a5ed3c9
fixing if syntax
2022-03-03 13:07:09 +01:00
Benjamin Kampmann
4e6b80d7df
fix docs
2022-03-03 13:05:32 +01:00
Benjamin Kampmann
e7fb512ae6
adding another encryption wasm tests
2022-03-03 12:59:23 +01:00
Benjamin Kampmann
ab57fb329f
Addressing review remark
2022-03-03 12:57:15 +01:00
Benjamin Kampmann
fd6f4385d4
Merge remote-tracking branch 'origin/main' into ben-splitting-out-store-impls
2022-03-03 12:57:00 +01:00
Jonas Platte
e03ee913f8
Merge pull request #513 from matrix-org/jplatte/xtask
2022-03-03 12:10:02 +01:00
Benjamin Kampmann
8aed72a085
Update crates/matrix-sdk-crypto/src/olm/account.rs
...
Co-authored-by: poljar <poljar@termina.org.uk >
2022-03-03 11:35:02 +01:00
Jonas Platte
2182ebdd16
ci: Fix toolchain installation job name inconsistencies
2022-03-03 11:10:30 +01:00
Jonas Platte
e575c27601
ci: Use uppercase for docs workflow / job name
2022-03-03 11:10:29 +01:00
Jonas Platte
439081e1db
ci: Move wasm and appservice into separate workflows
...
… to reduce the size of `ci.yml` and to allow more fine-grained retries.
2022-03-03 11:10:29 +01:00
Jonas Platte
1968ae60aa
ci: Fix inconsistencies in workflow yml formatting
2022-03-03 11:10:29 +01:00