Corporate Network: Cargo Build Blocked by Windows Security

⚓ rust    📅 2025-06-13    👤 surdeus    👁️ 2      

surdeus

It seems I am the only person in my organization of about 20,000 people that uses Rust. I have managed to file a request a get it packaged so that it installs (v 1.87). I have managed to define the config.toml that sets the proxy so that cargo test --lib can download packages and begin compiling.

However, during a cargo test --lib (or any type of compile) I receive this error:

Windows Security: This content is blocked.
For your protection, your administrator is not allowing you to access content from C:\Program Files\my-project\target\release\build\paste-e567683698fcaa5\build-script-build.exe

I have admin rights for my PC which means that I can unblock this, but this is too late in the process, the next build process will create a different random name for the folder and the file will again be blocked, so the process can never complete for all the many sub folders that generate these files.

My organization's IT support are, in some ways, trying to help, but have not encountered this issue or Rust before so are coming up empty at the moment. They also commented that: "yeah, I've looked into how Rust works for these scenarios. But it seems quite a bit of an oversight from Rust Vendor, since security standards are really strict nowadays."

Anyone can suggest any ways forwards?

6 posts - 4 participants

Read full topic

🏷️ rust_feed