i2o
Release 0.62.0
I2O公用事業I2O是CXON庫實施的文件格式之間轉換的過濾器集合,該文件格式目前由JSON和CBOR組成
$ json2cbor < in.json > out.cbor # JSON to CBOR
$ cbor2json < in.cbor > out.json # CBOR to JSON
$ cat in.cbor | cbor2json | json2json > out.json # CBOR to pretty JSON JSON該實施嚴格符合RFC8259 / ECMA-404 。
CBOR實施符合RFC7049 。
I2O需要C++11兼容的編譯器。 C++17符合<charconv> ( P0067R5 )的符合編譯器建議獲得最佳性能。
除標準庫外,唯一的依賴性是CXON庫。
可以使用POSIX系統上的包含的makefile構建和安裝I2O :
$ git clone https://github.com/oknenavin/cxon.git
$ sudo make -C cxon install
$ git clone https://github.com/oknenavin/i2o.git
$ sudo make -C i2o install默認安裝目錄是/usr/local/bin ,可以使用DESTDIR和prefix變量更改,例如:
$ git clone https://github.com/oknenavin/cxon.git
$ sudo make -C cxon DESTDIR= ~ prefix=/. install
$ git clone https://github.com/oknenavin/i2o.git
$ sudo make -C i2o DESTDIR= ~ prefix=/. install將分別以~/include和~/bin安裝CXON和I2O 。
由於CXON是僅標題庫,因此您可以跳過其安裝:
$ git clone https://github.com/oknenavin/cxon.git
$ git clone https://github.com/oknenavin/i2o.git
$ sudo make -C i2o CXXFLAGS= " ../cxon/src " install或者只是將其構建到位:
$ git clone https://github.com/oknenavin/cxon.git
$ git clone https://github.com/oknenavin/i2o.git
$ make -C i2o CXXFLAGS= " ../cxon/src " # the binaries are in i2o/.out 歡迎任何形式的貢獻(反饋,建議,代碼,測試,文檔等)。
通過github聯繫(即使只是一個問題或評論,也會創建問題)或通過郵件進行聯繫。
根據MIT許可分發。有關更多信息,請參見LICENSE 。
github