#Disable building a cargo project for specific cargo targets?

7 messages · Page 1 of 1 (latest)

elder vine
#

there's no good tool to do this. you can cfg out the code that doesn't compile but you can't disable entire packages in a workspace

elder vine
#

that is likely a good idea

#

another option is to keep what you have except to get rid of the workspace

#

the disadvantage of this is that you can only use cargo commands on one package at a time

golden kayak
#

It uses a conditional compilation in main.rs

#

To choose the implementation code