logprob 0.4.0

A wrapper around floats to handle log probabilities
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 = "2024"
name = "logprob"
version = "0.4.0"
authors = ["Michael Goodale"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A wrapper around floats to handle log probabilities"
readme = "README.md"
keywords = [
    "probability",
    "scientific-computing",
    "machine-learning",
    "f64",
    "float",
]
categories = [
    "science",
    "simulation",
    "mathematics",
    "no-std",
    "no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/michaelgoodale/logprob/"

[features]
alloc = []
default = ["std"]
serde = [
    "dep:serde",
    "std",
]
std = ["alloc"]

[lib]
name = "logprob"
path = "src/lib.rs"

[[test]]
name = "integrations"
path = "tests/integrations.rs"

[[bench]]
name = "allocating_log_sum_exp"
path = "benches/allocating_log_sum_exp.rs"
harness = false

[[bench]]
name = "math_ops"
path = "benches/math_ops.rs"
harness = false

[dependencies.num-traits]
version = "^0.2.19"
features = ["libm"]
default-features = false

[dependencies.serde]
version = "^1.0.228"
features = ["serde_derive"]
optional = true

[dev-dependencies.anyhow]
version = "1.0"

[dev-dependencies.approx]
version = "0.5.1"

[dev-dependencies.divan]
version = "0.1"

[dev-dependencies.rand]
version = "0.10"

[dev-dependencies.rand_chacha]
version = "0.10"