aboutsummaryrefslogtreecommitdiff
path: root/src/ugc.rs
diff options
context:
space:
mode:
authorFlaise <[email protected]>2019-08-02 20:30:48 -0500
committerMatthew Collins <[email protected]>2019-08-03 09:08:03 +0100
commitf109df710c3715b1bf863c5b3f1ac1f8a53b39ed (patch)
tree6927c655417ede7c48e168892bf3cae32512cc80 /src/ugc.rs
parentImplemented Serialize, Deserialize and other common traits where appropriate (diff)
downloadsteamworks-rs-f109df710c3715b1bf863c5b3f1ac1f8a53b39ed.tar.xz
steamworks-rs-f109df710c3715b1bf863c5b3f1ac1f8a53b39ed.zip
Made serde dependency optional
Diffstat (limited to 'src/ugc.rs')
-rw-r--r--src/ugc.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ugc.rs b/src/ugc.rs
index 7e6fa75..7634ab8 100644
--- a/src/ugc.rs
+++ b/src/ugc.rs
@@ -20,7 +20,8 @@ const CALLBACK_REMOTE_STORAGE_BASE_ID: i32 = 1300;
const UGCQueryHandleInvalid: u64 = 0xffffffffffffffff;
/// Worshop item ID
-#[derive(Clone, Copy, Debug, Ord, PartialOrd, Eq, PartialEq, Hash, Serialize, Deserialize)]
+#[derive(Clone, Copy, Debug, Ord, PartialOrd, Eq, PartialEq, Hash)]
+#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct PublishedFileId(pub u64);
/// Workshop item types to search for