Skip to content

Add no_std flag, hide blocking retrys behind std flag#125

Merged
Xuanwo merged 7 commits intoXuanwo:mainfrom
adrian-kong:adrian/no_std
Aug 31, 2024
Merged

Add no_std flag, hide blocking retrys behind std flag#125
Xuanwo merged 7 commits intoXuanwo:mainfrom
adrian-kong:adrian/no_std

Conversation

@adrian-kong
Copy link
Copy Markdown
Contributor

nice library
resolves #105

Changes:

  • Makes all no_std but blocking implementatin behind std due to thread sleep
  • Adds /.idea to gitignore

@Xuanwo
Copy link
Copy Markdown
Owner

Xuanwo commented Aug 27, 2024

Thanks a lot for the contribution!

@Xuanwo Xuanwo marked this pull request as draft August 27, 2024 12:54
@Xuanwo
Copy link
Copy Markdown
Owner

Xuanwo commented Aug 30, 2024

Hi, I have added blocking sleeper in #138. Would you like to try again?

/// The default implementation of `Sleeper` when no features are enabled.
///
/// It will fail to compile if a containing [`Retry`][crate::Retry] is `.await`ed without calling [`Retry::sleep`][crate::Retry::sleep] to provide a valid sleeper.
#[cfg(all(not(feature = "tokio-sleep"), not(feature = "gloo-timers-sleep")))]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

huh this was not compiling for me

@adrian-kong adrian-kong requested a review from Xuanwo August 31, 2024 07:01
Copy link
Copy Markdown
Owner

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thanks!

@Xuanwo Xuanwo marked this pull request as ready for review August 31, 2024 15:13
@Xuanwo Xuanwo merged commit a5ca057 into Xuanwo:main Aug 31, 2024
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.

Make backon available with no-std

2 participants