cbindgen icon indicating copy to clipboard operation
cbindgen copied to clipboard

Ignore dev-dependencies

Open Manishearth opened this issue 3 years ago • 5 comments

Currently cbindgen in parse-deps mode seems to include dev-dependencies and build-dependencies. It would be nice if that could be avoided.

(In my case it means that we hit https://github.com/eqrion/cbindgen/issues/665 even though it's only used by criterion)

Manishearth avatar Mar 10 '21 22:03 Manishearth

Yeah, that's silly. Should be trivial to fix, let me know if you're blocked on it or need it fast and I should be able to fix quick.

emilio avatar Mar 14 '21 10:03 emilio

Not blocked on it at the moment, I'm writing manual bindings for now.

Manishearth avatar Mar 14 '21 20:03 Manishearth

One challenge here will probably be that when you invoke cargo metadata, it downloads all dependencies regardless of how they're pulled in. So while we may be able to make cbindgen not parse dev-dependencies, we may still end up having to fetch them.

jonhoo avatar Apr 06 '21 17:04 jonhoo