mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-24 19:07:44 +03:00
[PR #2276] [MERGED] Update Rocket to 0.5 and async, and compile on stable #3048
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/2276
Author: @dani-garcia
Created: 1/31/2022
Status: ✅ Merged
Merged: 2/28/2022
Merged by: @dani-garcia
Base:
main← Head:async📝 Commits (6)
2d5f172Update to rocket 0.5 and made code async, missing updating all db calls, that are currently blocking775d07eAsync/Awaited all db methodsf38926dUpd Dockerfiles, crates. Fixed rust 2018 idiomsfd9693bawait the mutex in db_run and use block_in_place for it's contents5125fdbIgnore unused fieldd781981formatting📊 Changes
61 files changed (+2740 additions, -2215 deletions)
View changed files
📝
Cargo.lock(+514 -338)📝
Cargo.toml(+15 -14)➖
Rocket.toml(+0 -2)📝
docker/Dockerfile.j2(+4 -1)📝
docker/amd64/Dockerfile(+4 -1)📝
docker/amd64/Dockerfile.alpine(+4 -1)📝
docker/amd64/Dockerfile.buildx(+4 -1)📝
docker/amd64/Dockerfile.buildx.alpine(+4 -1)📝
docker/arm64/Dockerfile(+4 -1)📝
docker/arm64/Dockerfile.alpine(+4 -1)📝
docker/arm64/Dockerfile.buildx(+4 -1)📝
docker/arm64/Dockerfile.buildx.alpine(+4 -1)📝
docker/armv6/Dockerfile(+4 -1)📝
docker/armv6/Dockerfile.alpine(+4 -1)📝
docker/armv6/Dockerfile.buildx(+4 -1)📝
docker/armv6/Dockerfile.buildx.alpine(+4 -1)📝
docker/armv7/Dockerfile(+4 -1)📝
docker/armv7/Dockerfile.alpine(+4 -1)📝
docker/armv7/Dockerfile.buildx(+4 -1)📝
docker/armv7/Dockerfile.buildx.alpine(+4 -1)...and 41 more files
📄 Description
Rebased on top of the latest changes in main.
Seeing as there is no release of a final Rocket 0.5 in the near future, I think it's time to consider merging this as it's a big patch and hard to keep in sync.
There shouldn't be any major breaking changes, but Rocket 0.5 brings a new configuration system so that might break things for users depending on them. That said, the ones in use by most people (ROCKET_ADDRESS, ROCKET_PORT and ROCKET_TLS) are the same as before. ROCKET_ENV has changed to ROCKET_PROFILE, so anyone using that must update their config.
The file uploads are now also handled by rocket directly, and uploaded to a configurable temp directory first, before being moved to the attachments or sends folder. We should document that the temp directory and the attachments and sends folder must be in the same partition/mount point, otherwise the file move will fail.
Also I just noticed that I'm hardcoding the listen address to 0.0.0.0, I will change that before pushing.
Pending changes:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.