kitgit

tirbofish/dropbear · diff

83e2d41 · tk

helper macros for the swift lang such as @Script(name) and @ScriptEntry (i also realised that i don't have a good enough build so i will run jarvis, run github actions)

Unverified

diff --git a/.gitignore b/.gitignore
index dc8b8b9..ec61ccd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,4 +27,5 @@ docs
 dropbear_future-queue/test.log
 
 */.build/*
-.build/*
\ No newline at end of file
+.build/*
+*.resolved
\ No newline at end of file
diff --git a/Package.swift b/Package.swift
index e5ab6f8..ae52bc3 100644
--- a/Package.swift
+++ b/Package.swift
@@ -1,6 +1,7 @@
 // swift-tools-version: 6.2
 
 import PackageDescription
+import CompilerPluginSupport
 
 let package = Package(
     name: "dropbear",
@@ -12,11 +13,19 @@ let package = Package(
         ),
     ],
     dependencies: [
-        // .package(url: "https://github.com/nicklockwood/VectorMath", from: "0.4.0")
+        .package(url: "https://github.com/swiftlang/swift-syntax", from: "602.0.0")
     ],
     targets: [
+        .macro(
+            name: "dropbear_macro",
+            dependencies: [
+                .product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
+                .product(name: "SwiftCompilerPlugin", package: "swift-syntax")
+            ]
+        ),
         .target(
-            name: "dropbear"
+            name: "dropbear",
+            dependencies: ["dropbear_macro"]
         ),
         .testTarget(
             name: "dropbearTests",
diff --git a/Sources/dropbear/dropbear.swift b/Sources/dropbear/dropbear.swift
index 24a86be..97c09d4 100644
--- a/Sources/dropbear/dropbear.swift

Large diffs are not rendered by default. Showing the first 50 of 373 lines. Show full diff