Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Make generated SDK files readonly #16

Open
rkr35 opened this issue Jul 6, 2022 · 0 comments
Open

Make generated SDK files readonly #16

rkr35 opened this issue Jul 6, 2022 · 0 comments

Comments

@rkr35
Copy link
Owner

rkr35 commented Jul 6, 2022

Currently the generated SDK files are not readonly.

If the programmer accidentally performs a write in one of these files—because they, for example, had FSD.rs open in their editor and saved the file with an unintentional change—then rustc compiles the entire SDK crate again. This recompilation can take a minute or longer, which is annoying compared to the seconds of an incremental compile of a clean SDK.

To prevent these accidental SDK recompiles, we should set the readonly flag on the generated files.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant