{"id":16687285,"url":"https://github.com/highb/rocket-pastebin","last_synced_at":"2025-03-13T16:25:47.311Z","repository":{"id":212229293,"uuid":"730983197","full_name":"highb/rocket-pastebin","owner":"highb","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T08:34:03.000Z","size":5,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T11:48:03.809Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/highb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-13T05:21:34.000Z","updated_at":"2023-12-13T05:36:07.000Z","dependencies_parsed_at":"2023-12-15T09:44:11.776Z","dependency_job_id":null,"html_url":"https://github.com/highb/rocket-pastebin","commit_stats":null,"previous_names":["highb/rocket-pastebin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highb%2Frocket-pastebin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highb%2Frocket-pastebin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highb%2Frocket-pastebin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highb%2Frocket-pastebin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/highb","download_url":"https://codeload.github.com/highb/rocket-pastebin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243439738,"owners_count":20291174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T15:08:37.407Z","updated_at":"2025-03-13T16:25:47.247Z","avatar_url":"https://github.com/highb.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rocket-pastebin\n\n## Usage\n\n`cargo run`\n\n## What is this?\n\nCreated by following the [Rocket tutorial](https://rocket.rs/v0.5/guide/pastebin-tutorial/).\n\n## What are some ways to go from here?\n\n* Add a web form to the index where users can manually input new pastes. Accept the form at POST /. Use format and/or rank to specify which of the two POST / routes should be called.\n* Support deletion of pastes by adding a new DELETE /\u003cid\u003e route. Use PasteId to validate \u003cid\u003e.\n* Indicate partial uploads with a 206 partial status code. If the user uploads a paste that meets or exceeds the allowed limit, return a 206 partial status code. Otherwise, return a 201 created status code.\n* Set the Content-Type of the return value in upload and retrieve to text/plain.\n* Return a unique \"key\" after each upload and require that the key is present and matches when doing deletion. Use one of Rocket's core traits to do the key validation.\n* Add a PUT /\u003cid\u003e route that allows a user with the key for \u003cid\u003e to replace the existing paste, if any.\n* Add a new route, GET /\u003cid\u003e/\u003clang\u003e that syntax highlights the paste with ID \u003cid\u003e for language \u003clang\u003e. If \u003clang\u003e is not a known language, do no highlighting. Possibly validate \u003clang\u003e with FromParam.\n* Use the local module to write unit tests for your pastebin.\n* Dispatch a thread before launching Rocket in main that periodically cleans up idling old pastes in upload/.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighb%2Frocket-pastebin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhighb%2Frocket-pastebin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighb%2Frocket-pastebin/lists"}