diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..eb6fab8 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,3 @@ +[env] +ICF_KEY = "09ca5efd30c9aaef3804d0a7e3fa7120" +ICF_IV = "b155c22c2e7f0491fa7f0fdc217aff90" diff --git a/Cargo.lock b/Cargo.lock index 1c8647c..513c432 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -294,7 +294,7 @@ dependencies = [ [[package]] name = "icf-reader" -version = "0.1.0" +version = "0.1.1" dependencies = [ "aes", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 8e2275c..dc03785 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "icf-reader" -version = "0.1.0" +version = "0.1.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/icf/models.rs b/src/icf/models.rs index ad1ac7a..166042a 100644 --- a/src/icf/models.rs +++ b/src/icf/models.rs @@ -26,12 +26,12 @@ pub struct IcfInnerData { #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct IcfOptionData { - #[serde(default = "empty_string")] + #[serde(skip, default = "empty_string")] pub app_id: String, pub option_id: String, - #[serde(default = "empty_version")] + #[serde(skip, default = "empty_version")] pub required_system_version: Version, pub datetime: NaiveDateTime, @@ -39,7 +39,7 @@ pub struct IcfOptionData { #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct IcfPatchData { - #[serde(default = "empty_string")] + #[serde(skip, default = "empty_string")] pub id: String, pub sequence_number: u8,