https://github.com/itsthatguy/rust-samples
https://github.com/itsthatguy/rust-samples
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/itsthatguy/rust-samples
- Owner: itsthatguy
- Created: 2023-03-23T19:03:33.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-23T19:04:22.000Z (about 3 years ago)
- Last Synced: 2025-01-16T16:46:23.797Z (over 1 year ago)
- Language: Rust
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Rust Samples
[]() [](https://github.com/itsthatguy/rust-samples/issues) [](https://github.com/itsthatguy/rust-samples/pulls) [](/LICENSE)
---
A little playground for myself to try out various ideas in Rust.
## 📝 Table of Contents
- [Prerequisites](#prerequisites)
- [Getting Started](#getting_started)
- [Running](#running)
- [Tests](#tests)
- [Usage](#usage)
Before you begin, ensure you have met the following requirements:
- You have a recent version of Windows, macOS, or Linux installed on your system.
- You have a basic understanding of the command line and Git.
To get started with this project, you will need to have Rust installed on your system. If you don't have Rust installed, you can download and install it from the official Rust website: https://www.rust-lang.org/tools/install.
Once you have Rust installed, you can clone this repository:
```shell
git clone https://github.com/itsthatguy/rust-samples.git
```
## 🏃♂️ Running the Application
To run the application, navigate to the project directory and run the following command:
```shell
cargo run
```
This will compile and run the project. You should see:
```shell
Hello from tools
Hi from Hammer
Hi from Saw
Hello from hammer
Hello from saw
```
To run the tests for this application, navigate to the project directory and run the following command:
```shell
cargo test
```
This will run all of the tests in the project and report any failures.
- [Rust](https://www.rust-lang.org/)
