mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-20 11:21:14 +00:00
Prepare 0.5.10 release
This commit is contained in:
parent
bcc7773433
commit
5f850f8c86
5 changed files with 39 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1819,7 +1819,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pict-rs"
|
name = "pict-rs"
|
||||||
version = "0.5.9"
|
version = "0.5.10"
|
||||||
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.9"
|
version = "0.5.10"
|
||||||
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.9";
|
version = "0.5.10";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
cargoLock = {
|
cargoLock = {
|
||||||
|
|
|
@ -37,6 +37,11 @@ max_file_count = 1
|
||||||
# default: The system's advertised temporary directory ("/tmp" on most linuxes)
|
# default: The system's advertised temporary directory ("/tmp" on most linuxes)
|
||||||
temporary_directory = "/tmp"
|
temporary_directory = "/tmp"
|
||||||
|
|
||||||
|
## Optional: whether to delete the contents of $temporary_directory/pict-rs on launch
|
||||||
|
# environment variable: PICTRS__SERVER__CLEANUP_TEMPORARY_DIRECTORY
|
||||||
|
# default: true
|
||||||
|
cleanup_temporary_directory = true
|
||||||
|
|
||||||
## Optional: path to server certificate to enable TLS
|
## Optional: path to server certificate to enable TLS
|
||||||
# environment variable: PICTRS__SERVER__CERTIFICATE
|
# environment variable: PICTRS__SERVER__CERTIFICATE
|
||||||
# default: empty
|
# default: empty
|
||||||
|
|
31
releases/0.5.10.md
Normal file
31
releases/0.5.10.md
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# pict-rs 0.5.10
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
pict-rs 0.5.10 is a small release with changes to how pict-rs handles temporary files.
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
- [Temporary File Cleanup](#temporary-file-cleanup)
|
||||||
|
|
||||||
|
|
||||||
|
## Upgrade Notes
|
||||||
|
|
||||||
|
There are no significant changes from 0.5.9. Upgrading should be as simple as pulling the new
|
||||||
|
version.
|
||||||
|
|
||||||
|
|
||||||
|
## Descriptions
|
||||||
|
|
||||||
|
### Temporary File Cleanup
|
||||||
|
|
||||||
|
pict-rs now nests its temporary files inside a `pict-rs` toplevel temporary folder. This is useful
|
||||||
|
because pict-rs 0.5.10 introduces a new behavior: it will completely delete that folder and its
|
||||||
|
contents on launch. If you are running multiple copies of pict-rs on the same host and they share
|
||||||
|
your temporary folder, this might cause problems. In that scenario, this behavior can be disabled by
|
||||||
|
setting `PICTRS__SERVER__CLEANUP_TEMPORARY_DIRECTORY=false` or passing
|
||||||
|
`--no-cleanup-temporary-directory` on the commandline.
|
||||||
|
|
||||||
|
This new behavior has been introduced in order to better clean up after crashes. If pict-rs is
|
||||||
|
killed while processing media, maybe due to an OOM, it will leave files behind in the temporary
|
||||||
|
directory. This can cause the temporary directory to grow, leading to memory or disk problems.
|
Loading…
Reference in a new issue