Comments (8)
Yes, data-encoding will add this in v2.0.0 which is currently in progress. However I have a few questions:
- Do you need decode to also support uppercase letters? In other words, is
38a9F1
a valid hex encoding? (v2.0.0 will support this optionally in a case-insensitive setting) - Do you need this feature before May 2017? (I suspect v2.0.0 to be ready during April/May 2017. If you don't need a case-insensitive decode then I can add a hex_low module handling this in v1.3.0 tonight)
from data-encoding.
I feel mix lower and upper case is not needed(never saw in other implemention)
currently, I use rustc_serailize::hex withour problem, but wish can get rid of it.
from data-encoding.
v2.0.0 will support this optionally in a case-insensitive setting
Yeah, looking forward to that!
from data-encoding.
@sbant You can now use the HEXLOWER
constant of v2.0.0-rc.1. You would typically use it like HEXLOWER.encode(input)
and HEXLOWER.decode(input)
.
@dbrgn There is now a HEXLOWER_PERMISSIVE
constant in v2.0.0-rc.1 that works as HEXLOWER
but also accepts upper-case. Note that with v2.0.0-rc.1 you can easily define you own encoding and get the exact same performance as the predefined ones.
The v2.0.0-rc.1 will move to v2.0.0 in about one month depending on feedback.
from data-encoding.
@ia0 is the v2 ETA still end of May?
from data-encoding.
@lucab No. I am working on an rc2 that unifies the NoPad and Padded types and allows to ignore characters during decoding. I don't know yet when I'll be done (prototype is done though). It will probably be out before end of June, but I am not sure I'll have enough time.
from data-encoding.
I see. No hurry, and thanks for the status update!
from data-encoding.
Quick update on this issue. I released v2.0.0-rc.2 which should be the last candidate before v2.0.0 is released (before end of year).
I'm closing the issue since it should be fully solved by v2.0.0-rc.2.
from data-encoding.
Related Issues (20)
- Consider `check_trailing_bits=false` for BASE64_MIME decoder HOT 1
- 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
- `Encoding::encode_mut` is very code-size heavy HOT 15
- feature request - base58 d/encoding HOT 2
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.