An open API service indexing awesome lists of open source software.

https://github.com/stiffstream/rapidjson_mxxru

A light MxxRu wrapper for RapidJSON library.
https://github.com/stiffstream/rapidjson_mxxru

Last synced: 8 months ago
JSON representation

A light MxxRu wrapper for RapidJSON library.

Awesome Lists containing this project

README

          

# What Is It?

A light mxxru wrapper for RapidJSON library.

# How To Use

## Prerequisites

To use *rapidjson_mxxru* it is necessary to have:

* C++11 compiler (VC++14.0, GCC 5.1 or above, clang 3.6 or above);
* [rapidjson](https://github.com/miloyip/rapidjson).

## Obtaining

### Cloning of Hg Repository

```sh
git clone https://github.com/Stiffstream/rapidjson_mxxru
```
And then:
```sh
cd rapidjson_mxxru-1.0
mxxruexternals
```
to download and extract *rapidjson_mxxru*'s dependencies.

### MxxRu::externals recipe

For *rapidjson_mxxru* itself:
```ruby
MxxRu::arch_externals :rapidjson_mxxru do |e|
e.url 'https://github.com/Stiffstream/rapidjson_mxxru/archive/v.1.0.1.tar.gz'

e.map_dir 'dev/rapidjson_mxxru' => 'dev'
end
```

For *rapidjson* dependency:
```ruby
MxxRu::git_externals :rapidjson do |e|
e.url 'https://github.com/miloyip/rapidjson.git'
e.commit 'ab791ae' # Latest at 2016.08.09
e.map_dir 'include/rapidjson' => 'dev/rapidjson/include'
end
```

## Compilation

RapidJSON is header only library.
To test mxxru wrapper and build RapidJSON samples:
```sh
git clone https://github.com/Stiffstream/rapidjson_mxxru
cd rapidjson_mxxru-1.0
mxxruexternals
cd dev
ruby build.rb
```

*NOTE.* It might be necessary to set up `MXX_RU_CPP_TOOLSET` environment variable.

# License

*rapidjson_mxxru* is distributed under
[BSD-3-Clause](http://spdx.org/licenses/BSD-3-Clause.html) license. See LICENSE
file for more information.

For the license of *RapidJSON* library see LICENSE file in *rapidson*
distributive.