Commit Graph

2666 Commits

Author SHA1 Message Date
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 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
Jonas Platte b7a4ca4cff Create an xtask crate for workspace task automation
Initially covering:

* Building docs
* Nightly CI jobs
2022-03-03 11:10:28 +01:00
Jonas Platte b276087969 ci: Fail if rustdoc raises warnings 2022-03-03 11:10:13 +01:00
Jonas Platte 6e091dd5b8 ci: Use Swatinem/rust-cache@v1 instead of actions/cache@v2
Simplifies the cache configuration and could also improve build times by
disabling incremental compilation and potentially caching fewer things
or using a better cache key.
2022-03-03 11:04:07 +01:00
Jonas Platte ea5478c61c Merge pull request #510 from matrix-org/jplatte/up-ruma 2022-03-03 09:29:26 +01:00
Jonas Platte 1f2fd380b2 Upgrade Ruma to 0.5.0 2022-03-03 08:59:44 +01:00
Jonas Platte 012954e7f4 ci: Remove --all flag from cargo fmt arguments
It is only relevant for non-workspace path dependencies.
2022-03-02 14:34:22 +01:00
Jonas Platte bc0c8d529e Simplify Cargo workspace configuration 2022-03-02 14:34:22 +01:00