Skip to content

Commit

Permalink
fix building docs under ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matsadler committed Jun 30, 2024
1 parent 0937086 commit 4250b30
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

### Security

## [0.7.1] - 2024-06-30

### Fixed
- Building docs with Ruby 3.0

## [0.7.0] - 2024-06-30
### Added
- `Thread`, `Ruby::thread_create`/`thread_create_from_fn` and other thread APIs.
Expand Down
6 changes: 4 additions & 2 deletions src/fiber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ use rb_sys::rb_fiber_new;
#[cfg(ruby_gte_3_2)]
use rb_sys::rb_fiber_new_storage;
use rb_sys::{
rb_data_typed_object_wrap, rb_fiber_alive_p, rb_fiber_current, rb_fiber_raise,
rb_fiber_resume_kw, rb_fiber_transfer_kw, rb_fiber_yield_kw, rb_obj_is_fiber, VALUE,
rb_data_typed_object_wrap, rb_fiber_alive_p, rb_fiber_current, rb_fiber_resume_kw,
rb_fiber_yield_kw, VALUE,
};
#[cfg(ruby_gte_3_1)]
use rb_sys::{rb_fiber_raise, rb_fiber_transfer_kw, rb_obj_is_fiber};

#[cfg(any(ruby_gte_3_2, docsrs))]
use crate::r_hash::RHash;
Expand Down

0 comments on commit 4250b30

Please sign in to comment.