{"id":18763289,"url":"https://github.com/eiberham/rustlang-drills","last_synced_at":"2026-02-06T13:02:44.244Z","repository":{"id":62844140,"uuid":"320138514","full_name":"eiberham/rustlang-drills","owner":"eiberham","description":":crab: Rust lang coding exercises","archived":false,"fork":false,"pushed_at":"2024-12-25T15:58:31.000Z","size":11831,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-25T16:29:21.043Z","etag":null,"topics":["aes-encryption","rsa-encryption","rust-lang","wasm","wasm-bindgen"],"latest_commit_sha":null,"homepage":"","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/eiberham.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":"2020-12-10T02:38:18.000Z","updated_at":"2024-12-25T15:58:35.000Z","dependencies_parsed_at":"2024-08-12T02:52:53.285Z","dependency_job_id":null,"html_url":"https://github.com/eiberham/rustlang-drills","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiberham%2Frustlang-drills","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiberham%2Frustlang-drills/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiberham%2Frustlang-drills/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiberham%2Frustlang-drills/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eiberham","download_url":"https://codeload.github.com/eiberham/rustlang-drills/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231703794,"owners_count":18413754,"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":["aes-encryption","rsa-encryption","rust-lang","wasm","wasm-bindgen"],"created_at":"2024-11-07T18:25:37.805Z","updated_at":"2026-02-06T13:02:44.163Z","avatar_url":"https://github.com/eiberham.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust lang exercises\n\n## Personal tips and drills in my journey as a beginner rustacean\n\nTo install rust lang run:\n\n```console\n$ curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path \n$ sudo vim $HOME/.bash_profile\n```\n\nThen add `source ~/.cargo/env` to your .bash_profile\n\nTo check rust version run: \n\n```console\n$ rustc --version\n```\n\nTo read the rust documentation locally in the browser run `rustup doc`\n\n***Cargo*** is the dependency management tool for rust lang, to check the cargo version simply run:\n\n```console\n$ cargo --version\n```\n\nTo create a new cargo project run:\n\n```console\n$ cargo new sample_project\n```\n\nTo create a new cargo project without git init:\n\n```console\n$ cargo new --vcs none sample_project\n```\n\n### Building \u0026 executing programs\n\nIn order to build the program run the following command:\n\n```console\n$ cargo build\n```\n\nThis command will generate the ***Cargo.lock*** file which keeps track of the dependencies in the program and also will generate an executable file which is either for release or debug depending on the presence of the ***--release*** flag.\n\nIf you want to build \u0026 run in one step you can use the following command:\n\n```console\n$ cargo run\n```\n\nTo check if your program compiles simply run check which is faster than a build as it does not generate an executable file:\n\n```console\n$ cargo check\n```\n\n### Installing crates locally\n\nIn order to install a crate into your project you have to type the crate name and the desired version in you Cargo.toml file:\n\n```console\n[dependencies]\nrsa = \"0.4.0\"\n```\n\n### Fix warnings with rustfix\n\nRustfix comes by default in every rust installation so, in order to fix your code simply run:\n\n```console\ncargo fix\n```\n\n### Improve your code by using Clippy\n\nTo install clipy run \n\n```console\nrustup component add clippy\n````\n\nthen you can run it by entering cargo clippy in the console.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiberham%2Frustlang-drills","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feiberham%2Frustlang-drills","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiberham%2Frustlang-drills/lists"}