Skip to content

Commit d0c1bc5

Browse files
committed
feat: Update README.md
1 parent f912d16 commit d0c1bc5

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ Do not forget about target dependencies:
365365

366366
> [!TIP]
367367
>
368-
> _You can extend compatibility by supporting multiple [`swift-syntax`](https://github.com/swiftlang/swift-syntax) versions_
368+
> _You can extend compatibility of your libraries by supporting multiple [`swift-syntax`](https://github.com/swiftlang/swift-syntax) versions_
369369
>
370370
> ```swift
371371
> .package(
@@ -384,3 +384,10 @@ Do not forget about target dependencies:
384384
> | `0.6.0` | `600.0.0` |
385385
> | `0.7.0` | `601.0.0` |
386386
> | `0.8.0` | `602.0.0` |
387+
>
388+
> _It is also possible to use local [`swift-syntax`](https://github.com/swiftlang/swift-syntax) overrides if some other dependency pervents you from depending on newer [`swift-macro-toolkit`](https://github.com/stackotter/swift-macro-toolkit) version and vice versa. It requires cloning [`swift-syntax`](https://github.com/swiftlang/swift-syntax) into a local directory and depending your app on the local clone. Usually [`swift-syntax`](https://github.com/swiftlang/swift-syntax) updates don't break macros_ 💁‍♂️
389+
>
390+
> ```swift
391+
> .package(path: "<path-to-local-swift-syntax>")
392+
> ```
393+

0 commit comments

Comments
 (0)