{"id":50517528,"url":"https://github.com/iamteppei/rust-study","last_synced_at":"2026-06-03T01:02:31.628Z","repository":{"id":361338819,"uuid":"1248216000","full_name":"iamteppei/rust-study","owner":"iamteppei","description":"A rust study project","archived":false,"fork":false,"pushed_at":"2026-05-30T06:27:16.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T08:12:21.472Z","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/iamteppei.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}},"created_at":"2026-05-24T10:48:29.000Z","updated_at":"2026-05-30T06:27:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/iamteppei/rust-study","commit_stats":null,"previous_names":["iamteppei/rust-study"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/iamteppei/rust-study","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamteppei%2Frust-study","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamteppei%2Frust-study/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamteppei%2Frust-study/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamteppei%2Frust-study/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamteppei","download_url":"https://codeload.github.com/iamteppei/rust-study/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamteppei%2Frust-study/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33843611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"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":"2026-06-03T01:02:30.294Z","updated_at":"2026-06-03T01:02:31.618Z","avatar_url":"https://github.com/iamteppei.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Study\n\nA hands-on Rust learning project exploring core language concepts through annotated code examples.\n\n## Topics Covered\n\n### Ownership\n\nLocated in `src/ownership/study.rs`.\n\n- **Stack vs Heap** — fixed-size data lives on the stack; dynamically sized data lives on the heap and is accessed via pointers.\n- **Move vs Copy** — assigning a heap-allocated value (e.g. `String`) moves ownership; primitive types (e.g. `i32`) are copied.\n- **Borrowing** — use `\u0026variable` to pass a reference without transferring ownership (immutable by default).\n- **Mutable references** — use `\u0026mut variable` to allow mutation; only one mutable reference to a value is allowed at a time (prevents data races).\n- **Reference rules** — you can have multiple immutable references OR one mutable reference, but not both simultaneously.\n- **Dangling references** — Rust's compiler prevents returning references to values that have been dropped.\n- **Slice type** — a reference to a contiguous sequence of elements in a collection; holds no ownership.\n\n## Project Structure\n\n```\nsrc/\n  main.rs              # Entry point\n  ownership/\n    study.rs           # Ownership, borrowing, and slice concepts\n```\n\n## Local Setup\n\n### Prerequisites\n\n- [Rust \u0026 Cargo](https://rustup.rs/)\n\n### Run\n\n```bash\ncargo run\n```\n\n### Watch mode (auto-rerun on file change)\n\nInstall `cargo-watch`:\n\n```bash\ncargo install cargo-watch\n```\n\nStart modules\n\n```bash\n# ownership\ncargo watch -w src -x \"test ownership\"\n\n# pattern matching\ncargo watch -w src -x \"test pattern_matching\"\n\n# functional programming\ncargo watch -w src -x \"test functional_programming -- --nocapture\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamteppei%2Frust-study","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamteppei%2Frust-study","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamteppei%2Frust-study/lists"}