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

https://github.com/brglng/rxx

Rust-flavored C++ template library
https://github.com/brglng/rxx

cpp cpp11 rust

Last synced: 3 months ago
JSON representation

Rust-flavored C++ template library

Awesome Lists containing this project

README

        

# rxx

`rxx` is a C++ library who aims to bring Rust goodies to C++.

## Prerequisites

- Compiler with C++11 support
- I/O related modules only support Unix-like OSes at the moment

## Differences from Rust

- All types are by default mutable.
- STL style iterators are provided to be compatible with
`for (auto&& elem : container)` syntax.
- Macros are in all upper case and prefixed with `RXX_`.
- Names of all types are in CamelCase.
- No literal support (can be added in the futrue).

## Usage

`rxx` uses [CMake](https://cmake.org). You can either include `rxx` in your
build tree:

```cmake
add_subdirectory(rxx)
target_link_library(YourProject PUBLIC Rxx::rxx)
```

or install `rxx` somewhere and use `find_package` to find it:

```cmake
find_package(Rxx)
target_link_library(YourProject PUBLIC Rxx::rxx)
```