mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-12-29 05:40:32 +00:00
Prepare 0.5.13
This commit is contained in:
parent
c4e99ef539
commit
6d40fbee47
4 changed files with 65 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1804,7 +1804,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pict-rs"
|
name = "pict-rs"
|
||||||
version = "0.5.12"
|
version = "0.5.13"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-form-data",
|
"actix-form-data",
|
||||||
"actix-web",
|
"actix-web",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "pict-rs"
|
name = "pict-rs"
|
||||||
description = "A simple image hosting service"
|
description = "A simple image hosting service"
|
||||||
version = "0.5.12"
|
version = "0.5.13"
|
||||||
authors = ["asonix <asonix@asonix.dog>"]
|
authors = ["asonix <asonix@asonix.dog>"]
|
||||||
license = "AGPL-3.0"
|
license = "AGPL-3.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage {
|
rustPlatform.buildRustPackage {
|
||||||
pname = "pict-rs";
|
pname = "pict-rs";
|
||||||
version = "0.5.12";
|
version = "0.5.13";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
cargoLock = {
|
cargoLock = {
|
||||||
|
|
62
releases/0.5.13.md
Normal file
62
releases/0.5.13.md
Normal file
|
@ -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.
|
Loading…
Reference in a new issue