0% found this document useful (0 votes)
23 views1 page

Operation Output Range Output Type Bytes Per Element Output Class

Cargo is a tool for managing Rust projects. It is used to initialize new projects with 'cargo init' or 'cargo new' which creates a Cargo.toml file and src/main.rs file. The Cargo.toml contains metadata like dependencies, and src/main.rs is the entry point. 'cargo init --vcs none' initializes without a git repository. Rust types like int8, int16 etc. represent signed integers with different bit sizes and output ranges.

Uploaded by

Venkata Prasad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views1 page

Operation Output Range Output Type Bytes Per Element Output Class

Cargo is a tool for managing Rust projects. It is used to initialize new projects with 'cargo init' or 'cargo new' which creates a Cargo.toml file and src/main.rs file. The Cargo.toml contains metadata like dependencies, and src/main.rs is the entry point. 'cargo init --vcs none' initializes without a git repository. Rust types like int8, int16 etc. represent signed integers with different bit sizes and output ranges.

Uploaded by

Venkata Prasad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Cargo init --> initialize new project in current folder

Cargo new hello --> initialize new project in hello folder


A [Link] file that contains metadata for our project, incl. a list of dependencies/external
libraries we use.
A src/[Link] file that is the entry point for our (main) binary.

cargo init --vcs none --> no git repository


rustup --> check updates

Operation Output Range Output Bytes per Output


Type Element Class
int8 -128 to 127 Signed 8-bit 1 int8
integer
int16 -32,768 to 32,767 Signed 16- 2 int16
bit integer
int32 -2,147,483,648 to 2,147,483,647 Signed 32- 4 int32
bit integer
int64 -9,223,372,036,854,775,808 to Signed 64- 8 int64
9,223,372,036,854,775,807 bit integer

[Link]
[Link]

You might also like