#![warn(missing_docs)]
pub use scyph_core as core;
#[cfg(feature = "auth")]
pub use scyph_auth as auth;
#[cfg(feature = "abac")]
pub use scyph_abac as abac;
#[cfg(feature = "db")]
pub use scyph_db as db;
#[cfg(feature = "health")]
pub use scyph_health as health;
#[cfg(feature = "notify")]
pub use scyph_notify as notify;
#[cfg(feature = "storage")]
pub use scyph_storage as storage;
#[cfg(feature = "realtime")]
pub use scyph_realtime as realtime;
#[cfg(feature = "telemetry")]
pub use scyph_telemetry as telemetry;
#[cfg(feature = "ratelimit")]
pub use scyph_ratelimit as ratelimit;
#[cfg(feature = "utils")]
pub use scyph_utils as utils;
#[cfg(feature = "extractors")]
pub use scyph_extractors as extractors;
pub mod prelude {
pub use scyph_core::{
Action, ApiResponse, AppError, Authorizable, Claims, ErrorDetails, PagedResponse,
ResponseMeta, Result,
};
#[cfg(feature = "auth")]
pub use scyph_auth::{
AuthCacheService, AuthError, AuthUser, OptionalAuthUser, PasswordService, RoleRouterExt,
hash_password, hash_password_async, require_role, verify_password, verify_password_async,
};
#[cfg(feature = "abac")]
pub use scyph_abac::{AbacError, AbacPolicy, AuthUserEnforceExt, FilterBuilder};
#[cfg(feature = "db")]
pub use scyph_db::{
DbError, begin, build_pool, commit, rollback, run_migrations, run_migrations_from,
run_seeds, run_seeds_from,
};
#[cfg(all(feature = "db", feature = "query"))]
pub use scyph_db::{
ApplyFiltering, ApplyPagination, ApplyRequestParams, ApplySearch, ApplySorting,
};
#[cfg(feature = "notify")]
pub use scyph_notify::{
EmailMessage, EmailService, EmailTemplate, NoEmailService, NoPushService, NotifyError,
PushNotification, PushService, PushTemplate,
};
#[cfg(feature = "storage")]
pub use scyph_storage::{
ExtractedFile, FileConfig, FileExtractor, InMemoryStorageService, MultiFileExtractor,
OptionalFileExtractor, StorageError, StorageService,
};
#[cfg(all(feature = "storage", feature = "s3"))]
pub use scyph_storage::S3StorageService;
#[cfg(all(feature = "storage", feature = "image"))]
pub use scyph_storage::{
StorageThumbnailExt, ThumbnailConfig, ThumbnailStoreResult, derive_thumbnail_key,
derive_thumbnail_key_with_format, format_content_type, format_extension,
generate_thumbnail, generate_thumbnail_with_format, thumbnail_key,
};
#[cfg(feature = "realtime")]
pub use scyph_realtime::{
ConnectionRegistry, RealtimeBroadcaster, RealtimeConfig, RealtimeError, RealtimeEvent,
RealtimePayload, RealtimeSession,
};
#[cfg(feature = "telemetry")]
pub use scyph_telemetry::{
MakeRequestIdV7, RequestId, TelemetryConfig, TelemetryGuard, auto_meta_middleware,
init_tracing, with_telemetry, with_telemetry_config,
};
#[cfg(feature = "ratelimit")]
pub use scyph_ratelimit::{
PeerRateLimitLayer, RateLimitConfig, RateLimitError, RateLimitRouterExt,
SmartRateLimitLayer, per_ip_layer, relaxed_layer, smart_ip_layer, smart_relaxed_layer,
smart_strict_layer, strict_layer,
};
#[cfg(feature = "utils")]
pub use scyph_utils::{
BloomFilter, Cursor, IdempotencyCheck, IdempotencyConfig, IdempotencyError,
IdempotencyStore, PageParams, PaginationError, SharedBloomFilter, ValkeyBloomError,
ValkeyBloomFilter, VerifiedWebhook, WebhookConfig, WebhookError, WorkerError, WorkerHandle,
spawn_worker, spawn_worker_cancel, verify_raw_webhook, verify_webhook,
verify_webhook_header,
};
#[cfg(feature = "extractors")]
pub use scyph_extractors::{
ExtractorError, FilterParams, LinkBuilder, LinkGenerator, PaginationParams, RequestParams,
SanitizedJson, SearchParams, SortOrder, SortParams, TypedPath, ValidatedJson,
ValidatedPath, ValidatedQuery, deserialize_number_from_string,
};
#[cfg(all(feature = "db", feature = "health"))]
pub use scyph_db::DbHealthExt;
#[cfg(all(feature = "realtime", feature = "health"))]
pub use scyph_realtime::RealtimeHealthExt;
#[cfg(all(feature = "storage", feature = "health"))]
pub use scyph_storage::StorageHealthExt;
#[cfg(feature = "health")]
pub use scyph_health::{
HealthFailure, HealthRegistry, IntoHealthResult, ServiceStatus, Status, health_routes,
health_routes_verbose,
};
}
pub use scyph_core::{
Action, ApiResponse, AppError, Authorizable, Claims, ErrorDetails, PagedResponse, ResponseMeta,
Result,
};
#[cfg(feature = "auth")]
pub use scyph_auth::{AuthError, AuthUser, OptionalAuthUser};
#[cfg(feature = "abac")]
pub use scyph_abac::{AbacError, AbacPolicy, FilterBuilder};
#[cfg(feature = "db")]
pub use scyph_db::DbError;
#[cfg(all(feature = "db", feature = "query"))]
pub use scyph_db::{
ApplyFiltering, ApplyPagination, ApplyRequestParams, ApplySearch, ApplySorting,
escape_like_pattern,
};
#[cfg(feature = "notify")]
pub use scyph_notify::{EmailTemplate, NoEmailService, NoPushService, NotifyError, PushTemplate};
#[cfg(feature = "storage")]
pub use scyph_storage::StorageError;
#[cfg(all(feature = "storage", feature = "image"))]
pub use scyph_storage::{
StorageThumbnailExt, ThumbnailConfig, ThumbnailStoreResult, derive_thumbnail_key,
derive_thumbnail_key_with_format, format_content_type, format_extension, generate_thumbnail,
generate_thumbnail_with_format, thumbnail_key,
};
#[cfg(feature = "realtime")]
pub use scyph_realtime::{
RealtimeBroadcaster, RealtimeError, RealtimeEvent, RealtimePayload, RealtimeSession,
};
#[cfg(feature = "telemetry")]
pub use scyph_telemetry::{
RequestId, TelemetryGuard, auto_meta_middleware, init_tracing, with_telemetry,
};
#[cfg(feature = "ratelimit")]
pub use scyph_ratelimit::{
PeerRateLimitLayer, RateLimitConfig, RateLimitError, RateLimitRouterExt, SmartRateLimitLayer,
per_ip_layer, relaxed_layer, smart_ip_layer, smart_relaxed_layer, smart_strict_layer,
strict_layer,
};
#[cfg(feature = "utils")]
pub use scyph_utils::{
BloomFilter, IdempotencyError, PaginationError, SharedBloomFilter, ValkeyBloomError,
ValkeyBloomFilter, VerifiedWebhook, WebhookConfig, WebhookError, WorkerError, WorkerHandle,
verify_raw_webhook, verify_webhook, verify_webhook_header,
};
#[cfg(feature = "extractors")]
pub use scyph_extractors::{
ExtractorError, FilterParams, LinkBuilder, LinkGenerator, PaginationParams, RequestParams,
SanitizedJson, SearchParams, SortOrder, SortParams, TypedPath, ValidatedJson, ValidatedPath,
ValidatedQuery, deserialize_number_from_string,
};
#[cfg(all(feature = "realtime", feature = "health"))]
pub use scyph_realtime::RealtimeHealthExt;