Skip to content
/ xd Public

A little toy written in Rust to preview a hex dump of a given file, just like xxd.

License

Notifications You must be signed in to change notification settings

Ainevsia/xd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xd

A little toy written in Rust to preview a hex dump of a given file, just like xxd

Build Status LICENSE

Compile

First, install Rust (using the recommended rustup installation method) and then clone this repository:

$ git clone https://github.com/Ainevsia/xd.git
$ cd xd

// build release
$ cargo build --release

If you are using Rust for the first time and the progress bar stucks at the first step like this:

    Updating crates.io index
       Fetch [==================>                                    ]  34.94%

You should change the source of the crates.io. Add these lines to $HOME/.cargo/config (if not exists, create it):

[source.crates-io]
replace-with = 'ustc'

[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"

and then run cargo build --release. The Rust compile process will take pretty much time, which involves downloading and compiling the depended packages. It took me 4m 38s to finish.

 Finished release [optimized] target(s) in 4m 38s

Available features

Colored output with length-specificed limitation.

Usage

the binary is in the target/release.

help

xd

Contributing

  1. Fork it (https://github.com/Ainevsia/xd.git)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Contributors

Made with contributors-img.

License

xd © Ainevsia, Released under the MIT License.

Authored and maintained by DIYgod with help from contributors (list).

About

A little toy written in Rust to preview a hex dump of a given file, just like xxd.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages