PerfectlySoft / Perfect

Server-side Swift. The Perfect core toolset and framework for Swift Developers. (For mobile back-end development, website and API development, and more…)
https://www.perfect.org
Apache License 2.0
13.83k stars 944 forks source link

There needs to be a way to build without UUID #286

Open igor-makarov opened 5 years ago

igor-makarov commented 5 years ago

UUID in Utilities.swift has been deprecated, but it's still impossible to build on a system that doesn't have uuid-dev installed.

The recommended solution of installing it with apt-get isn't always possible. For example, Netlify Docker images run unprivileged as a security policy and do not have it installed.

Perhaps gating it with #if swift(<5.0) and using __has_include in the C headers would work?