Bernardo Meurer
Bernardo Meurer
Workspace support would be awesome.
@kennytm Sure, and in my case that's what I'm doing right now, but I meant to open the issue with a more generic idea, and not so much as 'how...
I'll try and repro my issue again; it had happened as I attempted to move my company to a new nightly, and then we encountered an ICE in the cargo-udeps...
Maybe @andir can weigh in on how flexible `buildRustCrate` will be to these things
``` Building build.rs (wayland-protocols) Running rustc --crate-name build_script_build build.rs --crate-type bin -C opt-level=3 -C codegen-units=12 --edition 2015 --cfg feature="client" --cfg feature="default" --cfg feature="unstable_protocols" --cfg feature="wayland-client" --out-dir target/build/wayland-protocols --emit=dep-info,link -L dependency=target/buildDeps...
This currently impedes `crate2nix` from working with any packages that have `winit` in their dependency tree.
I'm on crate2nix master and on the latest nixos-unstable-small channel of NixOS. It actually took me quite a while to reproduce this this morning. Compiling `wayland-rs` as you did seems...
Believe it or not this is the cause: https://github.com/rust-lang/rustfmt/issues/3988
@kolloch How can I configure rustfmt for `crate2nix`?
That's correct, `rustfmt` is somehow involved here, and setting `normalize_doc_attributes = false` in your `.rustfmt.toml` solves the issue. How exactly this happens I don't fully understand, it's some macro magic....