Giter Club home page Giter Club logo

Comments (6)

emilio avatar emilio commented on May 26, 2024

Actually we have a flag to ignore unknown types, I don't think that's the problem.

The problem is most likely that we generate bad bindings for some kind of C++. We have an extensive set of flags to ignore types, mark them as opaque, etc. That's probably enough, except in the case we generate a bad type that is absolutely necessary to rust-mozjs.

Nick, do you know what are the blockers here? I'm happy to help :)

from rust-bindgen.

Ms2ger avatar Ms2ger commented on May 26, 2024

Once the current smup lands, I'll try to see if we can replace some of those ifdefs by bindgen flags.

from rust-bindgen.

fitzgen avatar fitzgen commented on May 26, 2024

Does bindgen support keeping those flags in some kind of configuration file? Something we can keep in m-c/js/src/bindgen-flags or something? I think that would make keeping C-I green easier for spidermonkey hackers who don't necessarily want to touch bindgen/rust stuff when adding new JSAPI things.

from rust-bindgen.

fitzgen avatar fitzgen commented on May 26, 2024

Nick, do you know what are the blockers here? I'm happy to help :)

Thanks! :-D

Not yet, I have a couple things to get done first (grrr NSPR) but I was going to start just running bindgen on m-c's js/ and filing bugs / submitting PRs for things that fail without downstream patches.

Wash, rinse, repeat until everything Just Works :)

from rust-bindgen.

emilio avatar emilio commented on May 26, 2024

Sounds good to me :-)
Regarding the bindgen-flags thing, I don't think something like that would be difficult to implement.

For comparison, now what we have in stylo, for example, is a python script that takes care of invoking bindgen appropriately, and it works fairly well.

from rust-bindgen.

emilio avatar emilio commented on May 26, 2024

This is fixed, isn't it?

from rust-bindgen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.