Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/surpher/swift-linux
https://github.com/surpher/swift-linux
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/surpher/swift-linux
- Owner: surpher
- Created: 2021-07-28T05:15:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-02T07:40:39.000Z (over 3 years ago)
- Last Synced: 2024-10-03T05:06:48.352Z (about 2 months ago)
- Language: Swift
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# swift-linux
## SwiftHTTP
Just testing out how Swift runs on Linux by tryingt o create a simple API client that fetches data from [https://swapi.dev/api](https://swapi.dev.api).
```shell
git clone https://github.com/pact-foundation/pact-reference
cd pact-reference/rust/pact_ffi
cargo build --release
export LD_LIBRARY_PATH=/absolute/path/to/pact-reference/rust/target/release/
swift build && .build/debug/SwiftHTTP
swift test -Xlinker -L/absolute/path/to/pact-reference/rust/target/release/
```