Comments (4)
That was fast, thanks!
from data-encoding.
I can't test under windows. If you can test it would be great. Otherwise I'm just going to publish the new version (0.1.1).
from data-encoding.
Just did a compile:
joey@DESKTOP-P4V3PIP MINGW64 ~/WebstormProjects/sbr-license (master)
$ cargo install --git https://github.com/ia0/data-encoding.git data-encoding-bin
Updating git repository `https://github.com/ia0/data-encoding.git`
Installing data-encoding-bin v0.1.1 (https://github.com/ia0/data-encoding.git#ea32ad64)
Updating registry `https://github.com/rust-lang/crates.io-index`
Compiling getopts v0.2.14
Compiling data-encoding v2.0.0-rc.1 (https://github.com/ia0/data-encoding.git#ea32ad64)
Compiling data-encoding-bin v0.1.1 (https://github.com/ia0/data-encoding.git#ea32ad64)
Finished release [optimized] target(s) in 6.92 secs
Installing C:\Users\Joey\.cargo\bin\data-encoding.exe
joey@DESKTOP-P4V3PIP MINGW64 ~/WebstormProjects/sbr-license (master)
$ data-encoding --help
Usage: C:\Users\Joey\.cargo\bin\data-encoding.exe [<options>]
Options:
--mode <mode> {encode|decode[_concat]|info}
--base <base> {16|hex|{32|32hex|64|64url}[_nopad]|custom}
--input <file> uses <file> instead of standard input
--output <file> uses <file> instead of standard output
--block <size> reads blocks of <size> bytes
--skip when decoding, skips newlines
--wrap <cols> when encoding, wraps every <cols> characters
--symbols <symbols> custom base uses <symbols>
--padding <padding> custom base pads with <padding>
--translate <new><old>
when decoding, custom base translates <new> as <old>
--ignore_trailing_bits
when decoding, custom base ignores trailing bits
--least_significant_bit_first
custom base bit-order is least significant bit first
Examples:
# Encode using the RFC4648 base64 encoding
C:\Users\Joey\.cargo\bin\data-encoding.exe --mode=encode --base=64 # with padding
C:\Users\Joey\.cargo\bin\data-encoding.exe --mode=encode --base=64_nopad # without padding
# Show base information for the permissive hex encoding
C:\Users\Joey\.cargo\bin\data-encoding.exe --mode=info --base=hex
# Decode using a custom hexadecimal encoding
C:\Users\Joey\.cargo\bin\data-encoding.exe --mode=decode --base=custom --symbols=0123456789abcdef \
--translate=ABCDEFabcdef
# Decode using the DNSCurve base32 encoding
C:\Users\Joey\.cargo\bin\data-encoding.exe --mode=decode --base=custom \
--symbols=0123456789bcdfghjklmnpqrstuvwxyz \
--translate=BCDFGHJKLMNPQRSTUVWXYZbcdfghjklmnpqrstuvwxyz \
--least_significant_bit_first
In other words, it compiles and runs as it should, so I'd say go ahead and release it.
Thank you for the quick response!
from data-encoding.
Thanks a lot for the issue and the test. It's published.
from data-encoding.
Related Issues (20)
- 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
- `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.