Why cargo ignores some part of .cargo/config.toml on NixOS?

⚓ Rust    📅 2025-07-10    👤 surdeus    👁️ 4      

surdeus

I am writing an operating system in rust, and I am recently working on NixOS. But when I was trying to run it, I found that the [target.'cfg(target_os = "none")'] section seems to be ignored by cargo, because limine won't try to find the .dynamic section if cargo doesn't ignore that part, To be make sure it was not my problem, I switched back to Arch Linux and tried again. To my surprise, it worked well. So why did cargo ignore some part of .cargo/config.toml on NixOS? Has anyone else experienced any problem similar to this?

4 posts - 2 participants

Read full topic

🏷️ rust_feed