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