diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d0dc06..1675eb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## v0.6.2 (2024-09-06) + +### Fix + +- **models_rs**: adding the missing field fileSize to the post resource + +### Refactor + +- **tokens_rs**: adding conditional compilation for an import + ## v0.6.1 (2024-09-06) ### Fix diff --git a/Cargo.lock b/Cargo.lock index 968289e..38dca4d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1590,7 +1590,7 @@ dependencies = [ [[package]] name = "szurubooru-client" -version = "0.6.1" +version = "0.6.2" dependencies = [ "base64", "bytes", diff --git a/szurubooru-client/CHANGELOG.md b/szurubooru-client/CHANGELOG.md index 5d0dc06..1675eb8 100644 --- a/szurubooru-client/CHANGELOG.md +++ b/szurubooru-client/CHANGELOG.md @@ -1,3 +1,13 @@ +## v0.6.2 (2024-09-06) + +### Fix + +- **models_rs**: adding the missing field fileSize to the post resource + +### Refactor + +- **tokens_rs**: adding conditional compilation for an import + ## v0.6.1 (2024-09-06) ### Fix diff --git a/szurubooru-client/Cargo.toml b/szurubooru-client/Cargo.toml index 7a03f8b..cc04d6b 100644 --- a/szurubooru-client/Cargo.toml +++ b/szurubooru-client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "szurubooru-client" -version = "0.6.1" +version = "0.6.2" edition = "2021" authors = ["Scott Lyons "] description = "A wrapper around the Szurubooru API, including type-safe Query and Sort tokens" diff --git a/szurubooru-client/src/models.rs b/szurubooru-client/src/models.rs index 0a295e9..5976d80 100644 --- a/szurubooru-client/src/models.rs +++ b/szurubooru-client/src/models.rs @@ -438,6 +438,8 @@ pub struct PostResource { #[serde(rename = "checksumMD5")] /// The MD5 file checksum pub checksum_md5: Option, + /// The size of the file + pub file_size: Option, /// The original width of the post content. pub canvas_width: Option, /// The original height of the post content. @@ -484,7 +486,7 @@ pub struct PostResource { /// useful for `