# 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" name = "hi-push" version = "0.0.1" description = "Third-party push service integration library. Include apns,fcm,xiaomi,huawei,wecom and email." readme = "README.md" license = "MIT" [[example]] name = "simple" [dependencies.anyhow] version = "1.0.65" [dependencies.async-trait] version = "0.1.57" [dependencies.axum] version = "0.5.16" features = [ "http2", "headers", "ws", ] optional = true [dependencies.base64] version = "0.13.0" optional = true [dependencies.bytecodec] version = "0.4.15" optional = true [dependencies.chrono] version = "0.4.22" [dependencies.derive_builder] version = "0.11.2" [dependencies.flatten-json-object] version = "0.6.1" optional = true [dependencies.futures] version = "0.3.24" optional = true [dependencies.governor] version = "0.5" [dependencies.hi-hyper-multipart] version = "0.0.2" optional = true [dependencies.http] version = "0.2.8" optional = true [dependencies.httpcodec] version = "0.2.3" optional = true [dependencies.hyper] version = "0.14.20" features = ["client"] optional = true [dependencies.hyper-socks2] version = "0.7.0" features = ["tls"] default-features = false [dependencies.hyper-tls] version = "0.5.0" [dependencies.lettre] version = "0.10.1" optional = true [dependencies.mongodb] version = "2.3.0" optional = true [dependencies.multer] version = "2.0.4" optional = true [dependencies.oauth2] version = "4.2.3" optional = true [dependencies.openssl] version = "^0.10" features = ["vendored"] [dependencies.reqwest] version = "0.11.12" features = [ "json", "socks", "multipart", "native-tls", "stream", ] [dependencies.sea-orm] version = "0.9.2" features = [ "sqlx-mysql", "runtime-tokio-native-tls", "macros", ] optional = true [dependencies.serde] version = "1.0.144" [dependencies.serde_json] version = "1.0.85" [dependencies.serde_repr] version = "0.1.9" [dependencies.thiserror] version = "1.0.37" [dependencies.tokio] version = "1.20.1" [dependencies.tokio-retry] version = "0.3.0" [dependencies.tonic] version = "0.8.0" optional = true [dependencies.tracing] version = "0.1.36" [dependencies.tracing-subscriber] version = "0.3.15" features = ["json"] [dependencies.uuid] version = "1.1.2" features = ["serde"] optional = true [dependencies.yup-oauth2] version = "7.0.1" optional = true [features] apns = ["uuid"] cache = [] default = [ "fcm", "email", "huawei", "apns", "xiaomi", "wecom", "rtm", "grpc-api", "http-api", "mongo", ] email = ["lettre"] fcm = [ "http", "yup-oauth2", "httpcodec", "hi-hyper-multipart", "flatten-json-object", "bytecodec", "multer", "uuid", "hyper", ] full = [ "fcm", "email", "huawei", "apns", "xiaomi", "wecom", "rtm", "grpc-api", "http-api", "mongo", ] grpc-api = ["tonic"] http-api = [ "axum", "uuid", "base64", ] huawei = ["oauth2"] mongo = [ "mongodb", "futures", ] mysql = ["sea-orm"] rtm = [] wecom = ["flatten-json-object"] xiaomi = ["flatten-json-object"]