-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Apple's Swift Package Manager #4010
Support Apple's Swift Package Manager #4010
Conversation
cf86d06
to
f435b5e
Compare
@nlohmann may you please re-trigger Ubuntu workflows? |
No, there is an issue with the CI right now. |
610941c
to
d58f4d0
Compare
@nlohmann may you trigger this one? As the CI now in a good state. |
Please update to the latest |
**Reason** - Main way to develop under Apple's platforms is using SPM **Changes** - Added Package.swift - Added _SwiftPackageManagerFile.cpp to single_include/nlohmann in order SPM to see it as a C++ source file - Added .build to .gitignore **Context** - SPM is a package manager for Swift and C-based languages. It is the main way to develop under Apple's platforms. It is also used to build Swift packages for Linux.
d58f4d0
to
3843444
Compare
@nlohmann rebased PR, have a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file really needed? I don’t like adding source files to this folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wouldn't be needed if I'll bump the SwiftPM version to 5.9 which is shipped with Xcode 15.0 (the most recent one which is still in beta now and will be officially released in a month or so).
It could be fine as there are no SwiftPM users of your repo at all right now. And will allow users to use it with SwiftPM, but only beginning with the latest development tools. Which maybe fine keeping in mind that Apple pushes developers on the freshest releases. So, if you have no objections it's a way to get rid of this annoying file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that Xcode 15 is released, can you update the MR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, sure, will do it soon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries - I made you wait for several months...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that Xcode 15 is released, can you update the MR?
@nlohmann minGW checks have failed. May you retry or this is some persistent failure? |
It is fixed on the latest develop branch. Please update, it should work now. |
@nlohmann trigger CI, please |
b674550
to
b87c908
Compare
@nlohmann trigger CI once again please |
Looking forward to getting this merged! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Thanks! |
Reason
Changes
Context
[Describe your pull request here. Please read the text below the line, and make sure you follow the checklist.]
Pull request checklist
Read the Contribution Guidelines for detailed information.
include/nlohmann
directory, runmake amalgamate
to create the single-header filessingle_include/nlohmann/json.hpp
andsingle_include/nlohmann/json_fwd.hpp
. The whole process is described here.Please don't
#ifdef
s or other means.