How to compile one module in release mode and the rest in debug mode

i have a cryptography module that takes a really long time to compute a certain authentication hash in debug mode. (performance is fine in release mode). but i also have other modules in my application that take a very long time to compile in release mode, and do not really need release optimizations for normal development.

is there a way to get the SPM to compile the cryptography module with release optimizations, and the rest of the dependency graph in debug mode?