servo/components/style/binding_tools
Manish Goregaokar 398a6343b3 Vendor m-c's nsstring in-tree
It is called nsstring_vendor since libgkrust already depends on nsstring, and
we can't have two crates with the same name in-tree. We can't directly depend
on the in-tree one since this will stop independent `./mach build-geckolib` builds from working.

MozReview-Commit-ID: CR4tHgzXWFZ
2016-10-12 18:12:52 +05:30
..
.gitignore Move gecko_bindings and gecko_string_cache into the style crate 2016-09-24 19:25:55 +05:30
check_bindings.py Script-generated tests for Servo_* gecko bindings 2016-10-06 16:18:54 +01:00
README.md Update README for bindgen tools 2016-09-27 18:07:30 +05:30
regen.py Vendor m-c's nsstring in-tree 2016-10-12 18:12:52 +05:30
regen.sh Minor cleanup to the bindgen scripts 2016-09-27 18:07:39 +05:30
regen_atoms.py Eliminate warning about unsafe references to extern static variables. 2016-10-11 14:05:27 +05:30
setup_bindgen.sh Minor cleanup to the bindgen scripts 2016-09-27 18:07:39 +05:30

Geckolib tools

This directory contains simple tools for generating the Rust bindings for stylo.

setup_bindgen.sh

This clones Servo's version of bindgen, and uses llvm-3.8 library to build it. It will then be used to generate the Rust bindings.

regen.sh

This will regenerate the bindings for the ServoBindings.h file in your gecko build. The generated bindings live in components/style/gecko_bindings/bindings.rs. For structs, the bindings are in components/style/gecko_bindings/structs_*