tree: e643358e2592744f54a10459493768f0fee64827 [path history] [tgz]
  1. test/
  2. BUILD
  3. conversion_function_helpers.h
  4. cpp_std_allocator.rs
  5. README.md
  6. slice_ptr.rs
  7. std_allocator.h
  8. string.rs
  9. string_view.rs
  10. unique_ptr.rs
  11. vector.rs
  12. vector_partial_eq.rs
support/cc_std/README.md

Rust bindings for the C++ standard library

This directory contains the cc_std Rust crate - the crate generated by rs_bindings_from_cc and providing bindings for the C++ standard library. To depend on it, add the following to your rust_library rule:

cc_deps = ["//support/cc_std"]

This crate provides, for example:

  • The cc_std::std::raw_string_view type alias (corresponding to std::string_view in C++)
  • The cc_std::tm struct (corresponding to tm in C++)

In addition to automatically generated bindings, the crate also provides manually authored trait implementations that supplement the automated bindings. For example:

  • impl From<&'static str> for raw_string_view