Skip to content

kevin-leptons/rust_basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RUST BASIC
==========

    Basic data structures and algorithms in Rust.

    The project is used for practice with Rust programming language in the
    following aspects: grammar, safe code, unsafe code, memory management,
    and supported tools.

    Data structures and algorithms are grouped and built into containers. There
    are basic types: Stack, Queue, Vector, String, HashMap, HashSet, Tree,
    PriorityQueue, RedBlackTree, DirectedGraph and more. All implementations are
    made from scratch without dependencies, except for: 1 - `std::ptr` and
    `std::alloc` to manage memory; 2 - `std::iter` to implement standard
    iterators; 3 - `std::cmp` to implement comparison operators.

    Please use the package manager and package names properly, which depend on
    the specific operating system. The following instructions are based on
    GNU/Debian version 12.

QUICKSTART
==========

    # Install Rust compiler and tools. The Rust version is specify in
    # `rust_basic/Cargo.toml`. 
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

    # Read the document for quick API references.
    cargo doc --open

    # Run unit tests.
    cargo test

MEMORY DIAGNOSTIC
=================

    # Install `cargo-valgrind`.
    cargo install [email protected]
    apt install valgrind

    # Start checking.
    cargo valgrind test

About

Basic data structures and algorithms in Rust.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages