refactor: move types crate into blahd-types subpackage

This commit is contained in:
oxalica 2024-09-10 03:47:41 -04:00
parent 0a0a4aefa9
commit 0ac841e6fa
13 changed files with 43 additions and 47 deletions

View file

@ -13,7 +13,7 @@ reqwest = { version = "0.12", features = ["json"] }
rusqlite = "0.32"
tokio = { version = "1", features = ["rt", "macros"] }
blah = { path = "..", features = ["rusqlite"] }
blah-types = { path = "../blah-types", features = ["rusqlite"] }
[lints.clippy]
dbg_macro = "warn"

View file

@ -3,10 +3,9 @@ use std::path::{Path, PathBuf};
use std::{fs, io};
use anyhow::{Context, Result};
use blah::bitflags;
use blah::types::{
get_timestamp, ChatPayload, CreateRoomPayload, Id, MemberPermission, RichText, RoomAttrs,
RoomMember, RoomMemberList, ServerPermission, UserKey, WithSig,
use blah_types::{
bitflags, get_timestamp, ChatPayload, CreateRoomPayload, Id, MemberPermission, RichText,
RoomAttrs, RoomMember, RoomMemberList, ServerPermission, UserKey, WithSig,
};
use ed25519_dalek::pkcs8::spki::der::pem::LineEnding;
use ed25519_dalek::pkcs8::{DecodePrivateKey, DecodePublicKey, EncodePrivateKey, EncodePublicKey};