1#![allow(deprecated)]
4
5#![cfg_attr(docsrs, feature(doc_cfg))]
96
97#[cfg(feature = "pages")]
105#[doc(hidden)]
106pub mod reinhardt_pages {
107 pub use reinhardt_pages::*;
108}
109
110#[doc(hidden)]
111pub mod reinhardt_types {
112 #[allow(unused_imports, unreachable_pub)]
114 pub use reinhardt_core::types::*;
115}
116
117#[cfg(all(feature = "core", not(target_arch = "wasm32")))]
119#[doc(hidden)]
120pub mod reinhardt_apps {
121 pub use reinhardt_apps::*;
122}
123
124#[cfg(all(feature = "di", not(target_arch = "wasm32")))]
125#[doc(hidden)]
126pub mod reinhardt_di {
127 pub use reinhardt_di::*;
128}
129
130#[cfg(all(feature = "auth", not(target_arch = "wasm32")))]
131#[doc(hidden)]
132pub mod reinhardt_auth {
133 pub use reinhardt_auth::*;
134}
135
136#[cfg(not(target_arch = "wasm32"))]
137#[doc(hidden)]
138pub mod reinhardt_core {
139 pub use reinhardt_core::*;
140 pub use reinhardt_core::endpoint::EndpointMetadata;
142}
143
144#[cfg(not(target_arch = "wasm32"))]
145#[doc(hidden)]
146pub mod reinhardt_http {
147 pub use reinhardt_http::*;
148}
149
150#[cfg(all(feature = "di", not(target_arch = "wasm32")))]
151#[doc(hidden)]
152pub mod reinhardt_params {
153 pub use reinhardt_di::params::*;
154}
155
156#[cfg(not(target_arch = "wasm32"))]
157#[doc(hidden)]
158pub mod async_trait {
159 pub use async_trait::*;
160}
161
162#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
163#[doc(hidden)]
164pub mod linkme {
165 pub use linkme::*;
166}
167
168#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
169#[doc(hidden)]
170pub mod ctor {
171 pub use ctor::*;
172}
173
174#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
175#[doc(hidden)]
176pub mod reinhardt_orm {
177 pub use reinhardt_db::orm::*;
178}
179
180#[cfg(feature = "pages")]
183pub mod pages;
184
185#[cfg(all(feature = "admin", not(target_arch = "wasm32")))]
187pub mod admin;
188#[cfg(all(feature = "core", not(target_arch = "wasm32")))]
189pub mod apps;
190#[cfg(all(feature = "commands", not(target_arch = "wasm32")))]
191pub mod commands;
192#[cfg(all(feature = "conf", not(target_arch = "wasm32")))]
193pub mod conf;
194#[cfg(all(feature = "core", not(target_arch = "wasm32")))]
195pub mod core;
196#[cfg(all(feature = "deeplink", not(target_arch = "wasm32")))]
197pub mod deeplink;
198#[cfg(all(feature = "dentdelion", not(target_arch = "wasm32")))]
199pub mod dentdelion;
200#[cfg(all(feature = "di", not(target_arch = "wasm32")))]
201pub mod di;
202#[cfg(all(feature = "dispatch", not(target_arch = "wasm32")))]
203pub mod dispatch;
204#[cfg(all(feature = "forms", not(target_arch = "wasm32")))]
205pub mod forms;
206#[cfg(all(feature = "graphql", not(target_arch = "wasm32")))]
207pub mod graphql;
208#[cfg(all(feature = "grpc", not(target_arch = "wasm32")))]
209pub mod grpc;
210#[cfg(not(target_arch = "wasm32"))]
211pub mod http;
212#[cfg(all(feature = "i18n", not(target_arch = "wasm32")))]
213pub mod i18n;
214#[cfg(all(feature = "mail", not(target_arch = "wasm32")))]
215pub mod mail;
216#[cfg(all(
217 any(feature = "standard", feature = "middleware"),
218 not(target_arch = "wasm32")
219))]
220pub mod middleware;
221#[cfg(all(feature = "rest", not(target_arch = "wasm32")))]
222pub mod rest;
223#[cfg(all(feature = "server", not(target_arch = "wasm32")))]
224pub mod server;
225#[cfg(all(feature = "shortcuts", not(target_arch = "wasm32")))]
226pub mod shortcuts;
227#[cfg(all(feature = "tasks", not(target_arch = "wasm32")))]
228pub mod tasks;
229#[cfg(all(feature = "templates", not(target_arch = "wasm32")))]
230pub mod template;
231#[cfg(all(feature = "test", not(target_arch = "wasm32")))]
232pub mod test;
233#[cfg(not(target_arch = "wasm32"))]
234pub mod urls;
235#[cfg(not(target_arch = "wasm32"))]
236pub mod utils;
237#[cfg(not(target_arch = "wasm32"))]
238pub mod views;
239
240#[cfg(all(feature = "core", not(target_arch = "wasm32")))]
243pub use reinhardt_apps::{AppConfig, AppError, AppResult, Apps};
244
245#[cfg(all(feature = "core", not(target_arch = "wasm32")))]
247pub use reinhardt_macros::{AppConfig, app_config, installed_apps};
248
249#[cfg(all(feature = "conf", not(target_arch = "wasm32")))]
251pub use reinhardt_macros::settings;
252
253#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
255pub use reinhardt_macros::{Model, model};
256
257#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
259pub use reinhardt_macros::collect_migrations;
260
261#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
263pub use reinhardt_db::migrations;
264
265#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
267#[doc(hidden)]
268pub use migrations as reinhardt_migrations;
269
270#[cfg(not(target_arch = "wasm32"))]
273#[doc(hidden)]
274pub mod macros {
275 pub use reinhardt_macros::*;
276}
277
278#[cfg(not(target_arch = "wasm32"))]
280pub use reinhardt_macros::{api_view, delete, get, patch, post, put};
281
282#[cfg(not(target_arch = "wasm32"))]
284pub use reinhardt_macros::routes;
285
286#[cfg(all(feature = "admin", not(target_arch = "wasm32")))]
288pub use reinhardt_macros::admin;
289
290#[cfg(all(feature = "conf", not(target_arch = "wasm32")))]
292#[allow(deprecated)]
293pub use reinhardt_conf::settings::{
295 AdvancedSettings, CacheSettings, CorsSettings, DatabaseConfig, EmailSettings, LoggingSettings,
296 MediaSettings, MiddlewareConfig, SessionSettings, Settings, SettingsError, StaticSettings,
297 TemplateConfig,
298};
299
300#[cfg(all(feature = "conf", not(target_arch = "wasm32")))]
301pub use reinhardt_conf::settings::core_settings::{CoreSettings, HasCoreSettings};
302
303#[cfg(all(feature = "conf", not(target_arch = "wasm32")))]
304pub use reinhardt_conf::settings::fragment::SettingsFragment;
305
306#[cfg(all(feature = "conf", not(target_arch = "wasm32")))]
307pub use reinhardt_conf::settings::fragment::HasSettings;
308
309#[cfg(all(feature = "conf", not(target_arch = "wasm32")))]
310pub use reinhardt_conf::settings::builder::SettingsBuilder;
311
312#[cfg(all(feature = "conf", not(target_arch = "wasm32")))]
313pub use reinhardt_conf::settings::profile::Profile;
314
315#[cfg(all(feature = "conf", not(target_arch = "wasm32")))]
316pub use reinhardt_conf::settings::sources::{
317 DefaultSource, EnvSource, LowPriorityEnvSource, TomlFileSource,
318};
319
320pub use reinhardt_core::apply_update::ApplyUpdate;
322#[cfg(not(target_arch = "wasm32"))]
323pub use reinhardt_macros::{ApplyUpdate as DeriveApplyUpdate, apply_update};
324
325#[cfg(all(feature = "core", not(target_arch = "wasm32")))]
327pub use reinhardt_core::{
328 endpoint::EndpointMetadata,
329 exception::{Error, Result},
330};
331
332#[cfg(all(feature = "core", not(target_arch = "wasm32")))]
334pub use reinhardt_http::{Handler, Middleware, MiddlewareChain, Request, Response, ViewResult};
335
336#[cfg(all(feature = "core", not(target_arch = "wasm32")))]
338#[doc(hidden)]
339pub use inventory;
340
341#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
343pub use reinhardt_db::orm::{
344 DatabaseBackend, DatabaseConnection, Model, QuerySet, SoftDeletable, SoftDelete, Timestamped,
345 Timestamps,
346};
347
348#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
368pub use reinhardt_db::orm::{
369 Exists,
371 F,
372 FieldRef,
373 Filter,
375 FilterOperator,
376 FilterValue,
377 OuterRef,
378 Q,
379 QOperator,
380 Subquery,
381};
382
383#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
415pub use reinhardt_db::orm::{
416 Aggregate,
418 AggregateFunc,
419 AggregateValue,
420 Annotation,
422 AnnotationValue,
423};
424
425#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
455pub use reinhardt_db::orm::{
456 IsolationLevel,
458 QueryValue,
459 Savepoint,
460 Transaction,
461 TransactionExecutor,
462 TransactionScope,
463 atomic,
464 atomic_with_isolation,
465};
466
467#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
498pub use reinhardt_db::orm::{
499 Abs,
501 Cast,
503 Ceil,
504 Concat,
506 CurrentDate,
508 CurrentTime,
509 Extract,
510 ExtractComponent,
511 Floor,
512 Greatest,
513 Least,
514 Length,
515 Lower,
516 Mod,
517 Now,
518 NullIf,
519 Power,
520 Round,
521 SqlType,
522 Sqrt,
523 Substr,
524 Trim,
525 TrimType,
526 Upper,
527};
528
529#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
560pub use reinhardt_db::orm::{
561 DenseRank,
563 FirstValue,
565 Frame,
567 FrameBoundary,
568 FrameType,
569 Lag,
570 LastValue,
571 Lead,
572 NTile,
573 NthValue,
574 Rank,
575 RowNumber,
576 Window,
577 WindowFunction,
578};
579
580#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
597pub use reinhardt_db::orm::{
598 BTreeIndex,
600 CheckConstraint,
602 Constraint,
603 ForeignKeyConstraint,
604 GinIndex,
605 GistIndex,
606 HashIndex,
607 Index,
608 OnDelete,
609 OnUpdate,
610 UniqueConstraint,
611};
612
613#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
618pub use reinhardt_db::orm::{IntoValue, Order, QueryBuilderValue};
619
620#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
622pub use reinhardt_db::pool::{ConnectionPool, PoolConfig, PoolError};
623
624#[cfg(all(feature = "rest", not(target_arch = "wasm32")))]
626pub use reinhardt_rest::serializers::{Deserializer, JsonSerializer, Serializer};
627
628#[cfg(not(target_arch = "wasm32"))]
630pub use reinhardt_views::viewsets::{
631 Action, ActionType, CreateMixin, DestroyMixin, GenericViewSet, ListMixin, ModelViewSet,
632 ReadOnlyModelViewSet, RetrieveMixin, UpdateMixin, ViewSet,
633};
634
635#[cfg(not(target_arch = "wasm32"))]
637pub use reinhardt_urls::routers::{
638 DefaultRouter, PathMatcher, PathPattern, Route, Router, ServerRouter, UrlPatternsRegistration,
639 clear_router, get_router, is_router_registered, register_router, register_router_arc,
640};
641
642#[cfg(feature = "client-router")]
645pub use reinhardt_urls::routers::{
646 ClientPathPattern, ClientRoute, ClientRouteMatch, ClientRouter, FromPath, HistoryState,
647 NavigationType, ParamContext, SingleFromPath, UnifiedRouter,
648};
649#[cfg(feature = "client-router")]
651pub use reinhardt_urls::routers::Path as ClientPath;
652
653#[cfg(all(feature = "auth", not(target_arch = "wasm32")))]
655#[allow(deprecated)] pub use reinhardt_auth::{
657 AllowAny, AnonymousUser, AuthBackend, AuthInfo, AuthUser, BaseUser, CurrentUser, FullUser,
658 IsAdminUser, IsAuthenticated, PasswordHasher, Permission, PermissionsMixin, SimpleUser, User,
659 validate_auth_extractors,
660};
661
662#[cfg(all(
666 feature = "auth",
667 feature = "argon2-hasher",
668 not(target_arch = "wasm32")
669))]
670#[cfg_attr(docsrs, doc(cfg(all(feature = "auth", feature = "argon2-hasher"))))]
671pub use reinhardt_auth::{Argon2Hasher, DefaultUser, DefaultUserManager};
672
673#[cfg(all(feature = "auth-jwt", not(target_arch = "wasm32")))]
674pub use reinhardt_auth::{Claims, JwtAuth, JwtError};
675
676#[cfg(all(feature = "auth", not(target_arch = "wasm32")))]
708pub use reinhardt_auth::{
709 CreateGroupData,
711 CreateUserData,
713 Group,
714 GroupManagementError,
715 GroupManagementResult,
716 GroupManager,
717 ObjectPermission,
719 ObjectPermissionChecker,
720 ObjectPermissionManager,
721 UpdateUserData,
722 UserManagementError,
723 UserManagementResult,
724 UserManager,
725};
726
727#[cfg(all(
731 feature = "sessions",
732 feature = "middleware",
733 not(target_arch = "wasm32")
734))]
735pub use reinhardt_middleware::AuthenticationMiddleware;
736
737#[cfg(all(
738 any(feature = "standard", feature = "middleware"),
739 not(target_arch = "wasm32")
740))]
741pub use reinhardt_middleware::LoggingMiddleware;
742
743#[cfg(all(feature = "middleware-cors", not(target_arch = "wasm32")))]
744pub use reinhardt_middleware::CorsMiddleware;
745
746#[cfg(all(feature = "core", not(target_arch = "wasm32")))]
748pub use reinhardt_http::Extensions;
749
750#[cfg(not(target_arch = "wasm32"))]
752pub use hyper::{Method, StatusCode};
753
754#[cfg(all(feature = "rest", not(target_arch = "wasm32")))]
756pub use reinhardt_rest::pagination::{
757 CursorPagination, LimitOffsetPagination, PageNumberPagination, PaginatedResponse, Paginator,
758};
759
760#[cfg(all(feature = "rest", not(target_arch = "wasm32")))]
762pub use reinhardt_rest::filters::{
763 FieldOrderingExt, FilterBackend, FilterError, FilterResult, MultiTermSearch,
764};
765
766#[cfg(all(feature = "rest", not(target_arch = "wasm32")))]
768pub use reinhardt_rest::throttling::{
769 AnonRateThrottle, ScopedRateThrottle, Throttle, UserRateThrottle,
770};
771
772#[cfg(all(feature = "core", not(target_arch = "wasm32")))]
774pub use reinhardt_core::signals::{
775 M2MAction, M2MChangeEvent, Signal, m2m_changed, post_delete, post_save, pre_delete, pre_save,
776};
777
778#[cfg(all(feature = "core", not(target_arch = "wasm32")))]
783pub use reinhardt_core::validators::{
784 CreditCardValidator, EmailValidator, IBANValidator, IPAddressValidator, PhoneNumberValidator,
785 UrlValidator, Validate, ValidationError as ValidatorError, ValidationErrors, ValidationResult,
786 Validator,
787};
788
789#[cfg(not(target_arch = "wasm32"))]
791pub use reinhardt_views::{
792 Context, DetailView, ListView, MultipleObjectMixin, SingleObjectMixin, View,
793};
794
795#[cfg(all(feature = "rest", not(target_arch = "wasm32")))]
797pub use reinhardt_rest::parsers::{
798 FileUploadParser, FormParser, JSONParser, MediaType, MultiPartParser, ParseError, ParseResult,
799 Parser,
800};
801
802#[cfg(all(feature = "rest", not(target_arch = "wasm32")))]
804pub use reinhardt_rest::versioning::{
805 AcceptHeaderVersioning, BaseVersioning, HostNameVersioning, NamespaceVersioning,
806 QueryParameterVersioning, RequestVersionExt, URLPathVersioning, VersioningError,
807 VersioningMiddleware,
808};
809
810#[cfg(all(feature = "rest", not(target_arch = "wasm32")))]
812pub use reinhardt_rest::metadata::{
813 ActionMetadata, BaseMetadata, ChoiceInfo, FieldInfo, FieldInfoBuilder, FieldType,
814 MetadataOptions, MetadataResponse, SimpleMetadata,
815};
816
817#[cfg(all(feature = "rest", not(target_arch = "wasm32")))]
819pub use reinhardt_rest::negotiation::*;
820
821#[cfg(all(feature = "rest", not(target_arch = "wasm32")))]
823pub use reinhardt_rest::{
824 filters, metadata, negotiation, pagination, parsers, serializers, throttling, versioning,
825};
826
827#[cfg(all(feature = "rest", not(target_arch = "wasm32")))]
829pub use reinhardt_rest::browsable_api;
830
831#[cfg(all(feature = "openapi", not(target_arch = "wasm32")))]
853pub use reinhardt_rest::openapi::*;
854
855#[cfg(all(feature = "openapi-router", not(target_arch = "wasm32")))]
857pub use reinhardt_openapi::OpenApiRouter;
858
859#[cfg(all(feature = "shortcuts", not(target_arch = "wasm32")))]
861pub use reinhardt_shortcuts::{redirect, render_html, render_json, render_text};
862#[cfg(all(
864 feature = "shortcuts",
865 feature = "database",
866 not(target_arch = "wasm32")
867))]
868pub use reinhardt_shortcuts::{get_list_or_404, get_object_or_404};
869
870#[cfg(not(target_arch = "wasm32"))]
872pub use reinhardt_urls::routers::{
873 UrlPattern, UrlPatternWithParams, UrlReverser, include_routes as include, path, re_path,
874 reverse,
875};
876
877#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
882pub use reinhardt_db::contenttypes::{
883 CONTENT_TYPE_REGISTRY, ContentType, ContentTypeRegistry, GenericForeignKey, GenericRelatable,
884 GenericRelationQuery, ModelType,
885};
886#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
887pub use reinhardt_db::migrations::{
888 FieldState, Migration, MigrationAutodetector, MigrationError, MigrationPlan, MigrationRecorder,
889 ModelState, ProjectState,
890};
891
892#[cfg(all(feature = "cache", not(target_arch = "wasm32")))]
894pub use reinhardt_utils::cache::{Cache, CacheKeyBuilder, InMemoryCache};
895
896#[cfg(all(feature = "middleware", not(target_arch = "wasm32")))]
898pub use reinhardt_middleware::CacheMiddleware;
899
900#[cfg(all(
901 feature = "cache",
902 feature = "redis-backend",
903 not(target_arch = "wasm32")
904))]
905pub use reinhardt_utils::cache::RedisCache;
906
907#[cfg(all(feature = "sessions", not(target_arch = "wasm32")))]
909pub use reinhardt_auth::sessions::{
910 CacheSessionBackend, InMemorySessionBackend, Session, SessionBackend, SessionError,
911};
912
913#[cfg(all(
914 feature = "sessions",
915 feature = "middleware",
916 not(target_arch = "wasm32")
917))]
918pub use reinhardt_auth::sessions::{HttpSessionConfig, SameSite, SessionMiddleware};
919
920#[cfg(all(feature = "forms", not(target_arch = "wasm32")))]
926pub use reinhardt_forms::{
927 BoundField, CharField, EmailField, FieldError, FileField, Form, FormError, FormResult,
928 IntegerField, ModelForm,
929};
930
931#[cfg(all(feature = "di", not(target_arch = "wasm32")))]
933pub use reinhardt_di::injected::{Injected, OptionalInjected};
934#[cfg(all(feature = "di", not(target_arch = "wasm32")))]
935pub use reinhardt_di::scope::{RequestScope, Scope, SingletonScope};
936#[cfg(all(feature = "di", not(target_arch = "wasm32")))]
937pub use reinhardt_di::{
938 Depends, DependsBuilder, DiError, DiResult, Injectable, InjectionContext,
939 InjectionContextBuilder, InjectionMetadata, RequestContext,
940};
941
942#[cfg(all(
944 any(feature = "minimal", feature = "standard", feature = "di"),
945 not(target_arch = "wasm32")
946))]
947pub use reinhardt_di::params::{Body, Cookie, Header, Json, Path, Query};
948
949#[cfg(all(feature = "tasks", not(target_arch = "wasm32")))]
954pub use reinhardt_tasks::{Scheduler, Task, TaskExecutor, TaskQueue};
955
956#[cfg(all(feature = "test", not(target_arch = "wasm32")))]
958pub use reinhardt_test::{APIClient, APIRequestFactory, APITestCase, TestResponse};
959
960#[cfg(all(feature = "storage", not(target_arch = "wasm32")))]
962pub use reinhardt_utils::storage::{InMemoryStorage, LocalStorage, Storage};
963
964#[cfg(not(target_arch = "wasm32"))]
966pub mod prelude {
967 pub use crate::{
969 Action,
970 DefaultRouter,
971 DetailView,
972 ListView,
973 ModelViewSet,
974 MultipleObjectMixin,
975 ReadOnlyModelViewSet,
976 Route,
977 Router,
978 ServerRouter,
979 SingleObjectMixin,
980 StatusCode,
981 View,
982 ViewSet,
983 clear_router,
985 get_router,
986 is_router_registered,
987 register_router,
988 };
989
990 #[cfg(feature = "core")]
992 pub use crate::ViewResult;
993
994 #[cfg(feature = "client-router")]
996 pub use crate::UnifiedRouter;
997
998 #[cfg(feature = "core")]
1000 pub use crate::core::async_trait;
1001 #[cfg(feature = "core")]
1002 pub use crate::core::serde::{Deserialize, Serialize};
1003
1004 #[cfg(feature = "core")]
1006 pub use crate::{
1007 Error, Handler, Middleware, MiddlewareChain, Request, Response, Result, Signal,
1008 m2m_changed, post_delete, post_save, pre_delete, pre_save,
1009 };
1010
1011 pub use crate::{api_view, delete, get, patch, post, put};
1013
1014 #[cfg(feature = "database")]
1016 pub use crate::{
1017 Aggregate,
1018 Annotation,
1020 CheckConstraint,
1021 Concat,
1023 CurrentDate,
1024 DatabaseConnection,
1025 DenseRank,
1026 F,
1028 ForeignKeyConstraint,
1029 Lower,
1030 Now,
1031 Q,
1032 QOperator,
1033 Rank,
1034 RowNumber,
1035 SoftDeletable,
1036 Timestamped,
1037 Transaction,
1039 UniqueConstraint,
1041 Upper,
1042 Window,
1044 atomic,
1045 model,
1047 };
1048
1049 #[cfg(feature = "database")]
1052 pub use reinhardt_db::orm::Model;
1053
1054 #[cfg(feature = "auth")]
1056 pub use crate::{
1057 AuthBackend,
1058 Group,
1059 GroupManager,
1060 ObjectPermission,
1062 ObjectPermissionChecker,
1063 PasswordHasher,
1064 Permission,
1065 SimpleUser,
1066 User,
1067 UserManager,
1069 };
1070
1071 #[cfg(any(feature = "minimal", feature = "standard", feature = "di"))]
1077 pub use crate::{Body, Cookie, Header, Json, Path, Query};
1078
1079 #[cfg(feature = "rest")]
1081 pub use crate::{
1082 AcceptHeaderVersioning,
1084 AnonRateThrottle,
1086 CursorPagination,
1087 FormParser,
1088 JSONParser,
1090 JsonSerializer,
1091 LimitOffsetPagination,
1092 MultiPartParser,
1093 MultiTermSearch,
1095 PageNumberPagination,
1097 Paginator,
1098 Parser,
1099 QueryParameterVersioning,
1100 ScopedRateThrottle,
1101 Serializer,
1103 SimpleMetadata,
1105 Throttle,
1106 URLPathVersioning,
1107 UserRateThrottle,
1108 VersioningMiddleware,
1109 };
1110
1111 #[cfg(feature = "conf")]
1113 #[allow(deprecated)] pub use crate::Settings;
1115
1116 #[cfg(any(feature = "standard", feature = "middleware"))]
1118 pub use crate::LoggingMiddleware;
1119
1120 #[cfg(all(
1122 feature = "sessions",
1123 feature = "middleware",
1124 not(target_arch = "wasm32")
1125 ))]
1126 pub use crate::AuthenticationMiddleware;
1127 #[cfg(feature = "sessions")]
1128 pub use crate::Session;
1129
1130 #[cfg(feature = "cache")]
1132 pub use crate::{Cache, InMemoryCache};
1133
1134 }
1136
1137#[cfg(all(feature = "websockets-pages", not(target_arch = "wasm32")))]
1139pub use reinhardt_websockets::integration::pages::PagesAuthenticator;
1140#[cfg(all(feature = "websockets", not(target_arch = "wasm32")))]
1141pub use reinhardt_websockets::room::RoomManager;
1142#[cfg(all(feature = "websockets", not(target_arch = "wasm32")))]
1143pub use reinhardt_websockets::{
1144 ConsumerContext, Message, WebSocketConsumer, WebSocketError, WebSocketResult,
1145};
1146#[cfg(all(feature = "websockets", not(target_arch = "wasm32")))]
1147pub use reinhardt_websockets::{
1148 RouteError, RouteResult, WebSocketRoute, WebSocketRouter, clear_websocket_router,
1149 get_websocket_router, register_websocket_router, reverse_websocket_url,
1150};
1151
1152#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
1157pub mod query;
1158
1159#[cfg(all(feature = "database", not(target_arch = "wasm32")))]
1163pub mod db {
1164 pub use reinhardt_db::DatabaseConnection;
1166 pub use reinhardt_db::DatabaseError as Error;
1167
1168 pub mod migrations {
1170 pub use reinhardt_db::migrations::*;
1171 }
1172
1173 pub mod orm {
1175 pub use reinhardt_db::orm::*;
1176 }
1177
1178 pub mod associations {
1180 pub use reinhardt_db::associations::*;
1181 }
1182
1183 pub mod prelude {
1185 pub use reinhardt_db::prelude::*;
1186 }
1187}