Skip to content

release(0.16.3): bump + CHANGELOG for #385/#386#393

Merged
joaquinbejar merged 6 commits into
mainfrom
release-0.16.3
Apr 20, 2026
Merged

release(0.16.3): bump + CHANGELOG for #385/#386#393
joaquinbejar merged 6 commits into
mainfrom
release-0.16.3

Conversation

@joaquinbejar
Copy link
Copy Markdown
Owner

Summary

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

Test plan

  • `cargo build --lib` on bumped version.
  • `cargo readme` — no README diff.

Bump version to `0.16.3` and document the example-runtime fixes that
landed in #392. Tag + GitHub release + `make publish` follow
immediately after merge.
…icing example

- Added `setup_logger` to initialize logging.
- Replaced all `println!` calls with `info!` for structured logging.
…ral and async_chain_ops

- Added `setup_logger` to initialize logging in `async_chain_ops`.
- Replaced all `println!` calls with `info!` to ensure structured logging consistency.
…ync_ohlcv example

- Added `setup_logger` to initialize structured logging.
- Replaced all `println!` calls with `info!` and `error!` where appropriate for logging consistency.
…logging

- Added `setup_logger` to enable structured logging.
- Replaced `println!` and `eprintln!` calls with `tracing::{info, error}` for consistency.
…es and metrics

- Updated code to use `tracing::info!` for structured logging consistency.
- Replaced `println!` calls in `volatility_smile`, `implied_volatility`, `risk_reversal`, and other affected modules.
- Ensures uniform logging practices across all examples and libraries.
@joaquinbejar joaquinbejar requested a review from Copilot April 20, 2026 06:02
@joaquinbejar joaquinbejar merged commit 3ba1dcb into main Apr 20, 2026
14 checks passed
@joaquinbejar joaquinbejar deleted the release-0.16.3 branch April 20, 2026 06:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Release-oriented PR to publish optionstratlib v0.16.3, documenting the example-runtime fixes from #385/#386 (landed via #392), while also aligning example output with the crate’s tracing-based logging approach.

Changes:

  • Bump crate version to 0.16.3.
  • Add 0.16.3 entry to CHANGELOG.md (hourly simulation grids + reduced brute-force scan).
  • Replace println!/eprintln! with tracing logging (info!/error!) in several docs/examples and initialize logging in examples.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
Cargo.toml Version bump to 0.16.3.
CHANGELOG.md Adds v0.16.3 release notes and updates compare links.
src/strategies/delta_neutral/portfolio.rs Doc snippet switches from println! to info!.
src/strategies/delta_neutral/model.rs Doc snippets switch from println! to info!.
src/model/leg/mod.rs Module docs example switches from println! to info!.
src/metrics/risk/risk_reversal.rs Doc snippet switches from println! to info!.
src/metrics/risk/implied_volatility.rs Doc snippet switches from println! to info!.
src/metrics/risk/dollar_gamma.rs Doc snippet switches from println! to info!.
examples/examples_simulation/src/bin/unified_pricing.rs Initialize logging + use info! for output.
examples/examples_exotics/src/bin/cliquet_example.rs Initialize logging + use info!/error! for output.
examples/examples_curves/src/bin/volatility_smile.rs Commented-out test logging uses info!.
examples/examples_chain/src/bin/async_ohlcv.rs Initialize logging + use info!/error! for output.
examples/examples_chain/src/bin/async_chain_ops.rs Initialize logging + use info! for output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/model/leg/mod.rs
//! // Both legs can be handled uniformly via LegAble trait
//! use optionstratlib::model::leg::LegAble;
//! println!("Spot delta: {}", spot_leg.delta()?);
//! info!("Spot delta: {}", spot_leg.delta()?);
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doctest example now uses info! but doesn’t import the macro (e.g. use tracing::info;) or qualify it (tracing::info!). Since this code block is marked as rust (not ignore/no_run), cargo test will try to compile it and it will fail. Please make the snippet self-contained by importing/qualifying info! (and optionally calling setup_logger() if you expect output).

Suggested change
//! info!("Spot delta: {}", spot_leg.delta()?);
//! tracing::info!("Spot delta: {}", spot_leg.delta()?);

Copilot uses AI. Check for mistakes.
Comment thread Cargo.toml
Comment on lines 1 to 4
[package]
name = "optionstratlib"
version = "0.16.2"
version = "0.16.3"
edition = "2024"
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description says this is just a version bump + CHANGELOG entry, but this PR also modifies multiple library doc snippets and example binaries (switching println!/eprintln! to tracing + setup_logger). Please update the PR description to reflect these additional changes, or split them into a separate PR to keep the release bump focused.

Copilot uses AI. Check for mistakes.
@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/strategies/delta_neutral/model.rs 61.51% <ø> (ø)
src/strategies/delta_neutral/portfolio.rs 68.93% <ø> (ø)
🚀 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.

2 participants