Run existing Vapor app without installing OpenSSL?

I'm working on a small Vapor application that acts as a mock server for another project. My plan is to distribute this mock server to others, and I was hoping to make the setup as simple as possible.

I used vapor new to create the app, and the resulting project requires OpenSSL to be installed in order to run. I don't need the mock server to use SSL, so I'm wondering if there's a way to configure a Vapor app so that it doesn't need OpenSSL.

Edit: Forgot to mention that I'm using Vapor Toolbox 3.1.10, Vapor 3.3.0, and Swift 5.0.1 on macOS.

Unfortunately SPM doesn't support optional dependencies, but Vapor needs to have a dependency on OpenSSL for the off-chance you do need SSL - in addition I believe Vapor uses it for some Crypto implementations.

/CC @tanner0101

1 Like