{"id":16005343,"url":"https://github.com/eld/turbopump","last_synced_at":"2026-05-18T00:31:58.725Z","repository":{"id":70331691,"uuid":"300463526","full_name":"ELD/turbopump","owner":"ELD","description":"Session middleware and driver for the Rocket web framework (https://rocket.rs)","archived":false,"fork":false,"pushed_at":"2021-04-14T14:24:12.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-12T18:53:38.791Z","etag":null,"topics":["cookies","rocket","rust","security","sessions","web"],"latest_commit_sha":null,"homepage":"","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/ELD.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,"zenodo":null}},"created_at":"2020-10-02T00:51:24.000Z","updated_at":"2023-07-30T00:05:57.000Z","dependencies_parsed_at":"2023-03-06T13:00:13.042Z","dependency_job_id":null,"html_url":"https://github.com/ELD/turbopump","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ELD/turbopump","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ELD%2Fturbopump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ELD%2Fturbopump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ELD%2Fturbopump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ELD%2Fturbopump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ELD","download_url":"https://codeload.github.com/ELD/turbopump/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ELD%2Fturbopump/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33160461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cookies","rocket","rust","security","sessions","web"],"created_at":"2024-10-08T11:04:04.974Z","updated_at":"2026-05-18T00:31:58.720Z","avatar_url":"https://github.com/ELD.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Turbopump\n\nPrimitives for stateful sessions in Rocket. Providing multiple drivers:\n\n- Cookie\n- Database\n- Cache (i.e. Redis, etc)\n- In-Memory\n\n### What belongs in the session store?\n\n- Checking for auth? No. Auth is separate and tied to the session data, but not part of the actual session management.\n- Reading and writing the session source? Yes.\n- What belongs in the session store?\n  - A unique identifier\n  - Plain data\n- Session operations\n  - Start (implicit - onResponse?)\n  - Read (implicit - RequestGuard)\n  - Destroy (explicit? destroy entire cookie and all references to session)\n  - Clear (clear the data in the cookie)\n\n### Blueprint\n\n- SessionFairing\n  - Actual piece that's attached to the Rocket instance\n  - on_attach -\u003e store a `SessionHandler\u003cS: SessionStore\u003e` instance in Rocket's shared state\n  - on_response -\u003e set the session cookie if it hasn't been set yet\n- SessionStore\n  - Stores the actual session data (or proxies it to another store, i.e. Database, etc)\n  - Basic session operations\n    - load\n    - store\n    - clear\n    - destroy\n- Session\n\n  - Actual type with a FromRequest impl\n  - Contains the data stored by the handler\n  - ```rust\n      #[derive(Serialize, Deserialize)]\n      struct Session {\n        session_id: SessionId,\n        data: HashMap\u003cString, String\u003e\n      }\n\n      impl FromRequest for Session {...}\n\n      impl Default for Session {...}\n    ```\n\n### Supported versions\n\n- Rocket 0.5 and beyond - async only\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feld%2Fturbopump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feld%2Fturbopump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feld%2Fturbopump/lists"}