Conversation
|
Hmm looks like quite an undertaking. I haven't looked into changes deep enough yet (and it will probably take me a few days until I can). Do you think it will make more sense to maintain both parsers in the same repository, or fork and use VK parser as base for GL? |
I was debating about that. feature flags can just drop it from the compilation so it might as well not be there. probably easier to maintain then splitting it into a separate repository. what is your view on this. you can split it up into separate package in one repository but then you have to publish them separately. I haven't published any packages on cargo so I'm not sure how much work it would be. |
|
Neither compilation nor publishing worries me, to be honest. Compilation can, as you said, drop one or the other using feature flags. Publishing is straightforward and I don't do it often enough to be worried about it. |
that's why all the type information is duplicated the only thing that is shared in parsing utilities that your wrote. can easily live as its own package could be moved to another crate how would you share the utilities between the two though? if you have the utilities in another crate do you need to publish that to cargo? maybe it does make sense to split this into its own crate :? |
|
Yep, all crates would have to be published to cargo. |
that sounds kind of annoying. umm yea, would need to just duplicate some of those common utilities. I guess that is not too bad really. |
|
I think it's better to leave it all in one crate for now. |
|
this is what I've been doing in the meantime with these changes: https://github.com/pollend/glew-rs |
|
I finally got around to looking at the changes you've made (sorry it took so long). For the most part, it looks very much the way I expected it to, which is definitely a good thing. There are only two things that stand out to me:
|
I'll try make those changes on the weekend. you can create a separate branch and publish that but keep the old package? |
|
I actually don't know what will happen when I try to publish update to a crate that includes change of name. Maybe it will magically do what I want it to ... but I have doubts. |
at worst you create a new repository. I'm assuming crates keys off the package name and its reserved when you use it. |
Why? A crate is published under the name that is specified in |
9d6e63d to
8e41a74
Compare
this is a bit of a change to also support parsing: https://github.com/KhronosGroup/OpenGL-Registry
I moved some things into a common utility to so I can share logic between vulkan and opengl xml. decided to replicate the types since the xml differs just enough where it won't quite align.