You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 12, 2022. It is now read-only.
I was looking to add a wrapper for JSExternalStringCallbacks so it could be used for rust, and I've updated jsglue.cpp for it.
I was wondering how I can update glue.rs since it seems to be automatically generated. I was looking at the instructions in comments in gen.py but it seems to be very outdated.
# To generate jsglue:
# DYLD_LIBRARY_PATH=~/versioned/rust-mozilla/build/llvm/x86_64-apple-darwin/Release+Asserts/lib/ ~/versioned/rust-bindgen/bindgen ./jsglue.c -I ../../build/src/mozjs/dist/include/ -match glue > glue.rs
# jdm used
# LD_LIBRARY_PATH=~/sdb/rust/build/llvm/x86_64-unknown-linux-gnu/Release+Asserts/lib/ ~/sdb/rust-bindgen/bindgen ./jsglue.c -I ../../build/src/mozjs/dist/include/ -isystem /usr/lib/gcc/x86_64-redhat-linux/4.7.0/include/ -match glue >glue.rs
# on Fedora 17
#
# and remember to mark all generated functions as #[rust_stack]
I think it would be useful if we updated this so that anyone can modify jsglue.cpp easily.
I was looking to add a wrapper for
JSExternalStringCallbacksso it could be used for rust, and I've updatedjsglue.cppfor it.I was wondering how I can update
glue.rssince it seems to be automatically generated. I was looking at the instructions in comments ingen.pybut it seems to be very outdated.I think it would be useful if we updated this so that anyone can modify
jsglue.cppeasily.Here's the change I was trying to make: redfire75369@6893940