Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix build with immutable src #10

Closed
wants to merge 1 commit into from

Conversation

niklasf
Copy link
Contributor

@niklasf niklasf commented Jun 9, 2024

The source directory is generally assumed to be immutable. Place generated files into OUT_DIR instead.

@lazytiger
Copy link
Owner

I put binding.rs in the src folder for IDE code assistant.

@niklasf
Copy link
Contributor Author

niklasf commented Jun 11, 2024

Mhh ... I don't have a great solution :(

All things considered, giving this up and generating the file in OUT_DIR is probably best. rust-analyser would still be able to handle it, text-based autocomplete not so much.

Alternatively, going back to manually generating the file in src is not great, but still better than failing to build with read-only src.

@lazytiger lazytiger closed this Oct 8, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants