Root Swift package mirroring PureYAML's structure, rules, and verification gates. Includes the XML node model (Node, Element, Attribute, QualifiedName), a working emitter (Serializer) with escaping and pretty/compact options, and structural validation. The parser surface is stable; parse() raises notImplemented until the scanner lands, pinned by a test. - dependency-free, namespaced under PureXML - portability and style gates carried over (style, namespacing, forbidden patterns, swiftformat, swiftlint, linux, wasm, windows CI) - 11 tests passing
29 lines
554 B
Swift
29 lines
554 B
Swift
// swift-tools-version: 6.1
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "PureXML",
|
|
products: [
|
|
.library(
|
|
name: "PureXML",
|
|
targets: ["PureXML"],
|
|
),
|
|
],
|
|
dependencies: [],
|
|
targets: [
|
|
.target(
|
|
name: "PureXML",
|
|
path: "Sources",
|
|
),
|
|
.testTarget(
|
|
name: "PureXMLTests",
|
|
dependencies: ["PureXML"],
|
|
path: "Tests",
|
|
resources: [
|
|
.copy("Fixtures"),
|
|
],
|
|
),
|
|
],
|
|
)
|