π SwiftProtoParser v0.1.0 - First Release
The first comprehensive Swift library for parsing Protocol Buffers .proto files into AST and descriptors.
β¨ Key Features
- Complete Proto3 Support - All syntax including extend statements and qualified types
- Enterprise Architecture - Dependency resolution, incremental parsing, thread safety
- High Performance - Sub-millisecond parsing with smart caching
- Production Quality - 1086 tests (100% passing), 95%+ code coverage
π Quick Start
import SwiftProtoParser
// Basic parsing
let result = SwiftProtoParser.parseProtoFile("user.proto")
// With dependencies
let result = SwiftProtoParser.parseProtoFileWithImports("main.proto", importPaths: ["/protos"])
// Generate SwiftProtobuf descriptors
let descriptors = SwiftProtoParser.parseProtoToDescriptors("service.proto")
π Platforms
- macOS 12.0+, iOS 15.0+, Linux
- Swift 5.9+
- Only dependency: SwiftProtobuf 1.29.0+
π Production Ready
Tested on real production .proto files with complete proto3 specification compliance. Ready for enterprise use with excellent performance and reliability.
π¦ Installation
Swift Package Manager:
.package(url: "https://github.com/truewebber/swift-protoparser.git", from: "0.1.0")
CLI:
swift package add https://github.com/truewebber/swift-protoparser.git
MIT Licensed β’ Ready for Production Use β’ Community Contributions Welcome
#swift #protobuf #proto3 #parser #ast #grpc