mirror of
https://github.com/matze/wastebin.git
synced 2026-04-25 08:36:00 +03:00
[PR #153] [CLOSED] feat: generate human-readable url path #181
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wastebin-matze#181
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/matze/wastebin/pull/153
Author: @mokurin000
Created: 4/5/2025
Status: ❌ Closed
Base:
master← Head:human-readable📝 Commits (6)
3dcbacefeat: generate human-readable url path43e8b0dUpdate textarea properties874fe97ci: fix ci & support more platforms902d389perf: stay neat and high-performance9debf3aMerge branch 'matze:master' into human-readable2fad4c2enhance: smplify call-side code of id generation📊 Changes
14 files changed (+352 additions, -185 deletions)
View changed files
📝
Cargo.lock(+66 -33)📝
README.md(+1 -0)📝
crates/wastebin_core/Cargo.toml(+11 -1)📝
crates/wastebin_core/src/db.rs(+118 -94)📝
crates/wastebin_core/src/id.rs(+109 -38)📝
crates/wastebin_ctl/Cargo.toml(+1 -0)📝
crates/wastebin_ctl/src/main.rs(+4 -3)📝
crates/wastebin_server/src/handlers/download.rs(+1 -1)📝
crates/wastebin_server/src/handlers/html/paste.rs(+1 -1)📝
crates/wastebin_server/src/handlers/html/qr.rs(+1 -1)📝
crates/wastebin_server/src/handlers/insert/api.rs(+18 -5)📝
crates/wastebin_server/src/handlers/insert/form.rs(+14 -7)📝
crates/wastebin_server/src/handlers/raw.rs(+1 -1)📝
crates/wastebin_server/templates/index.html(+6 -0)📄 Description
This implements #152,
Performance
See HTML reports in wastebin-bench.zip.
Tested on Windows 11, with
i7-12700H, sqlite backend in memory mode.Other changes
existsmethod for db will not work, due to TOCTOU problem)TODO
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.