basis-points 0.3.0

Validated basis-points type with optional Decimal and Anchor support.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.85"
name = "basis-points"
version = "0.3.0"
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"]
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.1"
optional = true

[dependencies.bytemuck]
version = "1.20.0"
features = [
    "derive",
    "min_const_generics",
]

[dependencies.rust_decimal]
version = "1.41.0"
features = ["maths"]
optional = true

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.husky-rs]
version = "0.3.2"