Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ jobs:
if: ${{ matrix.variant == 'minimal_versions' }}
run: |
cargo generate-lockfile -Z minimal-versions
- name: Build rand_distr
run: |
cargo build --target ${{ matrix.target }} --features=serde
cargo build --target ${{ matrix.target }} --no-default-features
cargo build --target ${{ matrix.target }} --no-default-features --features=std,std_math
- name: Test rand_distr
run: |
cargo test --target ${{ matrix.target }} --features=serde
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Testing
- Added building the crate to CI

### Fixes
- Fix missing import for `no_std` builds

## [0.5.0] - 2025-01-27

### Dependencies and features
Expand Down
2 changes: 2 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
//! Math helper functions

use crate::ziggurat_tables;
#[allow(unused_imports)]
use num_traits::Float; // Used for `no_std` to get `f64::abs()` working before `rustc 1.84`
use rand::distr::hidden_export::IntoFloat;
use rand::Rng;

Expand Down
Loading