mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-07-09 15:45:33 +00:00
refactor: move types crate into blahd-types
subpackage
This commit is contained in:
parent
0a0a4aefa9
commit
0ac841e6fa
13 changed files with 43 additions and 47 deletions
|
@ -8,7 +8,7 @@ use std::task::{Context, Poll};
|
|||
|
||||
use anyhow::{bail, Context as _, Result};
|
||||
use axum::extract::ws::{Message, WebSocket};
|
||||
use blah::types::{AuthPayload, ChatItem, WithSig};
|
||||
use blah_types::{AuthPayload, ChatItem, WithSig};
|
||||
use futures_util::future::Either;
|
||||
use futures_util::stream::SplitSink;
|
||||
use futures_util::{stream_select, SinkExt as _, Stream, StreamExt};
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/// FIXME: Currently we assume no more than one request in a single millisecond.
|
||||
use std::time::SystemTime;
|
||||
|
||||
use blah::types::Id;
|
||||
use blah_types::Id;
|
||||
|
||||
pub trait IdExt {
|
||||
fn gen() -> Self;
|
||||
|
|
|
@ -10,7 +10,7 @@ use axum::response::{IntoResponse, Response};
|
|||
use axum::routing::{get, post};
|
||||
use axum::{Json, Router};
|
||||
use axum_extra::extract::WithRejection as R;
|
||||
use blah::types::{
|
||||
use blah_types::{
|
||||
ChatItem, ChatPayload, CreateRoomPayload, Id, MemberPermission, RoomAdminOp, RoomAdminPayload,
|
||||
RoomAttrs, ServerPermission, Signee, UserKey, WithItemId, WithSig,
|
||||
};
|
||||
|
|
|
@ -6,7 +6,7 @@ use axum::extract::{FromRef, FromRequest, FromRequestParts, Request};
|
|||
use axum::http::{header, request, StatusCode};
|
||||
use axum::response::{IntoResponse, Response};
|
||||
use axum::{async_trait, Json};
|
||||
use blah::types::{AuthPayload, UserKey, WithSig};
|
||||
use blah_types::{AuthPayload, UserKey, WithSig};
|
||||
use serde::de::DeserializeOwned;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue