I think filesystem access from proc macros is a controversial issue. There were suggestions to completely sandbox them.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Binary directory about 'cargo build' and 'cargo build --target x86_64-unknown-linux-gnu' under linux | 6 | 425 | April 17, 2025 | |
| Writing sibling assets | 2 | 519 | January 12, 2023 | |
| Pre/post build script via cargo | 11 | 475 | November 21, 2025 | |
| Machine generated code as part of cargo build | 3 | 525 | January 12, 2023 | |
| Customise the target location of cargo build | 2 | 1870 | October 11, 2021 |