mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 13:40:55 -04:00
sdk: Re-export stores and store config
This commit is contained in:
@@ -20,9 +20,12 @@ use std::{
|
||||
};
|
||||
|
||||
use http::header::InvalidHeaderValue;
|
||||
use matrix_sdk_base::{store::StoreConfig, BaseClientConfig, StateStore};
|
||||
use matrix_sdk_base::{BaseClientConfig, StateStore};
|
||||
|
||||
use crate::{config::RequestConfig, HttpSend, Result};
|
||||
use crate::{
|
||||
config::{RequestConfig, StoreConfig},
|
||||
HttpSend, Result,
|
||||
};
|
||||
|
||||
/// Configuration for the creation of the `Client`.
|
||||
///
|
||||
|
||||
@@ -21,5 +21,6 @@ mod request;
|
||||
mod sync;
|
||||
|
||||
pub use client::ClientConfig;
|
||||
pub use matrix_sdk_base::store::StoreConfig;
|
||||
pub use request::RequestConfig;
|
||||
pub use sync::SyncSettings;
|
||||
|
||||
@@ -50,6 +50,7 @@ mod http_client;
|
||||
/// High-level room API
|
||||
pub mod room;
|
||||
mod room_member;
|
||||
pub mod store;
|
||||
mod sync;
|
||||
|
||||
#[cfg(feature = "encryption")]
|
||||
|
||||
22
crates/matrix-sdk/src/store.rs
Normal file
22
crates/matrix-sdk/src/store.rs
Normal file
@@ -0,0 +1,22 @@
|
||||
// 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.
|
||||
|
||||
#[cfg(feature = "indexeddb_stores")]
|
||||
pub use matrix_sdk_indexeddb::*;
|
||||
#[cfg(any(feature = "sled_state_store", feature = "sled_cryptostore"))]
|
||||
pub use matrix_sdk_sled::*;
|
||||
Reference in New Issue
Block a user