Registry / other / rand-derive

rand-derive

JSON →
library0.5.0rscratesunverified

`#[derive(Rand)]` macro (deprecated).

# Cargo.toml [dependencies] rand_derive = "0.5.0"
INSTALL
IMPORT
SIG · RAND-DERIVE
R
rand-derive
otherrustv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Rand
use rand_derive::Rand;

Derives the Rand trait for a struct (deprecated).

use rand_derive::Rand; #[derive(Rand)] struct Point { x: f64, y: f64 }
Debug
Known issues
breakingThis crate is deprecated; use `rand::distributions::Standard` instead.
fix
Replace `#[derive(Rand)]` with manual implementation using `Standard` distribution.
affects: >=0.5.0
Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
rand-derive — cargo add rand-derive · libregistry