Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/airbnb/sparsam
Fast Thrift Bindings for Ruby
https://github.com/airbnb/sparsam
Last synced: about 2 months ago
JSON representation
Fast Thrift Bindings for Ruby
- Host: GitHub
- URL: https://github.com/airbnb/sparsam
- Owner: airbnb
- License: other
- Created: 2017-06-30T17:17:18.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T19:58:16.000Z (9 months ago)
- Last Synced: 2024-06-04T15:40:20.991Z (3 months ago)
- Language: C++
- Homepage: https://sparsam-docs.surge.sh/
- Size: 339 KB
- Stars: 124
- Watchers: 22
- Forks: 25
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Sparsam ![Build Status](https://github.com/airbnb/sparsam/actions/workflows/rspec_rubocop.yml/badge.svg?branch=main) [![Coverage Status](https://coveralls.io/repos/github/airbnb/sparsam/badge.svg?branch=master)](https://coveralls.io/github/airbnb/sparsam?branch=master) [![Gem Version](https://badge.fury.io/rb/sparsam.svg)](https://badge.fury.io/rb/sparsam)
New Thrift bindings and generator for Ruby!## Super basic Example
See the docs folder for more detailed information
```
$ sparsam-gen my_struct.thrift
$ bundle exec irb
irb(main):001:0> require './gen-ruby/my_struct_types'
=> true
irb(main):002:0> require 'sparsam'
=> true
irb(main):003:0> obj = MyStruct.new
=> #
irb(main):004:0> serialized = obj.serialize # turn object into string
=> "\x00"
irb(main):005:0> obj2 = Sparsam::Deserializer.deserialize( MyStruct, serialized ) # deserialize string into obj
=> #
```