[package]
edition = "2021"
rust-version = "1.85"
name = "wrapped-decimal"
version = "0.1.2"
build = false
include = [
"src/**/*",
"Cargo.toml",
"README.md",
"LICENSE*",
"CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "POD-safe 16-byte wrapper for rust_decimal::Decimal."
homepage = "https://github.com/ChiefWoods/solana-math"
documentation = "https://docs.rs/wrapped-decimal"
readme = "README.md"
keywords = [
"solana",
"decimal",
"math",
"serialization",
]
categories = [
"cryptography::cryptocurrencies",
"data-structures",
"mathematics",
]
license = "MIT"
repository = "https://github.com/ChiefWoods/solana-math"
[package.metadata.docs.rs]
all-features = true
[features]
anchor = ["dep:anchor-lang"]
default = []
idl-build = [
"anchor",
"anchor-lang/idl-build",
]
[lib]
name = "wrapped_decimal"
path = "src/lib.rs"
[dependencies.anchor-lang]
version = "1.0.1"
optional = true
[dependencies.bytemuck]
version = "1.20.0"
features = [
"derive",
"min_const_generics",
]
[dependencies.rust_decimal]
version = "1.41.0"
features = ["maths"]
[dev-dependencies.husky-rs]
version = "0.3.2"