-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom attribute panicked when using it in a member of a workspace #2
Comments
This issue seems to be linked to https://github.com/yvan-sraka/antlion/issues/1! Thank you very much for the bug report. I will investigate it and get back to you shortly :) |
Thank you for responding. It seems that they are 2 different issues. I add an empty |
In this pull request, https://github.com/yvan-sraka/hs-bindgen-attribute/pull/3/files#diff-1492d610b0587c015f48aac6fff2fee1fcc7310f2c5ef01d6c178332ebfda682R14-R18, I introduced a The issue at hand is that you want to place the |
Maybe we need to wait for rust-lang/cargo#3946 to finish. |
Thank you for your pointers. It's a bit unclear to me, reading the cargo documentation, how From what I understand so far, I'm also uncertain if these environment variables might be accessible only in a I will update my PR and run some tests to clarify this. If you already have a sample repository, that would be very helpful :) |
Thank you! According to my research, cargo environment variables can be accessible here. However, there is a new bug. Generated haskell source files will try writing in root dir rather than hs-bindgen-attribute/src/lib.rs Lines 51 to 54 in ce0897a
|
Thank you for your feedback! I've updated my PR based on your suggestions :) I also decided to remove the option of setting |
When using
hs_bindgen
macro in a member of a workspace, it will raise errorAt this time, the current dir is project root, but
hsbindgen.toml
is generated in member dir. It causetoml::config()
failed to findhsbindgen.toml
.Following is a reproduced project
./Cargo.toml
At this project,
toml::config()
will try finding./hsbindgen.toml
, rather than./binding-haskell/hsbindgen.toml
.The text was updated successfully, but these errors were encountered: