{"id":27766483,"url":"https://github.com/uggla/rust_dojo_03","last_synced_at":"2026-04-29T20:02:59.745Z","repository":{"id":233413810,"uuid":"779445690","full_name":"uggla/rust_dojo_03","owner":"uggla","description":"Coding dojo #3 in Rustlang","archived":false,"fork":false,"pushed_at":"2025-02-02T18:51:49.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T19:22:55.793Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uggla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-03-29T21:25:26.000Z","updated_at":"2025-03-30T17:28:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"497801b5-2193-4f9e-9e9b-e43aeebd4d9a","html_url":"https://github.com/uggla/rust_dojo_03","commit_stats":null,"previous_names":["uggla/dojo3","uggla/rust_dojo_03"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uggla/rust_dojo_03","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Frust_dojo_03","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Frust_dojo_03/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Frust_dojo_03/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Frust_dojo_03/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uggla","download_url":"https://codeload.github.com/uggla/rust_dojo_03/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Frust_dojo_03/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28732637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"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":[],"created_at":"2025-04-29T17:31:53.916Z","updated_at":"2026-01-24T17:33:42.722Z","avatar_url":"https://github.com/uggla.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coding Dojo #3\n\nA rust exercise to be done in a coding dojo.\n\nThe goal is to create a small\n[intro](https://en.wikipedia.org/wiki/Crack_intro).\n\n## Expectations\n\nGive participants some Rust insight that will give them\nmotivations to learn more.\nThis is also an experimentation to know if this approach could help people\nto start and learn Rust.\n\n## Instruction\n\n### Part 1\n\n- Create a starfield.\n  - ⚠️  (0,0) is not the screen center.\n  - Stars are darker and smaller in the center of the screen.\n  - Advice refactor to use modules.\n\n### Part  2\n\n- Create a sinus, rainbow scrolling text.\n  - Advice refactor to use a builder pattern.\n\n# Build and run instructions\n## Run Locally (mainly for development purposes)\n\n1. Clone the project\n\n```bash\n  git clone https://github.com/uggla/dojo3\n```\n\n2. Go to the project directory\n\n```bash\n  cd dojo3\n```\n\n### Native\n1. Install Rust following the instructions [here](https://www.rust-lang.org/fr/learn/get-started).\n\n   *Tips: the rustup method is the simplest one.*\n\n2. Install required library for macroquad\n\n* Ubuntu system dependencies\n```bash\napt install pkg-config libx11-dev libxi-dev libgl1-mesa-dev libasound2-dev\n```\n\n* Fedora system dependencies\n```bash\ndnf install libX11-devel libXi-devel mesa-libGL-devel alsa-lib-devel\n```\n\n* Windows and MacOS system\n```\nNo dependencies are required for Windows or MacOS\n```\n\n3. Run\n```bash\ncargo run --release\n```\n\n#### Wasm32 client\n\n1. Follow the above instruction of the native build.\n\n2. Install basic-http-server\n```bash\ncargo install basic-http-server\n```\n\n3. Add the wasm32 compilation target\n```bash\nrustup target add wasm32-unknown-unknown\n```\n\n4. Run\n```bash\ncargo build --target wasm32-unknown-unknown --release\n```\n\n5. Serve the files and open the browser\n```bash\nbasic-http-server\nxdg-open http://127.0.0.1:4000\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuggla%2Frust_dojo_03","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuggla%2Frust_dojo_03","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuggla%2Frust_dojo_03/lists"}