An improved version of dsh!
Built with the memory safe Rust :^)
- No hard limit of 5 lanes, unlimited lanes baby!
- Nickname-able lanes!
- Powerful list function that allows us to list the directory within a lane!
all basic functionality from the C-dshdasher engine- proper error handling output
- help messages
This project is just to familiarize myself with the intricacies and improve
my foundational and fundamental understanding of rust!
I also moved to Linux and porting my MacOS build of the C built dsh has been very eh.
I am also not very happy with the functionality of the C dsh and would like
to add much more capabilities to it!
-
Smart pointers such as Box that allows us to have unknown sized structs at compile time.
-
Very surface level Process and IO management in Rust.
-
Using serde_json as I have to work with JSON files in real life, hoping this would improve my fundamental understanding of using them! (JSON is just object notation its not that deep i know :p)
-
Taking advantage of powerful iterators and traits from the standard library like
From<T>
. -
Cool point about
PartialEq
and comparingString
and&str
! Using the standard librarycmp
module is necessary to avoid having/path/to/final
being considered==
to/path/to
.
if string_var == slice_var {
//do something
}
match string_var.cmp(slice_var.to_string()) {
_ => //do something
}