Skip to main content

Module deprecation

Module deprecation 

Source
Expand description

Compile-time warnings for deprecated #[miniextendr] options (#2117).

A proc macro can’t emit a warning on stable Rust, but code that names a #[deprecated] item can. The option parsers record the span of an explicit worker, and the #[miniextendr] entry point appends one reference to miniextendr_api::worker::WORKER_OPTION per recorded span, so rustc warns at the option itself. #![allow(deprecated)] on the enclosing module silences it.

ConstantsΒ§

WORKER_OPTIONS πŸ”’

FunctionsΒ§

take πŸ”’
The references that make rustc warn at each worker option recorded since the last call.
worker_option πŸ”’
Record an explicit worker option written at span.