Commit Graph

165 Commits

Author SHA1 Message Date
Jonas Platte
932ef6270b Remove new_ prefix from OlmMachine ctors 2022-03-11 12:48:30 +01:00
Jonas Platte
1be68f57a5 Merge BaseClient impl blocks 2022-03-11 12:36:08 +01:00
Jonas Platte
cfdf4a032e Rename BaseClient::{new_with_store_config => with_store_config} 2022-03-11 12:36:08 +01:00
Jonas Platte
27ee7c32ca Remove new_with_* constructors for StoreConfig
The regular builder pattern works just fine for the stores.
2022-03-11 11:49:01 +01:00
Kévin Commaille
597999acba sdk-base: Add constructors with stores for StoreConfig 2022-03-10 17:29:19 +01:00
Kévin Commaille
81605b731d sdk-base: Fix wording on StoreConfig docs 2022-03-10 17:29:19 +01:00
Kévin Commaille
54c8b4f8bb sdk-base: Remove BaseClientConfig 2022-03-10 17:29:15 +01:00
Kévin Commaille
0ea12b3b4a base: Separate store config from the client config 2022-03-10 17:15:18 +01:00
Jonas Platte
1dec224210 Use fine-grained *EventType types 2022-03-10 13:54:00 +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
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
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
2c181bca4f Consistently use .to_owned() instead of .to_string() for &str => String 2022-03-09 12:41:57 +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
1f2fd380b2 Upgrade Ruma to 0.5.0 2022-03-03 08:59:44 +01:00
Jonas Platte
a1a0ae62ba base: Use Option::get_or_insert_with to get rid of an unwrap() call 2022-03-02 14:26:48 +01:00
Benjamin Kampmann
cf674b6a46 Update crates/matrix-sdk-base/src/store/memory_store.rs 2022-03-02 13:14:38 +01:00
Benjamin Kampmann
7e2e43c51c Addressing review
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-03-02 12:34:04 +01:00
Benjamin Kampmann
eacffb5126 creating better tests, ensure sled and memory store act consistently 2022-03-02 12:13:07 +01:00
Benjamin Kampmann
40fa17f5b7 fixing timeline test 2022-03-02 08:36:10 +01:00
Benjamin Kampmann
9eee50da66 fixing clippy warnings 2022-03-01 15:32:23 +01:00
Benjamin Kampmann
2b9bb422cf fix(MemoryStore): undeadlock timeline saving 2022-03-01 14:39:27 +01:00
Benjamin Kampmann
33be17d5d0 review requests 2022-03-01 11:52:38 +01:00
Benjamin Kampmann
fce78ea84e fixing style 2022-02-25 17:16:19 +01:00
Benjamin Kampmann
e414c88347 fixing integration test example 2022-02-25 17:14:45 +01:00
Benjamin Kampmann
13c39dbeab fixing crypto bench 2022-02-25 15:53:36 +01:00
Benjamin Kampmann
5e05411036 fixing typos 2022-02-25 15:40:35 +01:00
Benjamin Kampmann
e1f898e6a5 fixing clippy and docs for base and crypto 2022-02-25 13:05:48 +01:00
Benjamin Kampmann
8706ab68f8 fixing formatting 2022-02-24 16:57:39 +01:00
Benjamin Kampmann
418fac8574 fixing missing import for tests 2022-02-24 16:56:06 +01:00
Benjamin Kampmann
4c1e3ac03a fix missing import 2022-02-24 16:50:57 +01:00
Benjamin Kampmann
4d6d13b9c8 fixing some clippies and wrong package naming 2022-02-24 15:40:24 +01:00
Benjamin Kampmann
e20bdfa2b5 cleaning up more cryptocrate 2022-02-23 21:33:31 +01:00
Julian Sparber
0dd623970b Enable 'unstable-pre-spec' ruma feature 2022-02-23 15:52:19 +01:00
Benjamin Kampmann
eeea757719 clippy and formatting 2022-02-23 15:44:36 +01:00
Benjamin Kampmann
f6a3c765e9 Merge remote-tracking branch 'origin/main' into ben-splitting-out-store-impls 2022-02-23 15:33:38 +01:00
Benjamin Kampmann
78af96dab3 Clippy and Cargo fmt 2022-02-23 12:50:57 +01:00
Benjamin Kampmann
2598001c8f room version simplification 2022-02-23 12:40:37 +01:00
Benjamin Kampmann
c22b4fcfb2 minor refactor for simplicity 2022-02-23 12:37:10 +01:00
Julian Sparber
3378d18ca8 store: Add comment why we can ignore unexpected TimelineSlices 2022-02-22 16:49:42 +01:00
Julian Sparber
70e826ff25 Fix style issue 2022-02-22 15:48:56 +01:00
Julian Sparber
890a8675c9 store: Use BoxStream type without explicit lifetime 2022-02-22 15:43:26 +01:00
Julian Sparber
7627c142c4 Add method to optain timeline stream in one direction 2022-02-22 15:42:39 +01:00
Julian Sparber
d7592cce29 Merge remote-tracking branch 'origin/main' into timeline_stream 2022-02-22 11:47:17 +01:00
Julian Sparber
088086715f store: Save timeline to IndexedDbStore 2022-02-22 11:43:12 +01:00
Benjamin Kampmann
6aeb382706 move state inspector for sled store into corresponding crate 2022-02-21 12:08:45 +01:00
Benjamin Kampmann
87cd9a3afc clean up base 2022-02-18 20:41:42 +01:00
Benjamin Kampmann
0ca6ec1377 moving sled state store into separate crate 2022-02-17 19:02:17 +01:00