Commit graph

70 commits

Author SHA1 Message Date
Tiffany Bennett
6ce8d91b97
Dependencies cleanup (#163)
- Set `default-features=false` where applicable
- Use specific num libraries instead of the top-level crate, as some
parts like complex numbers are not used.
- Replace reqwest with curl, which links the system libcurl and libssl
when possible.
- Add `opt-level="z"` and enable LTO for release builds.

All these changes combined, the CLI binary goes from 10.7 megabytes (or
8.7 manually stripped) to 5.4 megabytes.

The wasm binary is unaffected, still around 2.3 megabytes.
2024-03-31 14:34:09 -07:00
Tiffany Bennett
5e9d36edc3 Move cli to member of workspace 2022-03-24 19:25:38 -07:00
Tiffany Bennett
85c7ea921c Update rustyline to v9 2022-03-24 18:35:03 -07:00
Tiffany Bennett
ebf7bca80e Update color-eyre to v0.6 2022-03-24 18:34:00 -07:00
Tiffany Bennett
5be14432af Update dirs to v4 2022-03-24 18:32:16 -07:00
Tiffany Bennett
c222af5f4a Update to clap v3 2022-03-24 18:29:49 -07:00
Tiffany Bennett
6e3fecff57 Version 0.6.2 2021-10-31 15:10:02 -07:00
Tiffany Bennett
0f4ebf9451
Sandboxing (#100) 2021-06-05 18:18:00 -07:00
Tiffany Bennett
8d73153565 Bump CLI to 0.6.1 2021-04-25 14:24:36 -07:00
Tiffany Bennett
af49f5d8b1 Release v0.6.0 2021-04-05 17:31:39 -07:00
Tiffany Bennett
709b5d01b4
Output highlighting (#90)
Adds a token tree based representation for Rink's output, allowing it to be colored. Adds support for this to Rink CLI to get improved appearance.
2021-04-05 16:04:46 -07:00
Tiffany Bennett
c453dfdeb9
Update dependencies (#89) 2021-04-01 16:13:17 -07:00
Tiffany Bennett
622dd31901
CLI improvements (#86) 2021-02-14 20:25:27 -08:00
Tiffany Bennett
b1fad6be3c
Use unified currency API endpoint (#76) 2020-09-20 20:45:22 -07:00
Tiffany Bennett
1921c42986 Add Repology badge & update homepage link 2020-09-20 13:32:32 -07:00
Tiffany Bennett
dbe6a45a0d Rink 0.5.1 2020-08-29 21:57:47 -07:00
Tiffany Bennett
bf1a66ca84
Rink Web 2 (#62)
* Start over with the web interface

* Add initial stuff

* Extract file+network IO out of rink-core

* Fix cargo warning

* Add tests for rink-web

* Add Serialize to AST types

* Refactor AST

* Split up ast module

* BinOp -> BinOpExpr

* Split out UnaryOpExpr

* Remove Deserialize bound from AST

* Clean up Serialize impl for Numeric

* Convert Expr::Const to struct variant

* Make datetime handling deterministic

* Changes to js API

* Rename rink-web to rink-js

* Add initial npm project

* Add lit-element

* Parse textbox inputs

* Make Expr::Error a variant struct

* Convert Expr::Unit to struct variant

* Don't cache when running npm start

* Convert Expr::Mul to struct variant

* Convert Expr::Date to struct variant

* Convert Expr::Quote to struct variant

* Pretty print json

* Fix warnings

* Switch to svelte

* Remove web components polyfill

* Switch to sapper

* Only load wasm once

* Result component

* Update chrono

* `Utc::now` panics on wasm builds

* Hook up eval

* Disable humanize since it panics in wasm

* SSR test page

* Factor out wasm code into new file

* Make json output better

* Improve json output

* Better json for QueryError

* Add TS definitions for QueryReply

* Render some reply types

* Add proper font

* Add PWA manifest

* Add basic favicon

* Initial styling pass

* Include AST in replies

* Expr component

* Make Numeric json repr more useful

* Indicate approximate values

* Remove duplicate information in definitions

* Split up Result into smaller components

* Search reply

* Add UnitsForReply

* Add UnitListReply

* Add SubstanceReply

* Show dates

* Add DurationReply

* Hook up basic routing

* UI polishing

* Add links to unit pages

* Quantity links

* Split ExprNode and fix whitespace issues

* Fix whitespace issues in NumberParts

* Fix Binop component

* Precedence fixes

* Fix imports

* NumberParts.svelte -> Number.svelte

* Remove App + debug prints

* Fix whitespace in parentheses

* Allow division slash for fractions

* Add home button

* Add aria info

* Improve units for page

* Add links to errors

* Remove rink-irc from workspace

So that cargo test --workspace will work.

* Run all workspace tests in CI

* Remove legacy argument
2020-08-06 16:25:12 -07:00
Tiffany Bennett
828d2d4a79 Fix cargo toml for 0.5 release 2020-07-18 02:16:52 -07:00
Tiffany Bennett
a6246ab3c4
Revamp CLI (#59)
* Refactor: Change Dim to struct with named fields

* Move files into `core`, leaving `rink` as the CLI

* Split out completer into separate module

* Clean up cargo files

* Move repl to separate file

* Use clap for rink CLI

* More ways to exit the CLI

* Serde doesn't require nightly for derive anymore

* Hopefully better caching behavior for requests
2020-07-18 02:11:41 -07:00
Tiffany Bennett
4bdb902281 Replace gmp with num 2020-07-17 23:26:38 -07:00
Lukas Werling
7273ff2ace Update linefeed to 0.6 2020-05-27 18:07:19 +02:00
Alex Alemi
3a2aa4c44d Manually remove trailing semicolons; Update edition 2020-04-22 22:04:18 -04:00
Alex Alemi
7197d91e47 After merging PR#40 2020-04-22 21:43:47 -04:00
Tiffany Bennett
9029d8478e Replace hyper with reqwest 2019-10-30 19:49:32 -07:00
Colin Benner
5a0189ff77 Use the dirs crate to find the config dir 2019-10-19 20:27:59 -07:00
Tiffany Bennett
294adcd6a3 Release v0.4.4 2019-01-15 20:29:03 -08:00
Tiffany Bennett
0755cb5f9d Update rust-gmp 2019-01-15 20:23:37 -08:00
Colin Benner
972e00730e Update hyper-native-tls dependency
The old version depended on a version of the openssl crate that does not
compile when using the recently released version 1.1.1 of OpenSSL.
2018-09-18 13:18:23 +02:00
Curtis McEnroe
48328cac9a
Update linefeed 0.4.0
linefeed 0.2.6 doesn't build on FreeBSD.
2018-03-13 12:33:09 -04:00
Tiffany Bennett
20751cfa9a Release 0.4.3 2018-03-04 14:01:29 -08:00
Murarth
d5bbb538ba Update version of linefeed dependency 2017-08-13 19:58:21 -07:00
Tiffany Bennett
afef1469d2 Release v0.4.2 2017-05-31 19:43:39 -07:00
Tiffany Bennett
695d52e0f8 Release v0.4.1 2017-05-26 19:00:59 -07:00
Tiffany Bennett
6da83854a4 Compile irc without ssl support, preventing a package conflict 2017-05-26 18:16:10 -07:00
whitequark
380bb11798 Use hyper-native-tls for fetching data.
Fixes #15.
2017-02-11 13:33:48 +00:00
whitequark
f3b7ad6d1b Upgrade hyper to 0.10. 2017-02-11 13:33:48 +00:00
Tiffany Bennett
212a7028db Release v0.4.0 2016-10-31 18:47:30 -04:00
Tiffany Bennett
3a0760681a Update to 2016-10-20 nightly
rustc_macro -> proc_macro, update serde.
2016-10-23 15:48:50 -04:00
Tiffany Bennett
198f9ac3d2 Add chrono-tz for timezone support 2016-10-22 21:52:08 -04:00
Tiffany Bennett
0cf9ec3b7a Add serde support 2016-10-05 16:01:21 -04:00
Tiffany Bennett
2363eeb292 Move rink-irc to its own subcrate 2016-10-03 22:26:50 -04:00
Tiffany Bennett
dfed8befbd Move rink-web to its own subcrate 2016-10-03 22:23:15 -04:00
Tiffany Bennett
841f23e0cc Remove rink-debug-tokens from Cargo.toml 2016-09-24 19:45:54 -04:00
Tiffany Bennett
d93a924eb3 Release 0.3.2 2016-09-20 13:29:16 -04:00
Tiffany Bennett
61f0bf2f7d Add cryptocurrency conversions from btc-e.com 2016-09-19 15:53:24 -04:00
Tiffany Bennett
471d70c3a8 Download and keep updated currency conversions 2016-09-16 12:40:13 -04:00
Tiffany Bennett
a18a22f15e Release 0.3.1 2016-09-08 11:32:46 -04:00
Tiffany Bennett
b537e0a8c5 Suggest typo corrections 2016-09-05 16:30:13 -04:00
Tiffany Bennett
5c042ecd81 Upgrade linefeed to fix bug 2016-08-30 13:50:43 -04:00
Tiffany Bennett
788da27f09 Switch to linefeed 2016-08-30 11:13:09 -04:00