mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-05-12 04:59:27 +00:00
Standardize workspace imports
This commit is contained in:
parent
05e4697514
commit
b64abc1618
@ -32,8 +32,6 @@ chat-sqlite = { path = "core/sqlite" }
|
||||
components = { path = "extensions/components" }
|
||||
crypto = { path = "core/crypto" }
|
||||
libchat = { path = "core/conversations" }
|
||||
logoschat_components = { package = "components", path = "extensions/components" } # TODO: Remove alias
|
||||
sqlite = { package = "chat-sqlite", path = "core/sqlite" } # TODO: remove alias
|
||||
storage = { path = "core/storage" }
|
||||
|
||||
# External Workspace dependency declarations (sorted)
|
||||
|
||||
@ -9,8 +9,8 @@ crate-type = ["rlib","staticlib"]
|
||||
[dependencies]
|
||||
# Workspace dependencies (sorted)
|
||||
blake2 = { workspace = true }
|
||||
chat-sqlite = { workspace = true }
|
||||
crypto = { workspace = true }
|
||||
sqlite = { workspace = true }
|
||||
storage = { workspace = true }
|
||||
|
||||
# External dependencies (sorted)
|
||||
|
||||
@ -281,8 +281,8 @@ impl<S: ConversationStore + RatchetStore> Debug for PrivateV1Convo<S> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use chat_sqlite::{ChatStorage, StorageConfig};
|
||||
use crypto::PrivateKey;
|
||||
use sqlite::{ChatStorage, StorageConfig};
|
||||
|
||||
use super::*;
|
||||
|
||||
|
||||
@ -260,7 +260,7 @@ mod tests {
|
||||
use std::cell::RefCell;
|
||||
|
||||
use super::*;
|
||||
use sqlite::{ChatStorage, StorageConfig};
|
||||
use chat_sqlite::{ChatStorage, StorageConfig};
|
||||
|
||||
#[test]
|
||||
fn test_invite_privatev1_roundtrip() {
|
||||
|
||||
@ -11,11 +11,11 @@ mod types;
|
||||
mod utils;
|
||||
|
||||
pub use account::LogosAccount;
|
||||
pub use chat_sqlite::ChatStorage;
|
||||
pub use chat_sqlite::StorageConfig;
|
||||
pub use context::{Context, ConversationId, ConversationIdOwned, Introduction};
|
||||
pub use conversation::GroupConvo;
|
||||
pub use errors::ChatError;
|
||||
pub use service_traits::{DeliveryService, RegistrationService};
|
||||
pub use sqlite::ChatStorage;
|
||||
pub use sqlite::StorageConfig;
|
||||
pub use types::{AccountId, AddressedEnvelope, ContentData};
|
||||
pub use utils::hex_trunc;
|
||||
|
||||
@ -23,7 +23,7 @@ zeroize = "1.8.2"
|
||||
|
||||
[dev-dependencies]
|
||||
# Workspace dependencies (sorted)
|
||||
sqlite = { workspace = true }
|
||||
chat-sqlite = { workspace = true }
|
||||
|
||||
# External dependencies (sorted)
|
||||
tempfile = "3"
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
//!
|
||||
//! Run with: cargo run --example out_of_order_demo -p double-ratchets
|
||||
|
||||
use chat_sqlite::{ChatStorage, StorageConfig};
|
||||
use double_ratchets::{InstallationKeyPair, RatchetSession};
|
||||
use sqlite::{ChatStorage, StorageConfig};
|
||||
use tempfile::NamedTempFile;
|
||||
|
||||
fn main() {
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
//!
|
||||
//! Run with: cargo run --example storage_demo -p double-ratchets
|
||||
|
||||
use chat_sqlite::{ChatStorage, StorageConfig};
|
||||
use double_ratchets::{InstallationKeyPair, RatchetSession};
|
||||
use sqlite::{ChatStorage, StorageConfig};
|
||||
use tempfile::NamedTempFile;
|
||||
|
||||
fn main() {
|
||||
|
||||
@ -168,7 +168,7 @@ fn save_state<S: RatchetStore, D: HkdfInfo>(
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::hkdf::DefaultDomain;
|
||||
use sqlite::ChatStorage;
|
||||
use chat_sqlite::ChatStorage;
|
||||
|
||||
fn create_test_storage() -> ChatStorage {
|
||||
ChatStorage::in_memory()
|
||||
|
||||
@ -10,7 +10,7 @@ edition = "2024"
|
||||
# Workspace dependencies (sorted)
|
||||
components = { workspace = true }
|
||||
libchat = { workspace = true }
|
||||
sqlite = { workspace = true }
|
||||
chat-sqlite = { workspace = true }
|
||||
storage = { workspace = true }
|
||||
|
||||
# External dependencies (sorted)
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use chat_sqlite::{ChatStorage, StorageConfig};
|
||||
use libchat::{Context, Introduction};
|
||||
use sqlite::{ChatStorage, StorageConfig};
|
||||
use storage::{ConversationStore, IdentityStore};
|
||||
use tempfile::tempdir;
|
||||
|
||||
|
||||
@ -9,8 +9,8 @@ crate-type = ["rlib"]
|
||||
[dependencies]
|
||||
# Workspace dependencies (sorted)
|
||||
chat-sqlite = { workspace = true }
|
||||
components = { workspace = true}
|
||||
libchat = { workspace = true }
|
||||
logoschat_components = { workspace = true}
|
||||
|
||||
# External dependencies (sorted)
|
||||
thiserror = "2"
|
||||
|
||||
@ -3,7 +3,7 @@ use libchat::{
|
||||
DeliveryService, Introduction, StorageConfig,
|
||||
};
|
||||
|
||||
use logoschat_components::EphemeralRegistry;
|
||||
use components::EphemeralRegistry;
|
||||
|
||||
use crate::errors::ClientError;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user