{"id":16405678,"url":"https://github.com/umut-sahin/rust-examples","last_synced_at":"2025-10-26T17:31:41.559Z","repository":{"id":145635105,"uuid":"198856804","full_name":"umut-sahin/rust-examples","owner":"umut-sahin","description":"Collection of examples in Rust to show how to get things done in an idiomatic way","archived":false,"fork":false,"pushed_at":"2019-08-16T12:19:09.000Z","size":37,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T21:52:57.483Z","etag":null,"topics":["examples","idiomatic","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/umut-sahin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-25T15:27:23.000Z","updated_at":"2021-06-25T14:27:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"b92697d7-1b44-42f4-8de9-e8a16563dd1e","html_url":"https://github.com/umut-sahin/rust-examples","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umut-sahin%2Frust-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umut-sahin%2Frust-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umut-sahin%2Frust-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umut-sahin%2Frust-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umut-sahin","download_url":"https://codeload.github.com/umut-sahin/rust-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238375256,"owners_count":19461571,"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":["examples","idiomatic","rust"],"created_at":"2024-10-11T06:06:57.302Z","updated_at":"2025-10-26T17:31:36.299Z","avatar_url":"https://github.com/umut-sahin.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eRust Examples\u003c/h1\u003e\n  Collection of examples in \u003ca href=\"https://www.rust-lang.org/\"\u003eRust\u003c/a\u003e to show how to get things done in an idiomatic way\n\u003c/div\u003e\n\n## Installing\n\nYou need to have [Rust] **v1.34.0** or higher installed to run the examples.\n\nSome examples depend on external crates from [crates.io], but everything is taken care of by cargo, so you don't need to perform any additional steps.\nJust clone the repository, using the following commands, and you are good to go.\n\n```\n$ git clone https://github.com/umut-sahin/rust-examples.git\n$ cd rust-examples\n```\n\n## Building\n\nYou can use the following command to build every single example.\n\n```\n$ cargo build --all\n```\n\nNote that with this command cargo will download and compile every additional package for every example.\nSo it may take some time.\n\n## Running a specific example\n\n```\n$ cargo run -q --package \u003cexample-name\u003e\n```\n\nAlso, you can pass arguments like so\n\n```\n$ cargo run -q --package \u003cexample-name\u003e -- [arguments...]\n```\n\nNote that there are some examples, which are in the form of a library, therefore, does not come with an executable.\nFor those examples, you may use the test command like so\n\n```\n$ cargo test -q --package \u003cexample-name\u003e\n```\n\n## Available examples\n\n- [brainfuck-interpreter]\n- [command-line-arguments]\n- [memory-mapped-io]\n- [operator-overloading]\n- [parking-threads]\n- [read-from-console]\n- [threads]\n- [write-to-console]\n\n## Changelog\n\nSee [CHANGELOG].\n\n## License\n\nThis repository is released under [MIT license].\nPlease see [LICENSE] for details.\n\n## Contributing\n\nContributions are welcome!\nPlease see [CONTRIBUTING] for guidance.\n\n## Authors\n\nSee [AUTHORS].\n\n\n[//]: # (Links)\n\n[AUTHORS]:\n  https://github.com/umut-sahin/rust-examples/blob/master/AUTHORS.md\n[brainfuck-interpreter]:\n  https://github.com/umut-sahin/rust-examples/tree/master/brainfuck-interpreter\n[CHANGELOG]:\n  https://github.com/umut-sahin/rust-examples/blob/master/CHANGELOG.md\n[command-line-arguments]:\n  https://github.com/umut-sahin/rust-examples/tree/master/command-line-arguments\n[CONTRIBUTING]:\n  https://github.com/umut-sahin/rust-examples/blob/master/CONTRIBUTING.md\n[crates.io]:\n  https://crates.io/\n[LICENSE]:\n  https://github.com/umut-sahin/rust-examples/blob/master/LICENSE\n[memory-mapped-io]:\n  https://github.com/umut-sahin/rust-examples/tree/master/memory-mapped-io\n[MIT License]:\n  https://tldrlegal.com/license/mit-license\n[operator-overloading]:\n  https://github.com/umut-sahin/rust-examples/tree/master/operator-overloading\n[parking-threads]:\n  https://github.com/umut-sahin/rust-examples/tree/master/parking-threads\n[read-from-console]:\n  https://github.com/umut-sahin/rust-examples/tree/master/read-from-console\n[Rust]:\n  https://www.rust-lang.org/\n[threads]:\n  https://github.com/umut-sahin/rust-examples/tree/master/threads\n[write-to-console]:\n  https://github.com/umut-sahin/rust-examples/tree/master/write-to-console\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumut-sahin%2Frust-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumut-sahin%2Frust-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumut-sahin%2Frust-examples/lists"}