48 lines
1.6 KiB
TOML
48 lines
1.6 KiB
TOML
[package]
|
|
name = "rand_distr"
|
|
version = "0.5.0-alpha.1"
|
|
authors = ["The Rand Project Developers"]
|
|
license = "MIT OR Apache-2.0"
|
|
readme = "README.md"
|
|
repository = "https://github.com/rust-random/rand"
|
|
documentation = "https://docs.rs/rand_distr"
|
|
homepage = "https://rust-random.github.io/book"
|
|
description = """
|
|
Sampling from random number distributions
|
|
"""
|
|
keywords = ["random", "rng", "distribution", "probability"]
|
|
categories = ["algorithms", "no-std"]
|
|
edition = "2021"
|
|
rust-version = "1.61"
|
|
include = ["/src", "LICENSE-*", "README.md", "CHANGELOG.md", "COPYRIGHT"]
|
|
|
|
[package.metadata.docs.rs]
|
|
rustdoc-args = ["--cfg docsrs", "--generate-link-to-definition"]
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = ["alloc", "rand/std"]
|
|
alloc = ["rand/alloc"]
|
|
|
|
# Use std's floating-point arithmetic instead of libm.
|
|
# Note that any other crate depending on `num-traits`'s `std`
|
|
# feature (default-enabled) will have the same effect.
|
|
std_math = ["num-traits/std"]
|
|
|
|
serde1 = ["serde", "rand/serde1"]
|
|
|
|
[dependencies]
|
|
rand = { path = "..", version = "=0.9.0-alpha.1", default-features = false }
|
|
num-traits = { version = "0.2", default-features = false, features = ["libm"] }
|
|
serde = { version = "1.0.103", features = ["derive"], optional = true }
|
|
serde_with = { version = "3.6.1", optional = true }
|
|
|
|
[dev-dependencies]
|
|
rand_pcg = { version = "=0.9.0-alpha.1", path = "../rand_pcg" }
|
|
# For inline examples
|
|
rand = { path = "..", version = "=0.9.0-alpha.1", features = ["small_rng"] }
|
|
# Histogram implementation for testing uniformity
|
|
average = { version = "0.15", features = [ "std" ] }
|
|
# Special functions for testing distributions
|
|
special = "0.10.3"
|