Crate zino_core

source ·
Expand description

github crates-io docs-rs

Core types and traits for zino.

Feature flags

The following optional features are available:

NameDescriptionDefault?
accessorEnables the data access layer built with opendal.No
chatbotEnables the chatbot services.No
connectorEnables the data source connectors.No
crypto-smEnables China’s Standards of Encryption Algorithms.No
localeEnables the support for locale related utilities.No
metricsEnables the metrics exporter.No
ormEnables the ORM for MySQL, PostgreSQL or SQLite.No
runtime-async-stdEnables the async-std runtime.No
runtime-tokioEnables the tokio runtime.Yes
tls-nativeEnables the native-tls TLS backend.No
tls-rustlsEnables the rustls TLS backend.Yes
validatorEnables the common validation rules.No
viewEnables the HTML template rendering.No

Re-exports

Modules

  • Unified data access to different storage services.
  • High level abstractions for the application.
  • Authentication and authorization.
  • Cloud events and subscriptions.
  • Unified access to different chatbot services.
  • Unified connector to different data sources.
  • ISO 8601 combined date and time with local time zone.
  • Type-erased errors with tracing functionalities.
  • Extension traits for frequently used types.
  • HTTP file uploading and downloading.
  • Internationalization and localization.
  • Domain specific models.
  • Database schema and ORM.
  • Request context and validation.
  • Constructing responses and rejections.
  • Scheduler for sync and async cron jobs.
  • Application scoped state.
  • HTTP headers for performance metrics and traces.
  • Generic validator and common validation rules.
  • Building HTML views using templates.

Macros

  • Emits a tracing::Event at the warn level and returns early with an Error.
  • Returns early with a Rejection.
  • Emits a tracing::Event at the warn level and constructs an Error.

Type Aliases