recode_cpp is a test/sample app that's written in C++17 and uses encoding_rs.
It expects GSL to have been checked out
to an adjacent directory. Revision d6a2242d97827449f3f1c1c2e54214ceb9e80d62
was tested.
Please see the file named COPYRIGHT.
Git, GNU Make and a version of GCC recent enough to accept -std=c++17
are
assumed to be already installed. (Ubuntu 18.04 is known to work.)
See rustup.rs. For Linux and OS X, this means:
curl https://sh.rustup.rs -sSf | sh
git clone https://github.com/hsivonen/recode_cpp.git
git clone https://github.com/Microsoft/GSL.git
cd recode_cpp
make
./recode_cpp --help