Skip to content

FarrukhRZ/rust-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rust Snippets

This repository contains multiple small Rust projects. Each directory within the repository represents a separate project.

Prerequisites

Before you can run the projects, make sure you have the following prerequisites installed:

Running a Project

To run a project, navigate to the project's directory and use the cargo run command:

cd path/to/project_directory
cargo run

Environment Variables

Each project directory includes a .env.example file with sample environment variables. Before running a project, ensure that you create a .env file in the same directory and set the environment variables according to the variables listed in the .env.example file.

# Create a .env file based on the .env.example file
cp .env.example .env
# Edit the .env file to set the appropriate values
nano .env

Sample Scripts

Here are a few sample scripts you can use to get started:

Navigating to a Project Directory

cd examples/project1

Running a Project

cargo run

Setting Up Environment Variables

cp .env.example .env
nano .env

Contributing

If you'd like to contribute to this repository, feel free to submit a pull request.

License

This repository is licensed under the MIT License.

Happy coding!

About

Small rust programs for common evm ops

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages