blob: d7cc3c6376ed1708722dc21d3b2b947ed98697b6 [file] [log] [blame] [view]
Lukasz Anforowiczabf02de2023-02-21 16:39:55 -08001# Rust bindings for the C++ standard library
2
3Disclaimer: This project is experimental, under heavy development, and should
4not be used yet.
5
6This 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
8example 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
16In addition to automatically generated bindings, the crate also provides
17manually authored trait implementations that supplement the automated bindings.
18For example:
19- `impl From<&'static str> for string_view`