{"id":17997324,"url":"https://github.com/danielhe4rt/rust-basic-course-scylladb","last_synced_at":"2025-06-11T13:04:01.049Z","repository":{"id":257009175,"uuid":"857077879","full_name":"danielhe4rt/rust-basic-course-scylladb","owner":"danielhe4rt","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-13T18:59:24.000Z","size":3,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T19:54:37.112Z","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/danielhe4rt.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":"2024-09-13T18:55:35.000Z","updated_at":"2024-12-30T18:39:15.000Z","dependencies_parsed_at":"2024-09-14T09:53:12.000Z","dependency_job_id":"6ad8f68f-6450-45dd-80bf-93734decca34","html_url":"https://github.com/danielhe4rt/rust-basic-course-scylladb","commit_stats":null,"previous_names":["danielhe4rt/rust-basic-course-scylladb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielhe4rt%2Frust-basic-course-scylladb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielhe4rt%2Frust-basic-course-scylladb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielhe4rt%2Frust-basic-course-scylladb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielhe4rt%2Frust-basic-course-scylladb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielhe4rt","download_url":"https://codeload.github.com/danielhe4rt/rust-basic-course-scylladb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielhe4rt%2Frust-basic-course-scylladb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259270854,"owners_count":22832086,"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-29T21:17:41.249Z","updated_at":"2025-06-11T13:04:00.991Z","avatar_url":"https://github.com/danielhe4rt.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Course with ScyllaDB\n\nWelcome to the 'How to Write Basic Apps Course' featuring the Rust programming language!\n\nStart by running the following command to bring up the cluster:\n\n```bash\ndocker-compose up -d\n```\n\nEnsure it's running by accessing the CQL shell and querying the authenticated users:\n\n```bash\ndocker exec -it uni-scylla-1 cqlsh\n```\n\n```sql\nSELECT username, driver_name from system.clients;\n```\n\n## Prerequisites\n\nThe ScyllaDB driver is built on top of the Tokio crate, so it will be a dependency. In this session, we’ll use three\nprimary crates:\n\n- **Tokio** – Provides the async runtime for executing database queries.\n- **Scylla** – The Rust driver for ScyllaDB and Cassandra.\n- **Anyhow** – Simplifies error handling.\n\n```toml\n[dependencies]\ntokio = { version = \"1\", features = [\"full\"] }\nscylla = \"0.14.0\"\nanyhow = \"1.0\"\n```\n\nAfter setting up your dependencies, convert the main function to be asynchronous using the Tokio macro.\n\n```rust\n#[tokio::main]\nasync fn main() -\u003e anyhow::Result\u003c()\u003e {\n    println!(\"Hello, world!\");\n    Ok(())\n}\n```\n\nWith the basis settled, take the course instructions and good luck!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielhe4rt%2Frust-basic-course-scylladb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielhe4rt%2Frust-basic-course-scylladb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielhe4rt%2Frust-basic-course-scylladb/lists"}