From 6d40fbee479b3d6db8432b561e19c3bac0b1bef9 Mon Sep 17 00:00:00 2001 From: asonix Date: Mon, 15 Apr 2024 15:31:31 -0500 Subject: [PATCH] Prepare 0.5.13 --- Cargo.lock | 2 +- Cargo.toml | 2 +- pict-rs.nix | 2 +- releases/0.5.13.md | 62 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 65 insertions(+), 3 deletions(-) create mode 100644 releases/0.5.13.md diff --git a/Cargo.lock b/Cargo.lock index e5a7754..e09cc6c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1804,7 +1804,7 @@ dependencies = [ [[package]] name = "pict-rs" -version = "0.5.12" +version = "0.5.13" dependencies = [ "actix-form-data", "actix-web", diff --git a/Cargo.toml b/Cargo.toml index 2d011cc..2ede348 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pict-rs" description = "A simple image hosting service" -version = "0.5.12" +version = "0.5.13" authors = ["asonix "] license = "AGPL-3.0" readme = "README.md" diff --git a/pict-rs.nix b/pict-rs.nix index 191ce78..cce1d59 100644 --- a/pict-rs.nix +++ b/pict-rs.nix @@ -11,7 +11,7 @@ rustPlatform.buildRustPackage { pname = "pict-rs"; - version = "0.5.12"; + version = "0.5.13"; src = ./.; cargoLock = { diff --git a/releases/0.5.13.md b/releases/0.5.13.md new file mode 100644 index 0000000..4ffa587 --- /dev/null +++ b/releases/0.5.13.md @@ -0,0 +1,62 @@ +# pict-rs 0.5.13 + +pict-rs is a simple image hosting microservice, designed to handle storing and retrieving images, +animations, and videos, as well as providing basic image processing functionality. + +## Overview + +pict-rs 0.5.13 is a maintenance release aiming to enable better logging in some scenarios. + +### Features + +- [Colorless Logging](#colorless-logging) + + +### Changes + +- [Remove Flume](#remove-flume) + + +## Upgrade Notes + +There are no significant changes from 0.5.12. Upgrading should be as simple as pulling a new version +of pict-rs. + + +## Descriptions + +### Colorless Logging + +When opting to use the `json` logger, the tracing subscriber automatically disables colored output. +This didn't remove colors from errors, though, and pict-rs hasn't had a way to disable colors while +using other log formats. pict-rs 0.5.13 introduces a new configuration value to remove colored +output from all logs regardless of logging format. + +With pict-rs.toml +```toml +[tracing.logging] +no_ansi = true +``` + +With environment variables +```bash +PICTRS__TRACING__LOGGING__NO_ANSI=true pict-rs run +``` + +With commandline flags +```bash +pict-rs --no-log-ansi run +``` + +Colors in logs can be useful, so I imagine this option won't be used much. There has been a request +for this functionality though and it's little cost to maintain. + + +### Remove Flume + +Recently I've been debugging a memory usage issue in another project of mine. I wasn't able to fully +track down the cause, but I did notice that removing the +[flume channel library](https://github.com/zesterer/flume) seemed to make the leak go away. Since I +also use flume in pict-rs, I'm opting to replace it with tokio's native channel implementation. This +may or may not improve memory usage, but it does reduce the depenency count and therefore build time +for pict-rs.