abhimanyu003
qubit
Rust

A handy calculator, based on Rust and WebAssembly.

Last updated Apr 3, 2026
96
Stars
6
Forks
1
Issues
0
Stars/day
Attention Score
14
Language breakdown
Rust 99.2%
HTML 0.8%
โ–ธ Files click to expand
README

qubit

qubit

๐Ÿ’ฅ Visit Website To Use Calculator

qubit

Example

๐Ÿ’ฅ Visit Website To Use Calculator

2 + 2

sin( 90 ) + cos ( 120 ) sqrt(144) + 12 ceil ( 12.12 ) + 22 floor( 12.12) + 22

25 % of 100 25 % on 100

// Conversions 1024 kb to mb 22 kg to g

Operations

Basic Math

add         sub         multiply
divide      power       modulus
rightShift  leftShift
percentOf   percentOn

Examples:

2 + 2
2 plus 2
2 ^ 2

10 %of 100 10 %on 100

100 >> 2 100 << 2

Constants

pi
e
tau

Functions

All trigonometric functions expect input in degrees.

sin     cos     tan
asin    acos    atan
sinh    cosh    tanh

log sqrt cbrt round ceil floor

Examples:

round ( 2.4 )
ceil ( 2.3 )

sin ( 90 ) cos ( 90 )

ceil ( 2.2 ) floor(3.3)

Supported Conversions

  • Angle
  • Area
  • Digital Information
  • Length
  • Mass
  • Speed
  • Time
  • Temperature

Development

Stack qubit is using

  • Rust as programing language
  • Pest for parser + grammar
  • Yew for webassembly
  • Tailwind for CSS styles

Local Development + Enhancement

  • Clone the repo
  • Pest Grammar is defined in src/grammar.pest file.
  • Conversion chart is src/convert_chart.rs
To start the project locally on :8080 run
trunk serve

Before creating pull request you can run sanity checks.

cargo fmt
cargo check
cargo test

Final build ( Optional )

trunk build --release --public-url=qubit

Contribution

This project welcomes your PR and issues. For example, refactoring, adding features, correcting English, etc. If you need any help, you can contact me on Twitter.

Thanks to all the people who already contributed!

License

MIT

๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท abhimanyu003/qubit ยท Updated daily from GitHub