Giter VIP home page Giter VIP logo

Comments (5)

ia0 avatar ia0 commented on July 20, 2024

Hi @Celti,

Thanks for the feedback! I was not convinced that the encode program would be useful enough to release it. In particular, for hexadecimal I know xxd, and base32 and base64 are in coreutils. Note that the base32 program has been added by 89c517d during September 2015, so it's maybe not on all distributions yet.

Another reason was that I was not satisfied enough with the encode program to release it (in particular what should the command-line look like). But this is in my todo list to release a generic program dealing with encodings, so it will be done at some point (maybe in one or two months).

In the meantime, would the following command suits you?

cargo install --example encode --git https://github.com/ia0/data-encoding.git data-encoding

You can use --tag v1.1.2 to install the current release instead of the master branch.

If using git is an issue (I don't know Windows enough), I am fine adding the encode program, in its current example state, to the crate in a v1.2.0 version. The reason I did not do so in the first place, was to have a light crate for faster downloads.

Thanks for your interest!
Julien

from data-encoding.

Celti avatar Celti commented on July 20, 2024

Heh, I already have it installed, in fact, so it's no big deal on my part — I just felt such a useful tool should be easier for people to access.

As for coreutils, I had totally missed base32 now being part of it, which is very good to know — but xxd, at least on Arch, is part of Vim and definitely not part of the base system — and according to current coreutils git tree, not part of coreutils either.

Regardless, if you have a generic program for the whole deal on your TODO list, then I will happily wait for that, and keep using the example utility as-is in the meantime.

Thanks for the response — closing.

from data-encoding.

ia0 avatar ia0 commented on July 20, 2024

Oh I misunderstood :-) That's great then!

Indeed, xxd is part of vim and not part of the base system. But I suspect it's quite often installed by default. Anyway I will also take its features into account when rewriting encode since xxd allows to patch files, which is something base32 and base64 don't do.

Cheers!

from data-encoding.

ia0 avatar ia0 commented on July 20, 2024

@Celti By the way, since you were interested in a simple way to install the binary, I now have released the binary as an independent crate. It is possible to install it with cargo install data-encoding-bin and the binary will be called data-encoding. It also provides more options than the previous example binary.

from data-encoding.

Celti avatar Celti commented on July 20, 2024

Beautiful! Thank you muchly for this one.

from data-encoding.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.