-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add "Creating a Macro Package" to Usage.md
#6944
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
Add "Creating a Macro Package" to Usage.md
#6944
Conversation
Thanks, this looks good! Could you also add a link to https://docs.swift.org/swift-book/documentation/the-swift-programming-language/macros in there? |
@swift-ci please test |
@swift-ci please test |
Looks like we're failing to build the compiler on the Linux job (obviously unrelated to this PR):
|
Co-authored-by: Max Desiatov <[email protected]>
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.
Thanks!
@swift-ci test |
@swift-ci test windows |
Add a section containing and describing
swift package init --type macro
.Motivation:
I was looking for the documentation and it wasn't there.
Modifications:
Added the section by copying the Library Package and Executable Package sections' format, showing the command line input and output, describing the output of InitPackage.swift and linking to documentation for the sample macro.
Result:
Only one file is changed, which is documentation, so no change in behaviour of Swift Package Manager.