aboutsummaryrefslogtreecommitdiff
path: root/src/remote_storage.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/remote_storage.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/remote_storage.rs')
-rw-r--r--src/remote_storage.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/remote_storage.rs b/src/remote_storage.rs
index eddf3b8..0772ca8 100644
--- a/src/remote_storage.rs
+++ b/src/remote_storage.rs
@@ -250,7 +250,8 @@ impl <Manager> std::io::Seek for SteamFileReader<Manager> {
}
/// Name and size information about a file in the steam cloud
-#[derive(Clone, Debug, Serialize, Deserialize)]
+#[derive(Clone, Debug)]
+#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct SteamFileInfo {
/// The file name
pub name: String,