Skip to content
Generate Rust struct definition from C struct and check its ABI compatibility
Rust Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


How to get new laptop to run this project

cargo install llvmenv
llvmenv init
llvmenv build-entry 7.0.0
export LLVM_SYS_70_PREFIX=$HOME/.local/share/llvmenv/7.0.0
export LIBCLANG_PATH=$HOME/.local/share/llvmenv/7.0.0/lib/

and build

cd rust-gen-struct
cargo build

Try parse a file

RUST_BACKTRACE=1 DYLD_LIBRARY_PATH=$HOME/.local/share/llvmenv/7.0.0/lib ./target/debug/rust-gen-struct /home/src/php-7.2.10/Zend/zend_modules.h _zend_module_entry

Example how to run (Anaconda3-5.2.0)

tar zxf cfe-7.0.0.src.tar.xz
PYTHONPATH=/path/to/llvm-7.0.0.src/bindings/python/:/path/to/cfe-7.0.0.src/bindings/python/ DYLD_LIBRARY_PATH=$HOME/.local/share/llvmenv/7.0.0/lib python /path/to/php-7.2.10/Zend/zend_modules.h
You can’t perform that action at this time.