Skip to content

Commit

Permalink
remove kitsune-core unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Nov 25, 2023
1 parent ba980d4 commit 286471f
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 70 deletions.
15 changes: 0 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions crates/kitsune-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,13 @@ edition.workspace = true
version.workspace = true

[dependencies]
athena = { path = "../../lib/athena" }
deadpool-redis = "0.13.0"
eyre = "0.6.9"
futures-util = "0.3.29"
kitsune-cache = { path = "../kitsune-cache" }
kitsune-captcha = { path = "../kitsune-captcha" }
kitsune-config = { path = "../kitsune-config" }
kitsune-db = { path = "../kitsune-db" }
kitsune-email = { path = "../kitsune-email" }
kitsune-embed = { path = "../kitsune-embed" }
kitsune-messaging = { path = "../kitsune-messaging" }
kitsune-search = { path = "../kitsune-search" }
kitsune-storage = { path = "../kitsune-storage" }
rusty-s3 = { version = "0.5.0", default-features = false }
serde = { version = "1.0.193", features = ["derive"] }
speedy-uuid = { path = "../../lib/speedy-uuid", features = ["diesel"] }
thiserror = "1.0.50"
time = "0.3.30"
tracing = "0.1.40"
typed-builder = "0.18.0"
url = "2.5.0"

[features]
default = []
mastodon-api = []
meilisearch = ["kitsune-search/meilisearch"]
35 changes: 0 additions & 35 deletions crates/kitsune-core/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
use std::error::Error as StdError;
use thiserror::Error;

pub type BoxError = Box<dyn StdError + Send + Sync>;
//pub type Result<T, E = Error> = std::result::Result<T, E>;

#[derive(Debug, Error)]
pub enum ApiError {
#[error("Bad request")]
BadRequest,

#[error("Email already taken")]
EmailTaken,

#[error("Internal server error")]
InternalServerError,

#[error("Invalid captcha")]
InvalidCaptcha,

#[error("Missing host")]
MissingHost,

#[error("Not found")]
NotFound,

#[error("Registrations closed")]
RegistrationsClosed,

#[error("Unauthorised")]
Unauthorised,

#[error("Unsupported media type")]
UnsupportedMediaType,

#[error("Username already taken")]
UsernameTaken,
}
3 changes: 0 additions & 3 deletions crates/kitsune-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
forbidden_lint_groups
)]

#[macro_use]
extern crate tracing;

pub mod error;
pub mod event;
//pub mod mapping;
Expand Down
2 changes: 1 addition & 1 deletion kitsune/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,5 @@ graphql-api = [
"speedy-uuid/async-graphql",
]
mastodon-api = ["kitsune-core/mastodon-api"]
meilisearch = ["kitsune-core/meilisearch"]
meilisearch = ["kitsune-search/meilisearch"]
oidc = ["dep:kitsune-oidc"]

0 comments on commit 286471f

Please sign in to comment.