Summary

  • Rust ❤️ C++

  • Core concepts

  • Tutorial

  • Other Rust–C++ interop tools

  • Multi-language build system options

    • Cargo
    • Bazel or Buck2
    • CMake
    • More...
  • Reference: the bridge module

    • extern “Rust”
    • extern “C++”
    • Shared types
    • Attributes
    • Async functions
    • Error handling
  • Reference: built-in bindings

    • String — rust::String
    • &str — rust::Str
    • &[T], &mut [T] — rust::Slice<T>
    • CxxString — std::string
    • Box<T> — rust::Box<T>
    • UniquePtr<T> — std::unique_ptr<T>
    • SharedPtr<T> — std::shared_ptr<T>
    • Vec<T> — rust::Vec<T>
    • CxxVector<T> — std::vector<T>
    • *mut T, *const T raw pointers
    • Function pointers
    • Result<T>
Powered by Gitiles| Privacy| Terms
sourcelogblame