[package] name = "br-crypto" version = "0.2.1" edition = "2021" authors = ["Doraemon <7991156@qq.com>", "lhy <1034753021@qq.com>"] keywords = ["ba64", "jwt", "sha", "md5", "aes"] readme = "README.md" license = "MIT" exclude = ["INSTALL.md", "examples", "tests"] description = "This is an crypto" [features] br_base64 = ["base64", "br_encoding"] br_encoding = ["textcode", "encoding", "urlencoding", "mail-parser", "encoding_rs"] br_aes = ["br_base64", "libaes"] br_hash = ["md5", "sha256-rs", "hex"] br_hmac = ["hmac", "sha1", "sha2"] br_qp = ["quoted_printable"] br_jwt = ["br_base64", "br_hmac", "chrono", "json", "br_pkey"] br_hex = ["hex"] br_pkey = ["openssl", "br_base64"] default = ["br_base64", "br_encoding", "br_aes", "br_hash", "br_hmac", "br_qp", "br_jwt", "br_hex", "br_pkey"] [dependencies] log = "0.4.22" json = { version = "0.12.4", optional = true } chrono = { version = "0.4.38", default-features = false, features = ["clock"], optional = true } base64 = { version = "0.22.1", default-features = false, features = ["std"], optional = true } uuid = { version = "1.11", features = ["v4"] } md5 = { version = "0.7.0", optional = true } hmac = { version = "0.12.1", default-features = false, features = ["std"], optional = true } sha1 = { version = "0.10.6", default-features = false, features = ["std"], optional = true } sha2 = { version = "0.10.8", default-features = false, features = ["std"], optional = true } sha256-rs = { version = "1.0.1", optional = true } textcode = { version = "0.2.2", optional = true } mail-parser = { version = "0.9.1", optional = true } encoding = { version = "0.2.33", optional = true } encoding_rs = { version = "0.8.35", optional = true } libaes = { version = "0.7.0", optional = true } quoted_printable = { version = "0.5.1", default-features = false, features = ["std"], optional = true } urlencoding = { version = "2.1.3", optional = true } openssl = { version = "0.10", optional = true } hex = { version = "0.4.3", optional = true } [dev-dependencies] env_logger = "0.11.5"