{"id":13502931,"url":"https://github.com/epilys/rsqlite3","last_synced_at":"2025-06-15T09:36:40.426Z","repository":{"id":99586522,"uuid":"423131590","full_name":"epilys/rsqlite3","owner":"epilys","description":"sqlite3 Rewritten in RiiR Rust 🦀🦀🦀 /s","archived":false,"fork":false,"pushed_at":"2021-10-31T11:46:23.000Z","size":1648,"stargazers_count":159,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-27T20:39:16.050Z","etag":null,"topics":["c2rust","rust","satire","sqlite3"],"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/epilys.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}},"created_at":"2021-10-31T11:42:29.000Z","updated_at":"2025-02-07T10:27:02.000Z","dependencies_parsed_at":"2023-03-13T02:01:16.670Z","dependency_job_id":null,"html_url":"https://github.com/epilys/rsqlite3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epilys%2Frsqlite3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epilys%2Frsqlite3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epilys%2Frsqlite3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epilys%2Frsqlite3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epilys","download_url":"https://codeload.github.com/epilys/rsqlite3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837274,"owners_count":21169373,"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":["c2rust","rust","satire","sqlite3"],"created_at":"2024-07-31T22:02:30.780Z","updated_at":"2025-04-14T06:50:46.173Z","avatar_url":"https://github.com/epilys.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# sqlite3 Rewritten in RiiR Rust 🦀🦀🦀\n\nFinally, one of the best written software paired with one of the best writable programming language‽ Fearless and memory safe, since the uncountable amount of `unsafe {}` blocks makes you not care anymore.\n\n## Build and run\n\n```shell\n$ cargo +nightly build --release\n# ... bunch of stuff I choose not to understand/read\nwarning: `rsqlite3` (bin \"rsqlite3\") generated 37 warnings (24 duplicates)\n    Finished release [optimized] target(s) in 39.84s\n$ ./target/release/rsqlite3\n-- Loading resources from /home/epilys/.sqliterc\nSQLite version 3.37.0 2021-10-17 10:31:09\nEnter \".help\" for usage hints.\nConnected to a transient in-memory database.\nUse \".open FILENAME\" to reopen on a persistent database.\nsqlite\u003e .open rrrrrruuuuuust.db\nsqlite\u003e CREATE TABLE opinions(x);\nsqlite\u003e insert into opinions(x) values (hex(randomblob(16)));\nsqlite\u003e insert into opinions(x) values (hex(randomblob(16)));\nsqlite\u003e insert into opinions(x) values (hex(randomblob(16)));\nsqlite\u003e insert into opinions(x) values (hex(randomblob(16)));\nsqlite\u003e select * from opinions;\nx\n--------------------------------\n343D4BE24D07A96F8550B0942F664A6C\nD6289536E4A8057EB44754358EACD31A\nB4CA8E714CB57B11E7336263D214F30F\nA6491CA289ABF90EB2D76F5E1F919272\nsqlite\u003e PRAGMA journal_mode = wal;\njournal_mode\n------------\nwal\nsqlite\u003e PRAGMA integrity_check;\nintegrity_check\n---------------\nok\nsqlite\u003e VACUUM;\nsqlite\u003e ^D\n```\n\n## Wait, what?\n\nThis is just the sqlite3 code passed throught the\n[`c2rust`](https://c2rust.com/) transpiler, along with some cleanup from me.\nI've found no way to hook it to sqlite3's testing harnesses yet so I doubt it's\ncompletely functional; but opening the shell seems to work.\n\nI am suspicious that a lot of code under ifdefs or not is lost through the transpilation, because the binary size difference is substantial:\n\n```shell\n$ du -sh $(which sqlite3)\n9.5M    /home/epilys/.local/bin/sqlite3\n$ du -sh target/release/rsqlite3\n5.1M    target/release/rsqlite3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepilys%2Frsqlite3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepilys%2Frsqlite3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepilys%2Frsqlite3/lists"}