Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itsthatguy/rust-samples
https://github.com/itsthatguy/rust-samples
Last synced: about 6 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/itsthatguy/rust-samples
- Owner: itsthatguy
- Created: 2023-03-23T19:03:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-23T19:04:22.000Z (over 1 year ago)
- Last Synced: 2024-04-08T16:21:35.768Z (7 months 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
[![Status](https://img.shields.io/badge/status-active-success.svg)]() [![GitHub Issues](https://img.shields.io/github/issues/itsthatguy/rust-samples.svg)](https://github.com/itsthatguy/rust-samples/issues) [![GitHub Pull Requests](https://img.shields.io/github/issues-pr/itsthatguy/rust-samples.svg)](https://github.com/itsthatguy/rust-samples/pulls) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](/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/)