sdk: Re-export stores and store config

This commit is contained in:
Kévin Commaille
2022-03-09 14:40:11 +01:00
parent 0327b4f8fc
commit 0f60dfcfc5
4 changed files with 29 additions and 2 deletions

View File

@@ -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`.
///

View File

@@ -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;

View File

@@ -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")]

View 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::*;