Comments (5)
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.
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.
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.
@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.
Beautiful! Thank you muchly for this one.
from data-encoding.
Related Issues (20)
- Encoding into a String? HOT 6
- Do not use deprecated proc-macro-hack
- no-std support for macro crate
- Macros Won't Build in no_std HOT 4
- (std -> core)::fmt::Display for DecodeError and DecodeKind HOT 2
- feature `std` leaking when using macro in no_std env HOT 7
- Missing a new line and decode error HOT 2
- Rust 2021 edition is a major, not a "patch" change HOT 6
- Removing dependency on syn HOT 7
- Make `{encode,decode}_len` const fns? HOT 4
- Encode into an "impl std::fmt::Write" and/or "impl std::io::Write" HOT 5
- Breaking change wish list
- Use doc_auto_cfg once stable HOT 2
- Use as_chunks family of functions once stable
- Internal symbols array is publicly exposed and unsound HOT 4
- Deny warnings in rustdoc
- Partial encoding with padding HOT 3
- Question about Specification HOT 6
- Release 2.5.0
- SIMD optimization HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from data-encoding.