1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
# Copyright © 2018–2026 Trevor Spiteri
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
[package]
name = "fixed"
version = "1.30.0"
categories = ["algorithms", "embedded", "mathematics", "no-std"]
description = "Fixed-point numbers."
documentation = "https://docs.rs/fixed"
edition = "2024"
keywords = ["dsp", "embedded", "fixed", "math", "numerics"]
license = "MIT/Apache-2.0"
readme = "README.md"
repository = "https://gitlab.com/tspiteri/fixed"
rust-version = "1.85"
[dependencies]
arbitrary = { optional = true, version = "1" }
az = "1.2.1"
borsh = { default-features = false, optional = true, version = "1" }
bytemuck = "1.2"
defmt = { optional = true, version = ">= 0.3.10, <= 1" }
half = { default-features = false, version = ">= 1.8, < 3" }
num-traits = { default-features = false, features = ["i128"], optional = true, version = "0.2.18" }
serde = { default-features = false, optional = true, version = "1.0.210" }
typenum = "1.14"
[features]
arbitrary = ["dep:arbitrary"]
borsh = ["dep:borsh"]
# enable if target does not support mutable statics.
compat-readonly-static = []
defmt = ["dep:defmt"]
serde = ["dep:serde"]
serde-str = ["serde", "serde/std", "std"]
std = []
# experimental features
nightly-float = []
num-traits = ["dep:num-traits"]
# deprecated features
az = []
f16 = []
# undocumented features
fail-on-warnings = []
[package.metadata.docs.rs]
features = ["arbitrary", "borsh", "num-traits", "serde", "std"]
|