# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.75.0" name = "edm-core" version = "0.2.0" authors = ["安文 "] description = "Core types and traits for edm." homepage = "https://gitee.com/plm-next/edm" documentation = "https://docs.rs/edm-core" readme = "README.md" keywords = [ "http", "web", "framework", "PDM", "PLM", ] categories = [ "asynchronous", "network-programming", "web-programming::http-server", ] license = "MIT" repository = "https://gitee.com/plm-next/edm" [package.metadata.docs.rs] cargo-args = [ "-Zunstable-options", "-Zrustdoc-scrape-examples", ] features = [ "full", "runtime-tokio", ] rustdoc-args = [ "--cfg", "docsrs", ] [[bench]] name = "criterion_main" harness = false [dependencies.aes-gcm-siv] version = "0.11.1" [dependencies.apache-avro] version = "0.16.0" [dependencies.argon2] version = "0.5.2" features = ["std"] [dependencies.async-openai] version = "0.18.0" optional = true [dependencies.base64] version = "0.21.6" [dependencies.bytes] version = "1.5.0" [dependencies.card-validate] version = "2.3.0" optional = true [dependencies.cfg-if] version = "1.0" [dependencies.chrono] version = "0.4.31" features = ["serde"] [dependencies.convert_case] version = "0.6.0" [dependencies.cookie] version = "0.18.0" [dependencies.cron] version = "0.12.0" [dependencies.csv] version = "1.3.0" [dependencies.ctr] version = "0.9.2" optional = true [dependencies.datafusion] version = "34.0.0" optional = true [dependencies.dotenvy] version = "0.15.7" [dependencies.etag] version = "4.0.0" [dependencies.faster-hex] version = "0.9.0" [dependencies.fluent] version = "0.16.0" [dependencies.futures] version = "0.3.30" [dependencies.hkdf] version = "0.12.4" [dependencies.hmac] version = "0.12.1" [dependencies.http] version = "0.2.11" [dependencies.http-body] version = "0.4.6" [dependencies.intl-memoizer] version = "0.5.1" [dependencies.jwt-simple] version = "0.12.7" features = ["pure-rust"] default-features = false [dependencies.md-5] version = "0.10.6" [dependencies.metrics] version = "0.22.0" optional = true [dependencies.metrics-exporter-prometheus] version = "0.13.0" optional = true [dependencies.mime] version = "0.3.17" [dependencies.mime_guess] version = "2.0.4" [dependencies.minijinja] version = "1.0.11" features = [ "debug", "loader", ] optional = true [dependencies.multer] version = "3.0.0" [dependencies.oauth2] version = "4.4.2" optional = true [dependencies.once_cell] version = "1.19.0" [dependencies.opendal] version = "0.44.1" features = ["layers-all"] optional = true default-features = false [dependencies.openidconnect] version = "3.4.0" optional = true [dependencies.parking_lot] version = "0.12.1" [dependencies.percent-encoding] version = "2.3.1" [dependencies.phonenumber] version = "0.3.3" optional = true [dependencies.rand] version = "0.8.5" [dependencies.random_word] version = "0.4.1" optional = true [dependencies.regex] version = "1.10.2" [dependencies.reqwest] version = "0.11.23" features = [ "cookies", "gzip", "json", "multipart", "stream", ] default-features = false [dependencies.reqwest-middleware] version = "0.2.4" [dependencies.reqwest-retry] version = "0.3.0" [dependencies.reqwest-tracing] version = "0.4.6" [dependencies.rmp-serde] version = "1.1.2" [dependencies.rust_decimal] version = "1.33.1" [dependencies.ryu] version = "1.0.16" [dependencies.serde] version = "1.0.195" features = ["derive"] [dependencies.serde_json] version = "1.0.111" features = ["raw_value"] [dependencies.serde_qs] version = "0.12.0" [dependencies.serde_yaml] version = "0.9.30" [dependencies.sha2] version = "0.10.8" [dependencies.sm3] version = "0.4.2" optional = true [dependencies.sm4] version = "0.5.1" optional = true [dependencies.smallvec] version = "1.11.2" features = ["serde"] [dependencies.sqlx] version = "0.7.3" features = [ "chrono", "rust_decimal", "uuid", ] optional = true [dependencies.sysinfo] version = "0.30.5" [dependencies.task-local-extensions] version = "0.1.4" [dependencies.tera] version = "1.19.1" optional = true [dependencies.toml] version = "0.8.8" [dependencies.totp-rs] version = "5.4.0" features = [ "otpauth", "qr", ] optional = true [dependencies.tracing] version = "0.1.40" [dependencies.tracing-appender] version = "0.2.3" [dependencies.tracing-log] version = "0.2.0" [dependencies.tracing-subscriber] version = "0.3.18" features = [ "env-filter", "json", "local-time", "parking_lot", ] [dependencies.unic-langid] version = "0.9.4" features = ["macros"] [dependencies.ureq] version = "2.9.1" features = ["json"] [dependencies.url] version = "2.5.0" [dependencies.utoipa] version = "4.2.0" features = [ "non_strict_integers", "preserve_order", "preserve_path_order", "uuid", ] [dependencies.uuid] version = "1.6.1" features = [ "fast-rng", "serde", "v4", "v7", ] [dev-dependencies.anyhow] version = "1.0.79" [dev-dependencies.arrayvec] version = "0.7.4" [dev-dependencies.base64-simd] version = "0.8.0" [dev-dependencies.criterion] version = "0.5.1" [dev-dependencies.data-encoding] version = "2.4.0" [dev-dependencies.libsm] version = "0.6.0" [dev-dependencies.sm3] version = "0.4.2" [dev-dependencies.tinyvec] version = "1.6.0" features = ["alloc"] [dev-dependencies.uuid-simd] version = "0.8.0" [features] accessor = ["opendal"] accessor-azblob = [ "accessor", "opendal/services-azblob", ] accessor-azdls = [ "accessor", "opendal/services-azdls", ] accessor-cacache = [ "accessor", "opendal/services-cacache", ] accessor-cos = [ "accessor", "opendal/services-cos", ] accessor-dashmap = [ "accessor", "opendal/services-dashmap", ] accessor-dropbox = [ "accessor", "opendal/services-dropbox", ] accessor-fs = [ "accessor", "opendal/services-fs", ] accessor-ftp = [ "accessor", "opendal/services-ftp", ] accessor-gcs = [ "accessor", "opendal/services-gcs", ] accessor-gdrive = [ "accessor", "opendal/services-gdrive", ] accessor-ghac = [ "accessor", "opendal/services-ghac", ] accessor-http = [ "accessor", "opendal/services-http", ] accessor-ipfs = [ "accessor", "opendal/services-ipfs", ] accessor-ipmfs = [ "accessor", "opendal/services-ipmfs", ] accessor-memcached = [ "accessor", "opendal/services-memcached", ] accessor-memory = [ "accessor", "opendal/services-memory", ] accessor-mini-moka = [ "accessor", "opendal/services-mini-moka", ] accessor-moka = [ "accessor", "opendal/services-moka", ] accessor-mysql = [ "accessor", "opendal/services-mysql", ] accessor-obs = [ "accessor", "opendal/services-obs", ] accessor-onedrive = [ "accessor", "opendal/services-onedrive", ] accessor-oss = [ "accessor", "opendal/services-oss", ] accessor-persy = [ "accessor", "opendal/services-persy", ] accessor-postgresql = [ "accessor", "opendal/services-postgresql", ] accessor-redb = [ "accessor", "opendal/services-redb", ] accessor-redis = [ "accessor", "opendal/services-redis", ] accessor-s3 = [ "accessor", "opendal/services-s3", ] accessor-sled = [ "accessor", "opendal/services-sled", ] accessor-supabase = [ "accessor", "opendal/services-supabase", ] accessor-webdav = [ "accessor", "opendal/services-webdav", ] accessor-webhdfs = [ "accessor", "opendal/services-webhdfs", ] all-accessors = [ "accessor", "accessor-azblob", "accessor-azdls", "accessor-cacache", "accessor-cos", "accessor-dashmap", "accessor-dropbox", "accessor-fs", "accessor-ftp", "accessor-gcs", "accessor-gdrive", "accessor-ghac", "accessor-http", "accessor-ipfs", "accessor-ipmfs", "accessor-memcached", "accessor-memory", "accessor-mini-moka", "accessor-moka", "accessor-mysql", "accessor-obs", "accessor-onedrive", "accessor-oss", "accessor-persy", "accessor-postgresql", "accessor-redb", "accessor-redis", "accessor-s3", "accessor-sled", "accessor-supabase", "accessor-webdav", "accessor-webhdfs", ] all-auth = [ "auth-oauth2", "auth-oidc", "auth-totp", ] all-chatbots = [ "chatbot", "chatbot-openai", ] all-connectors = [ "connector", "connector-arrow", "connector-http", "connector-mysql", "connector-postgres", "connector-sqlite", ] all-locales = [ "locale", "locale-en", "locale-es", "locale-de", "locale-fr", "locale-zh", ] all-validators = [ "validator-credit-card", "validator-email", "validator-phone-number", "validator-regex", ] auth-oauth2 = ["dep:oauth2"] auth-oidc = ["dep:openidconnect"] auth-totp = ["dep:totp-rs"] chatbot = [] chatbot-openai = [ "dep:async-openai", "chatbot", ] connector = ["connector-http"] connector-arrow = [ "dep:datafusion", "connector", ] connector-http = ["connector"] connector-mysql = [ "connector", "sqlx", "sqlx/mysql", ] connector-postgres = [ "connector", "sqlx", "sqlx/postgres", ] connector-sqlite = [ "connector", "sqlx", "sqlx/sqlite", ] crypto-sm = [ "dep:ctr", "dep:sm3", "dep:sm4", ] default = [ "runtime-tokio", "tls-rustls", ] full = [ "all-accessors", "all-auth", "all-chatbots", "all-connectors", "all-locales", "all-validators", "metrics", "view", ] locale = ["random_word"] locale-de = [ "locale", "random_word/de", ] locale-en = [ "locale", "random_word/en", ] locale-es = [ "locale", "random_word/es", ] locale-fr = [ "locale", "random_word/fr", ] locale-zh = [ "locale", "random_word/zh", ] metrics = [ "dep:metrics", "dep:metrics-exporter-prometheus", ] runtime-async-std = ["sqlx?/runtime-async-std"] runtime-tokio = ["sqlx?/runtime-tokio"] tls-native = [ "opendal?/native-tls", "reqwest/native-tls", "sqlx?/tls-native-tls", "ureq/native-tls", ] tls-rustls = [ "opendal?/rustls", "reqwest/rustls-tls", "sqlx?/tls-rustls", ] validator = [] validator-credit-card = [ "validator", "dep:card-validate", ] validator-email = ["validator"] validator-phone-number = [ "validator", "dep:phonenumber", ] validator-regex = ["validator"] view = ["dep:minijinja"] view-minijinja = [ "view", "dep:minijinja", ] view-tera = [ "view", "dep:tera", ]