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
- Host: GitHub
- URL: https://github.com/brglng/rxx
- Owner: brglng
- License: mpl-2.0
- Created: 2018-08-24T09:53:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-06T09:00:41.000Z (over 4 years ago)
- Last Synced: 2025-01-21T06:11:33.285Z (5 months ago)
- Topics: cpp, cpp11, rust
- Language: C++
- Homepage:
- Size: 191 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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)
```