{"id":30833318,"url":"https://github.com/pnstack/template-rust","last_synced_at":"2025-09-06T16:49:47.123Z","repository":{"id":312295145,"uuid":"848213469","full_name":"pnstack/template-rust","owner":"pnstack","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-29T15:55:41.000Z","size":27,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-29T18:43:38.689Z","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/pnstack.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["nvp2k1"]}},"created_at":"2024-08-27T10:51:35.000Z","updated_at":"2024-08-27T10:52:50.000Z","dependencies_parsed_at":"2025-08-29T18:43:41.090Z","dependency_job_id":"13c9966e-d1a6-4153-896b-6c9ced77c6d4","html_url":"https://github.com/pnstack/template-rust","commit_stats":null,"previous_names":["pnstack/template-rust"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/pnstack/template-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnstack%2Ftemplate-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnstack%2Ftemplate-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnstack%2Ftemplate-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnstack%2Ftemplate-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pnstack","download_url":"https://codeload.github.com/pnstack/template-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnstack%2Ftemplate-rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273933917,"owners_count":25193601,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-09-06T16:49:45.994Z","updated_at":"2025-09-06T16:49:47.114Z","avatar_url":"https://github.com/pnstack.png","language":"Rust","funding_links":["https://github.com/sponsors/nvp2k1"],"categories":[],"sub_categories":[],"readme":"# Template Rust\n\nA Rust project template featuring a todo application with SQLite database and terminal user interface (TUI).\n\n## Features\n\n- 📝 Todo management with SQLite persistence\n- 🖥️ Interactive Terminal User Interface (TUI)\n- 🔧 Command Line Interface (CLI)\n- 🧪 Comprehensive test suite\n- 🚀 CI/CD with GitHub Actions\n- 📦 Cross-platform releases\n- 🔒 Security auditing\n\n## Installation\n\n### From Source\n\n```bash\ngit clone https://github.com/pnstack/template-rust.git\ncd template-rust\ncargo build --release\n```\n\n### From Releases\n\nDownload the latest binary from the [Releases](https://github.com/pnstack/template-rust/releases) page.\n\n## Usage\n\n### Command Line Interface\n\n```bash\n# Show help\n./template-rust --help\n\n# Add a new todo\n./template-rust add \"Buy groceries\" --description \"Milk, eggs, bread\"\n\n# List all todos\n./template-rust list\n\n# List only completed todos\n./template-rust list --completed\n\n# List only pending todos\n./template-rust list --pending\n\n# Complete a todo (use the ID from list command)\n./template-rust complete \u003ctodo-id\u003e\n\n# Delete a todo\n./template-rust delete \u003ctodo-id\u003e\n\n# Start interactive TUI (default mode)\n./template-rust tui\n```\n\n### Terminal User Interface (TUI)\n\nStart the interactive mode:\n\n```bash\n./template-rust tui\n```\n\n#### TUI Commands:\n- `h` - Show help\n- `n` - Add new todo\n- `d` - Delete selected todo\n- `c` - Toggle todo completion status\n- `a` - Show all todos\n- `p` - Show pending todos only\n- `f` - Show completed todos only\n- `↑↓` - Navigate todos\n- `q` - Quit application\n\n## Project Structure\n\n```\ntemplate-rust/\n├── .github/workflows/    # CI/CD workflows\n├── src/\n│   ├── database/         # Database layer\n│   ├── models/           # Data models\n│   ├── tui/              # Terminal UI\n│   ├── lib.rs            # Library root\n│   └── main.rs           # CLI application\n├── tests/                # Integration tests\n├── docs/                 # Documentation\n└── examples/             # Usage examples\n```\n\n## Development\n\n### Prerequisites\n\n- Rust 1.70 or later\n- SQLite3\n\n### Building\n\n```bash\ncargo build\n```\n\n### Running Tests\n\n```bash\ncargo test\n```\n\n### Running Clippy (Linter)\n\n```bash\ncargo clippy -- -D warnings\n```\n\n### Formatting Code\n\n```bash\ncargo fmt\n```\n\n## Database\n\nThe application uses SQLite for persistence. By default, it creates a `todo.db` file in the current directory. You can specify a different database path:\n\n```bash\n./template-rust --database /path/to/your/todos.db list\n```\n\nFor testing with in-memory database:\n\n```bash\n./template-rust --database \":memory:\" add \"Test todo\"\n```\n\n## CI/CD\n\nThe project includes comprehensive GitHub Actions workflows:\n\n- **CI**: Build, test, lint, and format checks on multiple platforms\n- **Security**: Weekly security audits with `cargo audit`\n- **Release**: Automated binary releases for Linux, macOS, and Windows\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Add tests for new functionality\n5. Ensure all tests pass\n6. Submit a pull request\n\n## License\n\nThis project is licensed under either of\n\n- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnstack%2Ftemplate-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpnstack%2Ftemplate-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnstack%2Ftemplate-rust/lists"}