Skip to content

Commit aafcd48

Browse files
committed
chore: bump
1 parent 364c29c commit aafcd48

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
## [0.2.4] - 2026-03-12
2+
3+
### Added
4+
- Exception guards (`try/catch`) on all C++ FFI boundary functions
5+
- Compile-time layout assertions (`static_assert`) for reinterpret_cast'd C++ types
6+
- Tests for text selection module
7+
- macOS support: platform-conditional C++ stdlib linkage (`c++` on macOS, `stdc++` on Linux)
8+
- Text selection support in `browse` example
9+
- `FontHandle` and `DrawContext` newtypes replacing bare `usize` in the API
10+
- Type-safe enums: `FontStyle`, `ListStyleType`, `BackgroundAttachment`, `BackgroundRepeat`, `TextAlign`, `TextDecorationLine`, `TextEmphasisPosition`
11+
- Default implementations for optional `DocumentContainer` methods (`load_image`, `get_image_size`, `draw_image`, `draw_solid_fill`, `draw_*_gradient`)
12+
- `Document::with_container_mut()` for safely mutating container state between document operations
13+
14+
### Changed
15+
- `DocumentContainer` trait: only `create_font`, `delete_font`, `text_width`, `draw_text`, `get_viewport`, and `get_media_features` are required; all other methods now have defaults
16+
- Pre-generated bindgen output; consumers no longer need `libclang` installed (regenerate with `--features buildtime-bindgen`)
17+
18+
### Fixed
19+
- Potential UB from C++ exceptions unwinding into Rust across FFI boundary
20+
- List marker drawing mapped to wrong CSS types (disc/circle/square)
21+
122
## [0.2.3] - 2026-02-19
223

324
### Added

0 commit comments

Comments
 (0)