mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 13:40:55 -04:00
This includes a few not-strictly-related changes that made sense to do at the same time: * Check for a functioning homeserver via get_supported_versions regardless of whether a homeserver URL or user ID was supplied * Rename use_discovery_response to respect_login_well_known * Small appservice documentation improvement because those docs had to be touched anyways * Some test refactorings in tests that had to be touched anyways
36 lines
1.6 KiB
Rust
36 lines
1.6 KiB
Rust
// Copyright 2022 Kévin Commaille
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
//! Functions and types to initialize a store.
|
|
//!
|
|
//! The re-exports present here depend on the store-related features that are
|
|
//! enabled:
|
|
//!
|
|
//! 1. `sled_state_store` provides a `StateStore`, while
|
|
//! `sled_cryptostore` provides also a `CryptoStore` for encryption data. This
|
|
//! is the default persistent store implementation for non-WebAssembly.
|
|
//! 2. `indexeddb_store` provides both a `StateStore` and a `CryptoStore` if
|
|
//! `encryption` is also enabled. This is the default persistent store
|
|
//! implementation for WebAssembly.
|
|
//!
|
|
//! Both options provide a `make_store_config` convenience method to create a
|
|
//! [`StoreConfig`] for [`ClientBuilder::store_config()`].
|
|
//!
|
|
//! [`StoreConfig`]: crate::config::StoreConfig
|
|
//! [`ClientBuilder::store_config()`]: crate::ClientBuilder::store_config
|
|
|
|
#[cfg(any(feature = "indexeddb_state_store", feature = "indexeddb_cryptostore"))]
|
|
pub use matrix_sdk_indexeddb::*;
|
|
#[cfg(any(feature = "sled_state_store", feature = "sled_cryptostore"))]
|
|
pub use matrix_sdk_sled::*;
|