Documentation about Key::derive_from lists wrong feature name #2646
Labels
A-axum-extra
C-bug
Category: This is a bug.
S-blocked
Status: marked as blocked ❌ on something else such as a PR or other implementation work.
T-docs
Topic: documentation
Bug Report
Version
Latest
Platform
N/A but I'm on Linux
Crates
axum-extra
Description
The documentation for
Key::derive_from
(https://docs.rs/axum-extra/latest/axum_extra/extract/cookie/struct.Key.html#method.derive_from) says its gated behind the feature key-expansion. It should be cookie-key-expansion instead. fwict this code is reexported from the cookie crate. However in the process of reexporting the code axum_extra modifies the name of the feature flag, adding the cookie- prefix. This is not reflected in the documentation, which lists key-expansion as the feature to enable. I'm not sure if there is something we can do to make sure the docs are updating when re-exporting the method or is this a limitation of docs.rs?
The text was updated successfully, but these errors were encountered: