Cargo Features

[dependencies]
hi-push = { version = "0.0.1", default-features = false, features = ["full", "fcm", "email", "huawei", "apns", "xiaomi", "wecom", "rtm", "grpc-api", "http-api", "mongo", "mysql", "cache"] }
default = apns, email, fcm, grpc-api, http-api, huawei, mongo, rtm, wecom, xiaomi

These default features are set whenever hi-push is added without default-features = false somewhere in the dependency tree.

full = apns, email, fcm, grpc-api, http-api, huawei, mongo, rtm, wecom, xiaomi
fcm default full? = bytecodec, flatten-json-object, hi-hyper-multipart, http, httpcodec, hyper, multer, uuid, yup-oauth2

Affects hi-push::fcm

email default full? = lettre

Affects hi-push::email

huawei default full? = oauth2

Affects hi-push::huawei

apns default full? = uuid

Affects hi-push::apns

xiaomi default full? = flatten-json-object

Affects hi-push::xiaomi

wecom default full? = flatten-json-object

Affects hi-push::wecom

rtm default full?

Affects hi-push::rtm

grpc-api default full? = tonic
http-api default full? = axum, base64, uuid
mongo default full? = futures, mongodb

Affects service::mongo, model::App.id, model::Channel.id, model::Token.id

mysql = sea-orm
cache

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

mongodb mongo

Enables mongodb

mongo

futures mongo
sea-orm mysql?

Enables sea-orm ^0.9.2

mysql

hyper fcm

Enables hyper ^0.14.20

fcm

hi-hyper-multipart fcm
multer fcm

Enables multer ^2.0.4

http fcm

Enables http ^0.2.8

Affects hi-push::http, hi-push::service

yup-oauth2 fcm

Enables yup-oauth2 ^7.0.1

httpcodec fcm
bytecodec fcm
lettre email

Enables lettre ^0.10.1

email

uuid apns fcm http-api

Enables uuid

apn

axum http-api

Enables axum ^0.5.16

http

base64 http-api

Enables base64 ^0.13.0

tonic grpc-api

Enables tonic ^0.8.0

grpc

flatten-json-object fcm wecom xiaomi

Enables flatten-json-object

xiaomi or huawei or fcm

oauth2 huawei

Enables oauth2

huawei