Skip to content

Conversation

@Dr-Emann
Copy link

@Dr-Emann Dr-Emann commented May 8, 2024

There wasn't actually a way to create a StaticChannel with a non-default recycle policy. This adds a with_recycle associated function for both async and blocking StaticChannels

@Dr-Emann

This comment was marked as outdated.

@Urgau
Copy link

Urgau commented May 23, 2024

Heads up, with the release of rust-lang/cargo#13913 (in nightly-2024-05-19), Cargo has now gain the ability to declare --check-cfg args directly inside the [lints] table with [lints.rust.unexpected_cfgs.check-cfg]1:

Cargo.toml:

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(foo)'] }

Note that the diagnostic output of the lint has been updated to suggest the [lints] approach first. You can use it to guide you through the --check-cfg arguments that may need to be added.

Footnotes

  1. take effect on Rust 1.80 (current nightly), is ignored on Rust 1.79 (current beta), and produce an unused warning below

@Dr-Emann Dr-Emann force-pushed the create_static_blocking_with_recycle branch from 0b13563 to cc7e99e Compare November 3, 2024 16:20
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