Actually compile without Bincode

This commit is contained in:
Danielle Hutzley
2022-06-26 16:41:22 -07:00
parent 18153e0fcc
commit 93817ba92f
2 changed files with 6 additions and 6 deletions

View File

@@ -50,10 +50,10 @@ pub struct Version {
/// A link to additional information about the version /// A link to additional information about the version
pub url: String, pub url: String,
/// The latest time a file in this version was updated /// The latest time a file in this version was updated
#[bincode(with_serde)] #[cfg_attr(feature = "bincode", bincode(with_serde))]
pub time: DateTime<Utc>, pub time: DateTime<Utc>,
/// The time this version was released /// The time this version was released
#[bincode(with_serde)] #[cfg_attr(feature = "bincode", bincode(with_serde))]
pub release_time: DateTime<Utc>, pub release_time: DateTime<Utc>,
/// The SHA1 hash of the additional information about the version /// The SHA1 hash of the additional information about the version
pub sha1: String, pub sha1: String,
@@ -362,10 +362,10 @@ pub struct VersionInfo {
/// The minimum version of the Minecraft Launcher that can run this version of the game /// The minimum version of the Minecraft Launcher that can run this version of the game
pub minimum_launcher_version: u32, pub minimum_launcher_version: u32,
/// The time that the version was released /// The time that the version was released
#[bincode(with_serde)] #[cfg_attr(feature = "bincode", bincode(with_serde))]
pub release_time: DateTime<Utc>, pub release_time: DateTime<Utc>,
/// The latest time a file in this version was updated /// The latest time a file in this version was updated
#[bincode(with_serde)] #[cfg_attr(feature = "bincode", bincode(with_serde))]
pub time: DateTime<Utc>, pub time: DateTime<Utc>,
#[serde(rename = "type")] #[serde(rename = "type")]
/// The type of version /// The type of version

View File

@@ -35,10 +35,10 @@ pub struct PartialVersionInfo {
/// The version ID this partial version inherits from /// The version ID this partial version inherits from
pub inherits_from: String, pub inherits_from: String,
/// The time that the version was released /// The time that the version was released
#[bincode(with_serde)] #[cfg_attr(feature = "bincode", bincode(with_serde))]
pub release_time: DateTime<Utc>, pub release_time: DateTime<Utc>,
/// The latest time a file in this version was updated /// The latest time a file in this version was updated
#[bincode(with_serde)] #[cfg_attr(feature = "bincode", bincode(with_serde))]
pub time: DateTime<Utc>, pub time: DateTime<Utc>,
#[serde(skip_serializing_if = "Option::is_none")] #[serde(skip_serializing_if = "Option::is_none")]
/// The classpath to the main class to launch the game /// The classpath to the main class to launch the game