You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swift Server folks might want to use this package, and most likely will be deploying via linux. Swift linux does not have the Foundation and CryptoKit frameworks. But there are implementations for linux called FoundationNetworking and Crypto which have the same API.
Thanks for the pointers @abdulajet! If I wanted to test whether this package runs/compiles on Linux distros, do you know how I’d do that in Xcode on macOS?
Do you happen to know how to conditionally import packages for Linux distros? I know how to do compiler conditions based on OS like so:
I figure we’ll need to do something similar for importing Foundation vs FoundationNetworking and CryptoKit vs Crypto but not sure how we’d switch over Linux specifically.
Im not sure about testing on Xcode on macOS, I only ran into issues in my project when I tried to deploy via docker. So maybe you can create a Vapor test project and try run it on docker locally.
Swift Server folks might want to use this package, and most likely will be deploying via linux. Swift linux does not have the Foundation and CryptoKit frameworks. But there are implementations for linux called FoundationNetworking and Crypto which have the same API.
Adding support should be as easy as adding
and
Importing Crypto over CryptoKit
The text was updated successfully, but these errors were encountered: