[package]
edition = "2021"
rust-version = "1.85"
name = "basis-points"
version = "0.3.2"
build = false
include = [
"src/**/*",
"Cargo.toml",
"README.md",
"LICENSE*",
"CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Validated basis-points type with optional Decimal and Anchor support."
homepage = "https://github.com/ChiefWoods/solana-math"
documentation = "https://docs.rs/basis-points"
readme = "README.md"
keywords = [
"solana",
"math",
"basis-points",
"finance",
"defi",
]
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"]
codama = ["dep:codama"]
decimal = ["dep:rust_decimal"]
default = []
idl-build = [
"anchor",
"anchor-lang/idl-build",
]
[lib]
name = "basis_points"
path = "src/lib.rs"
[dependencies.anchor-lang]
version = "1.0.2"
optional = true
[dependencies.bytemuck]
version = "1.20.0"
features = [
"derive",
"min_const_generics",
]
[dependencies.codama]
version = "0.9.2"
optional = true
[dependencies.rust_decimal]
version = "1.42.0"
features = ["maths"]
optional = true
[dependencies.thiserror]
version = "2.0.18"
[dev-dependencies.husky-rs]
version = "0.3.3"