2019-03-27 16:12:09 +00:00
|
|
|
[package]
|
|
|
|
name = "rand_distr"
|
2024-03-18 19:08:37 +00:00
|
|
|
version = "0.5.0-alpha.1"
|
2019-03-27 16:12:09 +00:00
|
|
|
authors = ["The Rand Project Developers"]
|
2019-08-08 11:44:35 +03:00
|
|
|
license = "MIT OR Apache-2.0"
|
2019-03-27 16:12:09 +00:00
|
|
|
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"
|
2019-03-27 16:12:09 +00:00
|
|
|
description = """
|
|
|
|
Sampling from random number distributions
|
|
|
|
"""
|
|
|
|
keywords = ["random", "rng", "distribution", "probability"]
|
2021-03-13 19:07:59 -03:00
|
|
|
categories = ["algorithms", "no-std"]
|
2022-12-06 19:01:10 +00:00
|
|
|
edition = "2021"
|
2024-03-22 12:33:33 +00:00
|
|
|
rust-version = "1.61"
|
2024-07-08 20:16:19 +02:00
|
|
|
include = ["/src", "LICENSE-*", "README.md", "CHANGELOG.md", "COPYRIGHT"]
|
2019-03-27 16:12:09 +00:00
|
|
|
|
2023-07-29 09:12:57 +02:00
|
|
|
[package.metadata.docs.rs]
|
2024-05-10 13:46:26 +03:00
|
|
|
rustdoc-args = ["--cfg docsrs", "--generate-link-to-definition"]
|
2023-07-29 09:12:57 +02:00
|
|
|
|
2020-08-01 16:34:37 +03:00
|
|
|
[features]
|
|
|
|
default = ["std"]
|
2021-03-20 14:25:15 -03:00
|
|
|
std = ["alloc", "rand/std"]
|
2020-08-02 00:32:53 +03:00
|
|
|
alloc = ["rand/alloc"]
|
2024-04-10 15:45:58 +01:00
|
|
|
|
|
|
|
# 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"]
|
2024-04-10 15:45:58 +01:00
|
|
|
|
2021-07-08 15:09:53 +01:00
|
|
|
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 }
|
2024-02-18 10:20:46 +00:00
|
|
|
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" }
|
2020-08-01 16:34:37 +03:00
|
|
|
# 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
|
2024-04-02 15:45:29 +01:00
|
|
|
average = { version = "0.15", features = [ "std" ] }
|
2021-09-05 21:06:52 +02:00
|
|
|
# Special functions for testing distributions
|
2024-02-13 11:33:39 +00:00
|
|
|
special = "0.10.3"
|