Giter VIP home page Giter VIP logo

Comments (4)

JoeyAcc avatar JoeyAcc commented on July 20, 2024

That was fast, thanks!

from data-encoding.

ia0 avatar ia0 commented on July 20, 2024

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.

JoeyAcc avatar JoeyAcc commented on July 20, 2024

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.

ia0 avatar ia0 commented on July 20, 2024

Thanks a lot for the issue and the test. It's published.

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.