commit | 4e662aa9ffe445c3cadf4df9164265ffb200aa23 | [log] [tgz] |
---|---|---|
author | Brian Silverman <bsilver16384@gmail.com> | Wed May 11 23:10:19 2022 -0700 |
committer | Brian Silverman <bsilver16384@gmail.com> | Wed May 11 23:10:19 2022 -0700 |
tree | 7dac9f614e65e4c234c3c3b026a4b510b8a08cd4 |
Squashed 'third_party/autocxx/' content from commit 629e8fa53 git-subtree-dir: third_party/autocxx git-subtree-split: 629e8fa531a633164c0b52e2a3cab536d4cd0849 Signed-off-by: Brian Silverman <bsilver16384@gmail.com> Change-Id: I62a03b0049f49adf029e0204639cdb5468dde1a1
This project is a tool for calling C++ from Rust in a heavily automated, but safe, fashion.
The intention is that it has all the fluent safety from cxx whilst generating interfaces automatically from existing C++ headers using a variant of bindgen. Think of autocxx as glue which plugs bindgen into cxx.
For full documentation, see the manual.
autocxx::include_cpp! { #include "url/origin.h" generate!("url::Origin") safety!(unsafe_ffi) } fn main() { let o = ffi::url::Origin::CreateFromNormalizedTuple("https", "google.com", 443); let uri = o.Serialize(); println!("URI is {}", uri.to_str().unwrap()); }
This is not an officially supported Google product.