Swiftpack.co - swift-libp2p/swift-libp2p-core as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by swift-libp2p.
swift-libp2p/swift-libp2p-core 0.2.1
The core LibP2P Interfaces / Protocols and Abstractions backing the swift-libp2p project
⭐️ 5
🕓 39 weeks ago
iOS macOS
.package(url: "https://github.com/swift-libp2p/swift-libp2p-core.git", from: "0.2.1")

LibP2PCore

Swift Package Manager compatible Build & Test (macos and linux)

The core LibP2P Interfaces / Protocols and Abstractions backing the swift-libp2p project

Table of Contents

Overview

LibP2PCore is a repository / dependency that houses the building blocks for swift-libp2p.

Note:

Install

Include the following dependency in your Package.swift file

let package = Package(
    ...
    dependencies: [
        ...
        .package(name: "LibP2PCore", url: "https://github.com/swift-libp2p/swift-libp2p-core.git", .upToNextMajor(from: "0.0.1"))
    ],
        ...
        .target(
            ...
            dependencies: [
                ...
                .product(name: "LibP2PCore", package: "swift-libp2p-core"),
            ]),
        ...
    ...
)

Usage

Example

check out the tests for more examples


import LibP2PCore

// You now have access to thing like PeerID, Multiaddr, Connections, Swift-NIO, etc...

API

Not Applicable

Contributing

Contributions are welcomed! This code is very much a proof of concept. I can guarantee you there's a better / safer way to accomplish the same results. Any suggestions, improvements, or even just critques, are welcome!

Let's make this code better together! 🤝

Credits

License

MIT © 2022 Breth Inc.

GitHub

link
Stars: 5
Last commit: 39 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics