Skip to content

release(0.16.4): dep bumps + doctest repairs#394

Merged
joaquinbejar merged 1 commit into
mainfrom
release-0.16.4
Apr 20, 2026
Merged

release(0.16.4): dep bumps + doctest repairs#394
joaquinbejar merged 1 commit into
mainfrom
release-0.16.4

Conversation

@joaquinbejar
Copy link
Copy Markdown
Owner

Summary

  • Bump workspace dependencies: `rust_decimal` 1.40 → 1.41, `rayon` 1.11 → 1.12, `uuid` 1.19 → 1.23, `tokio` 1.43 → 1.52.
  • Repair three doctests broken by the `NonZeroUsize` migration in 0.16.0:
    • `src/pricing/mod.rs`: `telegraph(&option, 1000, ..)` → `telegraph(&option, optionstratlib::nz!(1000), ..)`
    • `src/pricing/mod.rs`: `monte_carlo_option_pricing(&option, 2, 2)` → `monte_carlo_option_pricing(&option, nz!(2), nz!(2))`
    • `src/utils/others.rs` — `deterministic_rng` doctest uses `rand::RngExt` for `.random::()`.
  • Cargo-fmt side-effects on `async_ohlcv` / `cliquet_example`.

Tag `v0.16.4`, GitHub release, `make publish` follow immediately after merge.

Test plan

  • `cargo build --all-features` clean.
  • `cargo clippy --all-targets --all-features -- -D warnings` clean.
  • `cargo fmt --all --check`.
  • `cargo test --lib --all-features` — 3760 passed, 0 failed.
  • `cargo test --doc --all-features` — 205 passed, 0 failed (was 3 failed pre-bump).

- Bump workspace dependencies: `rust_decimal` 1.40 → 1.41,
  `rayon` 1.11 → 1.12, `uuid` 1.19 → 1.23, `tokio` 1.43 → 1.52.
- Repair three doctests broken by the NonZeroUsize migration in
  0.16.0: `pricing` module examples now wrap literal step /
  simulation counts with `nz!(..)`, and the `utils::deterministic_rng`
  doctest imports `rand::RngExt` for `.random::<u64>()`.
- Cargo-fmt side-effects on two example binaries.

`cargo test --all-features --workspace` — 3760 lib pass, 205 doc
pass, 0 fail.
@joaquinbejar joaquinbejar merged commit 123981c into main Apr 20, 2026
13 checks passed
@joaquinbejar joaquinbejar deleted the release-0.16.4 branch April 20, 2026 06:35
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/utils/others.rs 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant