release(0.16.3): bump + CHANGELOG for #385/#386#393
Conversation
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.
There was a problem hiding this comment.
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.3entry toCHANGELOG.md(hourly simulation grids + reduced brute-force scan). - Replace
println!/eprintln!withtracinglogging (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.
| //! // 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()?); |
There was a problem hiding this comment.
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).
| //! info!("Spot delta: {}", spot_leg.delta()?); | |
| //! tracing::info!("Spot delta: {}", spot_leg.delta()?); |
| [package] | ||
| name = "optionstratlib" | ||
| version = "0.16.2" | ||
| version = "0.16.3" | ||
| edition = "2024" |
There was a problem hiding this comment.
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.
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
Summary
Tag `v0.16.3`, GitHub release, `make publish` follow immediately after merge.
Test plan