rand/rand_distr/Cargo.toml

48 lines
1.6 KiB
TOML
Raw Normal View History

[package]
name = "rand_distr"
2024-03-18 19:08:37 +00:00
version = "0.5.0-alpha.1"
authors = ["The Rand Project Developers"]
2019-08-08 11:44:35 +03:00
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/rust-random/rand"
2020-12-15 10:08:34 +00:00
documentation = "https://docs.rs/rand_distr"
2020-12-15 10:13:17 +00:00
homepage = "https://rust-random.github.io/book"
description = """
Sampling from random number distributions
"""
keywords = ["random", "rng", "distribution", "probability"]
2021-03-13 19:07:59 -03:00
categories = ["algorithms", "no-std"]
edition = "2021"
2024-03-22 12:33:33 +00:00
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"]
2020-08-02 00:32:53 +03:00
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.
2021-03-27 00:19:45 -03:00
std_math = ["num-traits/std"]
serde1 = ["serde", "rand/serde1"]
2021-07-08 14:51:55 +01:00
[dependencies]
2024-03-18 19:08:37 +00:00
rand = { path = "..", version = "=0.9.0-alpha.1", default-features = false }
2021-07-08 14:51:55 +01:00
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 }
2019-05-16 11:56:54 +02:00
[dev-dependencies]
2024-03-18 19:08:37 +00:00
rand_pcg = { version = "=0.9.0-alpha.1", path = "../rand_pcg" }
# For inline examples
2024-03-18 19:08:37 +00:00
rand = { path = "..", version = "=0.9.0-alpha.1", features = ["small_rng"] }
2019-05-16 11:56:54 +02:00
# Histogram implementation for testing uniformity
average = { version = "0.15", features = [ "std" ] }
2021-09-05 21:06:52 +02:00
# Special functions for testing distributions
special = "0.10.3"