Skip to content

rand_distr: no_std support #922

@dhardy

Description

@dhardy

As @burdges and @kennytm recently pointed out, rand_distr currently depends on std for various mathematical functions (trig, exp).

Status: std provides these functions over the platform's native libm lib.

Available alternative: libm is a pure-Rust port of MUSL's libm. We could target this, perhaps behind a feature flag. I'm not sure whether we want to go this route.

See also: Portability of floats. Would use of the pure-Rust libm implementation address this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-questionParticipation: opinions wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions