refactor(tokens_rs): adding conditional compilation for an import

This commit is contained in:
Scott Lyons 2024-09-06 10:06:52 -07:00
commit 2c5385ff47

View file

@ -2,6 +2,7 @@
//! warned that the types here help with the Type safety for the Tag names only. It does //! warned that the types here help with the Type safety for the Tag names only. It does
//! not guarantee that a given API endpoint will support the given tag. //! not guarantee that a given API endpoint will support the given tag.
#[cfg(feature = "python")]
use crate::models::{PostSafety, PostType, SnapshotOperationType, SnapshotResourceType, UserRank}; use crate::models::{PostSafety, PostType, SnapshotOperationType, SnapshotResourceType, UserRank};
#[cfg(feature = "python")] #[cfg(feature = "python")]
use pyo3::{exceptions::PyValueError, prelude::*}; use pyo3::{exceptions::PyValueError, prelude::*};