Skip to content
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

Use the source input file as bin path if possible #103

Merged
merged 5 commits into from
Jun 12, 2023

Conversation

MiSawa
Copy link
Contributor

@MiSawa MiSawa commented May 22, 2023

Context: #11 (comment)

This PR makes rust-script not generate the source file in the package directory if possible, and let Cargo.toml refer to the given script file as the binary source path in that case. This will let cargo check on the package directory output the original file path instead of the generated one, which makes rust-analyzer correctly treat it in fly check.

@fornwall fornwall merged commit c98f7fe into fornwall:main Jun 12, 2023
@fornwall
Copy link
Owner

Thanks @MiSawa and nice work!

This has now been released in version 0.28.0.

@fornwall fornwall mentioned this pull request Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants