{"id":20683513,"url":"https://github.com/eggy115/rust","last_synced_at":"2025-04-22T12:22:09.907Z","repository":{"id":153503504,"uuid":"622269839","full_name":"Eggy115/Rust","owner":"Eggy115","description":"Rust","archived":false,"fork":false,"pushed_at":"2023-04-18T18:50:21.000Z","size":94,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T15:05:25.852Z","etag":null,"topics":["rust","rust-lang","rust-programs","rust-scripts"],"latest_commit_sha":null,"homepage":"https://github.com/Eggy115/Rust","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Eggy115.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["Eggy115"],"patreon":"Eggy115","open_collective":"Eggy115","ko_fi":"Eggy115","tidelift":"Eggy115","community_bridge":"Eggy115","liberapay":"Eggy115","issuehunt":"Eggy115","otechie":"Eggy115","lfx_crowdfunding":null,"custom":["https://www.youtube.com/Eggy115","https://github.com/Eggy115"]}},"created_at":"2023-04-01T16:04:45.000Z","updated_at":"2023-11-22T18:18:45.000Z","dependencies_parsed_at":"2023-05-27T20:15:06.948Z","dependency_job_id":null,"html_url":"https://github.com/Eggy115/Rust","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/Eggy115%2FRust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eggy115%2FRust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eggy115%2FRust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eggy115%2FRust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eggy115","download_url":"https://codeload.github.com/Eggy115/Rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237930,"owners_count":21397416,"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":["rust","rust-lang","rust-programs","rust-scripts"],"created_at":"2024-11-16T22:16:48.255Z","updated_at":"2025-04-22T12:22:09.862Z","avatar_url":"https://github.com/Eggy115.png","language":"Rust","funding_links":["https://github.com/sponsors/Eggy115","https://patreon.com/Eggy115","https://opencollective.com/Eggy115","https://ko-fi.com/Eggy115","https://tidelift.com/funding/github/Eggy115","https://funding.communitybridge.org/projects/Eggy115","https://liberapay.com/Eggy115","https://issuehunt.io/r/Eggy115","https://otechie.com/Eggy115","https://www.youtube.com/Eggy115","https://github.com/Eggy115"],"categories":[],"sub_categories":[],"readme":"# Rust\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n\nThis repository contains a collection of Rust programs and scripts.\n\n## Table of Contents\n- [What is Rust](#what-is-rust)   \n- [Installation](#installation)\n  - [Installing Rust](#installing-rust)    \n    - [Windows](#windows)\n    - [Linux](#linux)\n    - [macOS](#macOS)  \n  - [Installing Repository](#installing-repository)  \n- [Usage](#usage)\n  - [Default Method](#default-method)\n  - [Cargo](#cargo)\n- [Contributing](#contributing)\n- [License](#license)\n\n## What is Rust\n\nRust is a modern, multi-paradigm programming language that aims to provide the performance of low-level languages like C and C++ while also providing the safety and memory management of high-level languages like Java and Python. It was created by Mozilla in 2010 and has since gained popularity among developers for its speed, memory safety, and concurrency features.\n\nRust is a statically-typed language, meaning that the types of variables and expressions are known at compile time, which can catch many errors before the code is run. Rust also includes a powerful ownership and borrowing system, which ensures that memory is allocated and deallocated correctly at compile time, preventing common bugs like null pointer dereferences and use-after-free errors.\n\nRust has a modern syntax, with features like pattern matching, closures, and type inference, making it easy to write concise and expressive code. It also has a large and growing ecosystem of libraries and tools, including a package manager called Cargo, which makes it easy to manage dependencies and build projects.\n\nOverall, Rust is a powerful language that combines the performance of low-level languages with the safety and ease-of-use of high-level languages. It's used for a wide range of applications, from systems programming and operating systems to web development and game development.\n\n## Installation\n\n### Installing Rust\n\nThese are the general steps to install Rust on different platforms. However, the exact steps may vary depending on the specific operating system and version you are using. It's always a good idea to refer to the official documentation for your platform to get more detailed installation instructions.\n\n#### Windows\n\n1. Download the Rust installation executable from the official Rust website.\n2. Run the downloaded file and follow the installation instructions.\n3. Once the installation is complete, you can use any text editor or IDE (Integrated Development Environment) to write and compile Rust code.\n\n#### Linux\n\n1. Install Rust using the package manager for your Linux distribution. For example, on Ubuntu, you can use the following command:\n\n```\nsudo apt-get install rustc\n```\n\n2. Once Rust is installed, you can use any text editor or IDE to write and compile Rust code.\n\n#### macOS\n\n1. Install Rust using the Homebrew package manager for macOS. Open a terminal and run the following command:\n\n```\nbrew install rust\n```\n\n2. Once Rust is installed, you can use any text editor or IDE to write and compile Rust code.\n\nAlternatively, you can also download the Rust installation package for macOS from the official Rust website and follow the installation instructions.\n\n### Installing Repository\n\nYou can download individual files, copy \u0026 paste code, or clone the repository\n\n```\ngit clone https://github.com/Eggy115/Rust.git\n```\n      \n## Usage\n\n### Default Method\n\n1. Clone the repository. If you have written your own programs, save the program with a `.rs` file extension.\n2. Open a terminal or command prompt and navigate to the directory where the Rust program is saved.\n3. Run the following command to compile the Rust program:\n\n```\nrustc program_name.rs\n```\n\nReplace program_name with the name of your Rust program.\nThis will create an executable file in the same directory as your Rust program.\n\n4. Run the executable file by typing its name into the terminal and pressing Enter.\n\n```\n./program_name\n```\n\nThis will run your Rust program.  \n\n### Cargo\n\nAlternatively, you can use Cargo, Rust's built-in package manager and build tool, to compile and run your Rust program. Here are the steps:\n\n1. Create a new Rust project using Cargo by running the following command in a terminal:\n\n```\ncargo new project_name\n```\n\nReplace project_name with the name of your project.\n\n2. Open the src directory that was created by Cargo and open the `main.rs` file.\n3. Write your Rust program in the `main.rs` file or rename a file from this repository to `main.rs`.\n4. Use Cargo to build and run your program by running the following command in a terminal:\n\n```\ncargo run\n```\n\nThis will compile and run your Rust program.\n\n## Contributing\n\nContributions are always welcome! Follow these steps to contribute:\n\n1. Fork the repository and make your changes. \n2. Submit a pull request with your changes.\n3. Create an issue if you find a bug or have a feature request.\n\nPlease make sure to adhere to the [code of conduct](CODE_OF_CONDUCT.md) and the [contributing guidelines](CONTRIBUTING.md).\n\n## License\n\nThis repository is licensed under the [GPLv3 License](https://www.gnu.org/licenses/gpl-3.0.html). See the [LICENSE](LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggy115%2Frust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feggy115%2Frust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggy115%2Frust/lists"}