IMPORTANT! This library support only 2 targets, because TRANS2QUIK API implemented as 32-bit version for Windows only:
- i686-pc-windows-msvc
- i686-pc-windows-gnu
To use trans2quik
, first add this to your Cargo.toml
:
[dependencies]
trans2quik = "*"
Then, add this to your crate root:
extern crate trans2quik;
To build with this library you have to put Trans2Quik.dll
and Trans2Quik.lib
in right places (library doesn't have an installer). But you also can set up environment variables.
For i686-pc-windows-msvc target set (VS2012 x86 Native Tools Command Prompt):
set TRANS2QUIK_PATH=<path_to_your_Trans2QUIKAPI>
set LIB=%TRANS2QUIK_PATH%;%LIB%
For i686-pc-windows-gnu target set (msys2_shell.bat):
LIBRARY_PATH=<path_to_your_Trans2QUIKAPI> cargo build