https://github.com/dcdms/learning-rust
Codewars challenges solved by me while learning Rust.
https://github.com/dcdms/learning-rust
rust
Last synced: 11 months ago
JSON representation
Codewars challenges solved by me while learning Rust.
- Host: GitHub
- URL: https://github.com/dcdms/learning-rust
- Owner: dcdms
- Created: 2024-09-03T21:46:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T12:10:32.000Z (almost 2 years ago)
- Last Synced: 2025-05-15T05:11:38.449Z (about 1 year ago)
- Topics: rust
- Language: Rust
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Learning Rust
TypeScript is my main programming language and **I don't intead to change it at the moment**, but I got really curious bacause of how fond other developers are of the Rust programming language, so I created this repository to view Rust in action solving some basic challenges from [Codewars](https://codewars.com).
I'm just testing Rust for fun at the moment, but I'd really like to use it to build some web applications or contribute to awesome tools like [NextJS](https://nextjs.org) that have Rust files in their GitHub repositories.
## Run Yourself
> To run this application, you need to have Rust installed on your machine. If you haven't installed it yet, you can follow [this guide](https://www.rust-lang.org/tools/install) from the official Rust documentation.
The `src` folder contains the files with solutions to the challenges, including unit tests. You can run the tests using:
```sh
cargo test
# or
cargo t
```
The `main.rs` file serves as an entry point to the challenge files. You can run it to see a cool message with:
```sh
cargo run
# or
cargo r
```
## Solved Challenges
- [Convert String to Camel Case](https://www.codewars.com/kata/517abf86da9663f1d2000003)
- [Count of Positives / Sum of Negatives](https://www.codewars.com/kata/576bb71bbbcf0951d5000044)
- [Sum Mixed Array](https://www.codewars.com/kata/57eaeb9578748ff92a000009)
- [Keep Hydrated!](https://www.codewars.com/kata/582cb0224e56e068d800003c)
- [Is He Gonna Survive?](https://www.codewars.com/kata/59ca8246d751df55cc00014c)