Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
docs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
StarHPC
docs
Commits
28e416e1
Commit
28e416e1
authored
Aug 23, 2024
by
Aadil M. Alli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rust update
parent
1949f613
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
guide.md
environment/guide.md
+42
-0
No files found.
environment/guide.md
View file @
28e416e1
...
...
@@ -600,4 +600,46 @@ cd boost_1_76_0
5. Clean using:
```
make clean
# Rust
### How to simulate a virtual environment with rust
This guide outlines how to create a project-specific environment in Rust, similar to virtual environments in other languages. (Most similar to node)
## Setup Environment
1. Ensure Rust and Cargo are installed:
```bash
rustc -V
cargo -V
```
2. Create directory for project:
```bash
mkdir Project
```
3. Navigate to directory:
```bash
cd Project
```
4. Initialize a Cargo project:
```bash
cargo new my_project
cd my_project
```
## Install Packages
Install a package:
```
bash
cargo add package
```
## Using Dependencies
Install packages using Cargo.toml:
```
bash
cargo build
``` ```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment