Coder Social home page Coder Social logo

angeldollface / chico Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 56 KB

A tiny library to work with base-10, base-16, and base-2 numbers in Rust! :clown_face: :blond_haired_person:

Home Page: https://crates.io/crates/chico

License: Other

Rust 100.00%
base-10 base-16 base-2 mit-license rust-lang rust-library

chico's Introduction

CHICO

GitHub CI

A tiny library to work with base-10, base-16, and base-2 numbers in Rust!

ABOUT

Since I like numbers and I like Rust, I thought I'd port a library that I wrote in Javascript and Dart to Rust. These three projects all have one thing in common: They all provide simple methods to convert between numbers of different bases. These bases are 2, 10, and 16. Enjoy! Nota bene: I like the Marx brothers.

INSTALLATION

FOR RUST PROJECTS

To use Chico in your Rust project, add this line to your project's Cargo.toml:

chico = "0.3.0"

FOR THE COMMAND LINE

You can install Chico via Cargo itself using this command:

cargo install chico

Alternatively, you can download a compiled binary for 64-bit systems from this repository's Releases section.

USAGE

To understand how to use Chico in your project, please refer to the project's documentation.

CHANGELOG

Version 0.1.0

  • Initial release.
  • Upload to GitHub.

Version 0.2.0

  • Added better handling of errors.
  • Added a CLI tool.
  • Updated documentation.

Version 0.3.0

  • Made everything terser and more elegant.
  • Relicensed the project under the DSL v1.
  • Added support for base-8 numbers in the library.
  • Added support for base-8 numbers in the CLI.
  • Refactored methods for base-2, base-8, and base-16.
  • Cycled errors up to the main function for the CLI app.
  • Removed the utils module.
  • Updated documentation.

NOTE

  • Chico by Alexander Abraham a.k.a. "Angel Dollface"
  • Licensed under the DSL v1.

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.