Fix for webassembly

This commit is contained in:
Andras Schmelczer 2024-12-06 20:47:06 +00:00
parent 701425ba02
commit 9b5c663740
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
3 changed files with 32 additions and 22 deletions

View file

@ -1,3 +1,9 @@
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
/// A token is a string that has been normalised in some way.
/// The normalised form is used for comparison, while the original form is used for applying Operations.
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, Clone)]
pub struct Token<T>
where