Remove error-type feature from lemmy-utils

remove-error-type-feature
Felix Ableitner 4 months ago
parent ab4deaa49a
commit 9742e8d5c1

@ -44,7 +44,7 @@ lemmy_db_views = { workspace = true }
lemmy_db_views_moderator = { workspace = true }
lemmy_db_views_actor = { workspace = true }
lemmy_db_schema = { workspace = true }
lemmy_utils = { workspace = true, features = ["error-type"] }
lemmy_utils = { workspace = true }
activitypub_federation = { workspace = true, optional = true }
serde = { workspace = true }
serde_with = { workspace = true }

@ -23,7 +23,8 @@ workspace = true
[features]
default = [
"error-type",
"dep:serde",
"dep:strum",
"dep:serde_json",
"dep:anyhow",
"dep:tracing-error",
@ -53,7 +54,6 @@ default = [
]
full = ["default", "dep:ts-rs"]
error-type = ["dep:serde", "dep:strum"]
[dependencies]
regex = { workspace = true, optional = true }

@ -6,8 +6,8 @@ use strum_macros::{Display, EnumIter};
use ts_rs::TS;
#[derive(Display, Debug, Serialize, Deserialize, Clone, PartialEq, Eq, EnumIter, Hash)]
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export))]
#[cfg_attr(feature = "full", derive(TS))]
#[cfg_attr(feature = "full", ts(export))]
#[serde(tag = "error", content = "message", rename_all = "snake_case")]
#[non_exhaustive]
// TODO: order these based on the crate they belong to (utils, federation, db, api)

@ -12,17 +12,12 @@ cfg_if! {
pub mod settings;
pub mod utils;
pub mod version;
pub use error::LemmyErrorType;
} else {
mod error;
}
}
cfg_if! {
if #[cfg(feature = "error-type")] {
pub use error::LemmyErrorType;
}
}
use std::time::Duration;
pub type ConnectionId = usize;

@ -1 +1 @@
Subproject commit c3e61706e2ff7977db83e964e3010f72cad5e408
Subproject commit a36865ee8ca3658fea31ba948b67b75a812e84fc
Loading…
Cancel
Save