[package] name = "sanctum-solana-serde" description = "Collection of newtypes for common solana types to implement serde on for easy use in web applications" version = "1.0.1" edition = "2021" authors = ["sanctum"] license = "MIT OR Apache-2.0" repository = "https://github.com/igneous-labs/sanctum-solana-serde.git" readme = "README.md" keywords = ["sanctum", "solana", "serde"] categories = ["web-programming"] include = ["/src", "/README.md"] [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [features] default = [ "b58_pubkey", "b58_signature", "b64_buffer", "b64_legacy_tx", "b64_versioned_tx", "decimal_str", "u64_str", ] derive_more_simple_newtype = [ "derive_more/as_mut", "derive_more/as_ref", "derive_more/deref", "derive_more/deref_mut", "derive_more/from", "derive_more/into", ] b58_pubkey = ["solana-program", "derive_more_simple_newtype"] b58_signature = ["solana-sdk", "derive_more_simple_newtype"] b64_buffer = [ "data-encoding", "derive_more_simple_newtype", "derive_more/into_iterator", ] b64_legacy_tx = [ "b64_buffer", "bincode", "solana-sdk", "solana-program", # only used for tests. Part of solana-sdk anyway, so no cost "derive_more_simple_newtype", ] b64_versioned_tx = [ "b64_buffer", "bincode", "solana-sdk", "solana-program", # only used for tests. Part of solana-sdk anyway, so no cost "derive_more_simple_newtype", ] decimal_str = ["rust_decimal", "derive_more_simple_newtype"] u64_str = ["derive_more_simple_newtype"] [dependencies] bincode = { version = "^1", optional = true } data-encoding = { version = "^2", optional = true } # into_iterator introduced in 0.99 derive_more = { version = ">=0.99", default-features = false, optional = true } rust_decimal = { version = "^1", optional = true } serde = "^1" solana-program = { version = "^1", optional = true } solana-sdk = { version = "^1", optional = true } utoipa = { version = "^4", optional = true } [dev-dependencies] serde_json = "^1"