grabc
Getting Started
If the repo submodule appears to be empty or out of date, you may need to run git submodule update —init path/to/repo.
Transpiling
The steps to get the transpiled code are as follows:
1. $ intercept-build make
2. $ c2rust transpile compile_commands.json
3. $ rustc grabc.rs -L/usr/X11R6/lib -lX11
If you want to have the transpiler create a crate:
1. $ intercept-build make
2. $ c2rust transpile compile_commands.json --emit-build-files -m grabc --output-dir rust
3. $ cd rust
4. $ RUSTFLAGS="-L/usr/X11R6/lib -lX11" cargo build
