{"id":27294517,"url":"https://github.com/nerdalert/rust-examples","last_synced_at":"2025-06-24T19:35:21.901Z","repository":{"id":146439640,"uuid":"228249976","full_name":"nerdalert/rust-examples","owner":"nerdalert","description":"A collection of Rust examples for learning Rust","archived":false,"fork":false,"pushed_at":"2022-09-13T18:44:32.000Z","size":76,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T13:58:56.309Z","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":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nerdalert.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,"zenodo":null}},"created_at":"2019-12-15T20:47:13.000Z","updated_at":"2024-10-18T03:12:12.000Z","dependencies_parsed_at":"2023-03-30T11:07:35.475Z","dependency_job_id":null,"html_url":"https://github.com/nerdalert/rust-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nerdalert/rust-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdalert%2Frust-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdalert%2Frust-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdalert%2Frust-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdalert%2Frust-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerdalert","download_url":"https://codeload.github.com/nerdalert/rust-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdalert%2Frust-examples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261743710,"owners_count":23203214,"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":"2025-04-11T22:53:18.823Z","updated_at":"2025-06-24T19:35:21.879Z","avatar_url":"https://github.com/nerdalert.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust-examples\nA collection of Rust examples for learning Rust for beginners to start getting a feel for Rust. I have recently started playing around with Rust and wanted to post code snippets for the basic concepts and mechanics for those who learn by hacking like I do.\n\n# Install Rust\n\nThe only prerequisite is to have Rust installed on your machine. Install it with the following commands:\n\n```\n# Download and install Rust\ncurl https://sh.rustup.rs -sSf | sh\nsource ~/.cargo/env \n# You can test the installtion with the following\ncargo new rust1 --bin\ncd rust1/\ncargo run ./\n```\n\n# Clone the repo and run the example snippets\n\nTo get started with the snippets, simply clone the repo:\n\n```\ngit clone https://github.com/nerdalert/rust-examples.git\ncd rust-examples\n```\n\nThen cd into any of the directories and run the app with `cargo run`\n\n- Below is an example of how to run the code in this repo:\n\n```\n(='o'=) [rust-examples]$ cd hashmap \n(='o'=) [hashmaps]$ cargo run\n   Compiling hashmaps v0.1.0 (/Users/brent/rust/tutorials-brent/hashmaps)\n    Finished dev [unoptimized + debuginfo] target(s) in 0.57s\n     Running `target/debug/hashmaps`\nServer count -\u003e 4\nThe IP for server1 is -\u003e \"172.17.0.10\"\nThe new IP for server1 is -\u003e \"192.168.200.40\"\nserver1 : 192.168.200.40\nserver3 : 10.100.10.20\nserver4 : 10.200.10.30\nserver2 : 192.168.100.10\n```\n\nHappy hacking family!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerdalert%2Frust-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerdalert%2Frust-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerdalert%2Frust-examples/lists"}