Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 1.07 KB

02-section-01.md

File metadata and controls

56 lines (41 loc) · 1.07 KB

Section I - Create a Package

In your main terminal at the bottom of the IDE, run the following command to ensure we are in the environment directory.

cd $HOME/environment

Let first make sure the Rust is install correctly.

ArchConfWorkshopUser:~/environment $ rustup -V
rustup 1.22.1 (b01adbbc3 2020-07-08)
ArchConfWorkshopUser:~/environment $ cargo -V
cargo 1.47.0 (f3c7e066a 2020-08-28)
ArchConfWorkshopUser:~/environment $ rustup default stable
info: using existing install for 'stable-x86_64-unknown-linux-gnu'
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'

  stable-x86_64-unknown-linux-gnu unchanged - rustc 1.47.0 (18bf6b4f0 2020-10-07)

Create the rust-tdgpackage

cargo +stable new rust-tdg --lib
ArchConfWorkshopUser:~/environment $ cargo +stable new rust-tdg --lib
     Created library `rust-tdg` package

Change directory to the rust-daas project.

cd rust-tdg/

cargo has generated ...

.
|-- .git
|-- .gitignore
|-- src
     |-- lib.rs
|-- Cargo.toml