Skip to content

jarrodhroberson/rustcli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Command Line Experiment

This is just a little learning exercise on how to write a command line application in rust and manipulate the filesystem.

It just walks the current directory and outputs some basic details about the files in that directory as JSON.

There are some more advanced things I had to research in here that might be helpful to someone else.

  1. Automatically generating JSON from Structs with serde.

  2. Converting a u32 representation of unix permissions to the more familiar 3 digit octal representation.

  3. Converting the unix timestamp u64 into an RFC3339 represenation so it is human readable.

  4. Retrieving command line arguments with Command Line Argument Parser for Rust

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages