https://github.com/swiftcordapp/etfkit
Encode and decode Codables to Erlang's External Term Format (ETF)
https://github.com/swiftcordapp/etfkit
etf swift
Last synced: 7 months ago
JSON representation
Encode and decode Codables to Erlang's External Term Format (ETF)
- Host: GitHub
- URL: https://github.com/swiftcordapp/etfkit
- Owner: SwiftcordApp
- Created: 2022-06-08T15:03:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-11T03:25:26.000Z (over 3 years ago)
- Last Synced: 2025-01-13T04:44:54.440Z (9 months ago)
- Topics: etf, swift
- Language: Swift
- Homepage:
- Size: 63.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ETFKit
[](https://github.com/SwiftcordApp/ETFKit/actions/workflows/build-and-test.yml)
[](https://codecov.io/gh/SwiftcordApp/ETFKit)Encoder/decoder for Erlang's [External Term Format](https://www.erlang.org/doc/apps/erts/erl_ext_dist.html) (version 131).
Designed to be a drop-in replacement for JSONDecoder/JSONEncoder. Simply
replace all usages of JSONDecoder/JSONEncoder with ETFEncoder/ETFDecoder. (WIP)### Types that can be encoded/decoded:
- [x] `nil`
- [x] `Bool`
- [x] `String`
- [ ] Atoms
- [x] `String` with unicode
- [x] `Double`
- [x] `Int8`
- [x] `Int32`
- [ ] `Int64`
- [x] Objects
- [x] Arrays with any supported type
- [ ] Tuples
- [ ] PIDs
- [ ] Ports
- [ ] Exports
- [ ] References