Cargo Features

[dependencies]
serde_tran = { version = "1.1.0", default-features = false, features = ["no-hash-validate", "serde_json", "base64", "bs58", "flate2"] }
default = base64, serde_json

by default, we enable json and base64

no-hash-validate

note: when json is enabled, please enable excactly one of [base64, bs58] when no-hash-validate is enabled, the hash will not be applied to serialized data

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.

serde_json default

Affects json::to_json, json::from_json_slice, json::to_json_base64, json::to_json_base58

base64 default

Affects basex::to_base64, basex::from_base64, json::to_json_base64

bs58 implicit feature

Enables bs58

bs58:

Another Base58 codec implementation

Affects basex::to_base58, basex::from_base58, json::to_json_base58

flate2 implicit feature