From 8b2a2f2e2e78025a0e160ca29a65bde54325a09f Mon Sep 17 00:00:00 2001 From: zaaarf Date: Wed, 16 Oct 2024 03:15:09 +0200 Subject: [PATCH] fix: feature gate pyo3 reference --- src/api/user.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/user.rs b/src/api/user.rs index 47d133c..c6a6a05 100644 --- a/src/api/user.rs +++ b/src/api/user.rs @@ -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, }