fix: feature gate pyo3 reference

This commit is contained in:
zaaarf 2024-10-16 03:15:09 +02:00
parent 4b5ed06bb7
commit 8b2a2f2e2e
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B

View file

@ -12,7 +12,7 @@ pub struct User {
/// User unique identifier, should never change.
pub id: Uuid,
/// User name, can change but should be unique.
#[pyo3(get, set)]
#[cfg_attr(any(feature = "py", feature = "py-noabi"), pyo3(get, set))]
pub name: String,
}