diff --git a/proxmox-auth-api/src/auth_key.rs b/proxmox-auth-api/src/auth_key.rs index f42ed714..733ffba9 100644 --- a/proxmox-auth-api/src/auth_key.rs +++ b/proxmox-auth-api/src/auth_key.rs @@ -208,6 +208,7 @@ impl HMACKey { // This is needed for legacy CSRF token verifyication. // // TODO: remove once all dependent products had a major version release (PBS) + #[cfg(feature = "api")] pub(crate) fn as_bytes(&self) -> Result, Error> { // workaround to get access to the the bytes behind the key. self.key