dc-ock-0.3.0 has been yanked.
dc.rs
dc.rs (also dc-ock, for the Open Computing Kit) is a reverse Polish notation (postfix) calculator, roughly akin to the unix "dc" command, written in Rust. It lacks many of the more advanced features of dc, but still has core mathematical operations needed for most simple usage.
In addition to the command-line utility, dc.rs provides library components for other programs to use, including the RPN evaluator, the types and utility functions for said types.
Examples
Conversion from string to CalcType:
use dc-str_to_calc_type;
Evaluating expressions safely:
use dc-safe_eval;
Evaluating expressions with stack persistence: