Cargo Features

[dependencies]
paybox = { version = "0.0.2", default-features = false, features = ["wechat_pay_v3", "wechat_pay_h5", "wechat_pay_app", "alipay", "alipay_aes", "alipay_cert", "third_party", "pay", "postgres", "chrono", "time", "platform", "tokio", "reqwest", "derive_new"] }
default = chrono, derive_new, platform, reqwest, tokio

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

wechat_pay_v3 = wechat_pay_app, wechat_pay_h5, wechat_pay_jsapi

Affects paybox::wechat

wechat_pay_jsapi wechat_pay_h5 wechat_pay_v3? = pay

Affects paybox::wechat

wechat_pay_app wechat_pay_v3? = pay

Affects paybox::wechat

alipay = pay

Affects paybox::alipay

alipay_aes

Enables aes and ctr

Affects config::AlipayKeys.aes

alipay_cert

Affects config::AliPubKey.root_cert_sn, config::AliPubKey.app_cert_sn

third_party

Affects config::AlipayKeys.app_auth_token

pay alipay? wechat_pay_app? wechat_pay_h5? wechat_pay_jsapi?
postgres

Enables postgres-types

chrono default

Enables chrono

Affects day::timestamp

time

Enables time

platform default

Affects v3::merchant, command::ApplyRefundCommand.sub_mchid, refund_notify::DecodedRefundNotifySource.sub_mchid, close_transaction::CloseSubOrderParams.sub_mchid, close_transaction::CloseSubOrderParams.sub_appid, create_transaction::CreateTransactionParams.sub_mchid, notify::DecodedNotifyResource.sp_appid, notify::DecodedNotifyResource.sp_mchid, notify::DecodedNotifyResource.sub_mchid, transaction::Transaction.sub_appid, transaction::Transaction.sub_mchid

tokio default

Enables tokio

reqwest default

Enables reqwest ^0.11.22 and tokio

derive_new default

Enables derive-new