• Home
  • Raw
  • Download

Lines Matching +full:cxxbridge +full:- +full:cmd

4 [<img alt="github" src="https://img.shields.io/badge/github-dtolnay/CXX-8da0cb?style=for-the-badge&…
5 [<img alt="crates.io" src="https://img.shields.io/crates/v/CXX.svg?style=for-the-badge&color=fc8d62…
6 [<img alt="docs.rs" src="https://img.shields.io/badge/docs.rs-CXX-66c2a5?style=for-the-badge&labelC…
36 fn r_return_primitive() -> usize;
37 fn r_return_shared() -> Shared;
38 fn r_return_rust_string() -> String;
39 fn r_return_sum(_: usize, _: usize) -> usize;
46 fn r_return_shared() -> ffi::Shared {
50 fn r_return_primitive() -> usize {
54 fn r_return_rust_string() -> String {
58 fn r_return_sum(n1: usize, n2: usize) -> usize {
162 // Toy implementation of an in-memory nsp_blobstore.
196 impl->blobs[res] = {std::move(contents), {}};
203 impl->blobs[blobid].tags.emplace(add_tag);
210 auto blob = impl->blobs.find(blobid);
211 if (blob != impl->blobs.end()) {
212 get_metadata.size = blob->second.data.size();
213 std::for_each(blob->second.tags.cbegin(), blob->second.tags.cend(),
244 fn next_chunk(buf: &mut MultiBufs) -> &[u8];
253 fn blobstore_client_new() -> UniquePtr<client_blobstore>;
254 fn put_buf(&self, parts: &mut MultiBufs) -> u64;
256 fn get_metadata(&self, blobid: u64) -> Metadata_Blob;
271 pub fn next_chunk(buf: &mut MultiBufs) -> &[u8] {
353 [build-dependencies]
354 CXX-build = "1.0"
363 .flag_if_supported("-std=C++11")
364 .compile("cxxbridge-demo");
366 println!("cargo:rerun-if-changed=src/main.rs");
367 println!("cargo:rerun-if-changed=src/demo.cc");
368 println!("cargo:rerun-if-changed=include/demo.h");
379 $ cargo install cxxbridge-cmd
380 $ cxxbridge src/main.rs --header > path/to/mybridge.h
381 $ cxxbridge src/main.rs > path/to/mybridge.cc
405 <tr><td>fn(T, U) -&gt; V</td><td>rust::Fn&lt;V(T, U)&gt;</td><td><sup><i>only passing from Rust to …