Lukasz Anforowicz | abf02de | 2023-02-21 16:39:55 -0800 | [diff] [blame] | 1 | # Rust bindings for the C++ standard library |
| 2 | |
| 3 | Disclaimer: This project is experimental, under heavy development, and should |
| 4 | not be used yet. |
| 5 | |
| 6 | This directory contains the `cc_std` Rust crate - the crate generated by |
| 7 | `rs_bindings_from_cc` and providing bindings for the C++ standard library. For |
| 8 | example this crate provides: |
| 9 | - The `cc_std::std::string_view` type alias (corresponding to |
| 10 | [`std::string_view`](https://en.cppreference.com/w/cpp/header/string_view) |
| 11 | in C++) |
| 12 | - The `cc_std::tm` struct (corresponding to |
| 13 | [`tm`](https://en.cppreference.com/w/c/chrono/tm) |
| 14 | in C++) |
| 15 | |
| 16 | In addition to automatically generated bindings, the crate also provides |
| 17 | manually authored trait implementations that supplement the automated bindings. |
| 18 | For example: |
| 19 | - `impl From<&'static str> for string_view` |