Searched +full:cxxbridge +full:- +full:cmd (Results 1 – 19 of 19) sorted by relevance
| /third_party/rust/crates/cxx/book/src/build/ |
| D | bazel.md | 4 Starlark-based build systems with the ability to compile a code generator and 5 invoke it as a `genrule` will run CXX's C++ code generator via its `cxxbridge` 8 The tool is packaged as the `cxxbridge-cmd` crate on crates.io or can be built 9 from the *gen/cmd/* directory of the CXX GitHub repo. 12 $ cargo install cxxbridge-cmd 14 $ cxxbridge src/bridge.rs --header > path/to/bridge.rs.h 15 $ cxxbridge src/bridge.rs > path/to/bridge.rs.cc 52 "-o", 54 "-o", 83 ":blobstore-sys", [all …]
|
| D | other.md | 6 - Produce the CXX-generated C++ bindings code. 7 - Compile the generated C++ code. 8 - Link the resulting objects together with your other C++ and Rust objects. 24 - Use the `cxxbridge` command, which is a standalone command line interface to 29 $ cxxbridge src/bridge.rs --header > path/to/bridge.rs.h 30 $ cxxbridge src/bridge.rs > path/to/bridge.rs.cc 33 It's packaged as the `cxxbridge-cmd` crate on crates.io or can be built from 34 the *gen/cmd/* directory of the CXX GitHub repo. 36 - Or, build your own code generator frontend on top of the [cxx-gen] crate. This 39 [cxx-gen]: https://docs.rs/cxx-gen [all …]
|
| /third_party/rust/crates/cxx/ |
| D | BUCK | 10 ":cxx-build", 20 ":cxxbridge-macro", 26 actual = ":cxxbridge", 31 name = "cxxbridge", 32 srcs = glob(["gen/cmd/src/**/*.rs"]) + [ 33 "gen/cmd/src/gen", 34 "gen/cmd/src/syntax", 38 "//third-party:clap", 39 "//third-party:codespan-reporting", 40 "//third-party:proc-macro2", [all …]
|
| D | BUILD | 13 ":cxxbridge-macro", 16 deps = [":core-lib"], 21 actual = ":cxxbridge", 26 name = "cxxbridge", 27 srcs = glob(["gen/cmd/src/**/*.rs"]), 28 data = ["gen/cmd/src/gen/include/cxx.h"], 31 "//third-party:clap", 32 "//third-party:codespan-reporting", 33 "//third-party:proc-macro2", 34 "//third-party:quote", [all …]
|
| D | Cargo.toml | 5 categories = ["development-tools::ffi", "api-bindings", "no-std"] 9 exclude = ["/demo", "/gen", "/syntax", "/third-party", "/tools/buck/prelude"] 12 license = "MIT OR Apache-2.0" 15 rust-version = "1.60" 18 default = ["std", "cxxbridge-flags/default"] # c++11 19 "c++14" = ["cxxbridge-flags/c++14"] 20 "c++17" = ["cxxbridge-flags/c++17"] 21 "c++20" = ["cxxbridge-flags/c++20"] 26 cxxbridge-macro = { version = "=1.0.97", path = "macro" } 27 link-cplusplus = "1.0" [all …]
|
| D | bundle.json | 6 "publishAs": "code-segment", 34 "name": "//third_party/rust/crates/cxx/gen/cmd:cxxbridge"
|
| D | README.md | 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… 7 …/github/actions/workflow/status/dtolnay/cxx/ci.yml?branch=master&style=for-the-badge" height="20">… 11 using bindgen or cbindgen to generate unsafe C-style bindings. 23 [build-dependencies] 24 cxx-build = "1.0" 62 CXX guarantees an ABI-compatible signature that both sides understand, based on 74 of an existing C++ client for a large-file blobstore service. The blobstore 97 fn next_chunk(buf: &mut MultiBuf) -> &[u8]; [all …]
|
| D | README_zh.md | 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 { [all …]
|
| /third_party/rust/crates/cxx/gen/build/src/ |
| D | lib.rs | 19 //! .flag_if_supported("-std=c++11") 20 //! .compile("cxxbridge-demo"); 22 //! println!("cargo:rerun-if-changed=src/main.rs"); 23 //! println!("cargo:rerun-if-changed=src/demo.cc"); 24 //! println!("cargo:rerun-if-changed=include/demo.h"); 37 //! For use in non-Cargo builds like Bazel or Buck, CXX provides an 39 //! line tool. The tool is packaged as the `cxxbridge-cmd` crate. 42 //! $ cargo install cxxbridge-cmd # or build it from the repo 44 //! $ cxxbridge src/main.rs --header > path/to/mybridge.h 45 //! $ cxxbridge src/main.rs > path/to/mybridge.cc [all …]
|
| /third_party/rust/crates/cxx/gen/cmd/ |
| D | Cargo.toml | 2 name = "cxxbridge-cmd" 5 categories = ["development-tools::build-utils", "development-tools::ffi"] 6 description = "C++ code generator for integrating `cxx` crate into a non-Cargo build." 11 license = "MIT OR Apache-2.0" 13 rust-version = "1.56" 16 name = "cxxbridge" 21 experimental-async-fn = [] 24 clap = { version = "4", default-features = false, features = ["error-context", "help", "std", "sugg… 25 codespan-reporting = "0.11" 26 proc-macro2 = { version = "1.0.58", default-features = false, features = ["span-locations"] } [all …]
|
| D | BUILD.gn | 6 # http://www.apache.org/licenses/LICENSE-2.0 17 ohos_cargo_crate("cxxbridge") { 25 cargo_pkg_name = "cxxbridge-cmd" 27 "C++ code generator for integrating `cxx` crate into a non-Cargo build." 30 "//third_party/rust/crates/codespan/codespan-reporting:lib", 31 "//third_party/rust/crates/proc-macro2:lib",
|
| /third_party/skia/m133/bazel/external/cxx/ |
| D | Cargo.lock | 8 source = "registry+https://github.com/rust-lang/crates.io-index" 14 source = "registry+https://github.com/rust-lang/crates.io-index" 23 source = "registry+https://github.com/rust-lang/crates.io-index" 32 source = "registry+https://github.com/rust-lang/crates.io-index" 43 source = "registry+https://github.com/rust-lang/crates.io-index" 47 name = "codespan-reporting" 49 source = "registry+https://github.com/rust-lang/crates.io-index" 53 "unicode-width", 61 "cxx-build", 62 "cxx-gen", [all …]
|
| /third_party/rust/crates/cxx/tools/buck/ |
| D | rust_cxx_bridge.bzl | 24 cmd = "$(exe //:codegen) ${SRCS} -o ${OUT}/generated.h -o ${OUT}/generated.cc", 25 type = "cxxbridge",
|
| /third_party/skia/m133/bazel/external/cxxbridge_cmd/ |
| D | Cargo.lock | 8 source = "registry+https://github.com/rust-lang/crates.io-index" 14 source = "registry+https://github.com/rust-lang/crates.io-index" 23 source = "registry+https://github.com/rust-lang/crates.io-index" 34 source = "registry+https://github.com/rust-lang/crates.io-index" 38 name = "codespan-reporting" 40 source = "registry+https://github.com/rust-lang/crates.io-index" 44 "unicode-width", 48 name = "cxxbridge-cmd" 52 "codespan-reporting", 53 "proc-macro2", [all …]
|
| /third_party/rust/crates/cxx/src/ |
| D | lib.rs | 1 …hub]](https://github.com/dtolnay/cxx) [![crates-io]](https://crates.io/crates/cxx) [![do… 3 //! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo… 4 //! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=55555… 5 //! [docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&lo… 11 //! wrong when using bindgen or cbindgen to generate unsafe C-style bindings. 56 //! combination. CXX guarantees an ABI-compatible signature that both sides 68 //! advantage of an existing C++ client for a large-file blobstore service. The 93 //! fn next_chunk(buf: &mut MultiBuf) -> &[u8]; 107 //! fn new_blobstore_client() -> UniquePtr<BlobstoreClient>; 108 //! fn put(&self, parts: &mut MultiBuf) -> u64; [all …]
|
| /third_party/rust/crates/cxx/book/src/ |
| D | tutorial.md | 22 Create a blank Cargo project: `mkdir cxx-demo`; `cd cxx-demo`; `cargo init`. 29 # name = "cxx-demo" 69 its size or alignment. In general, a C++ type might have a move-constructor 86 include!("cxx-demo/include/blobstore.h"); 90 fn new_blobstore_client() -> UniquePtr<BlobstoreClient>; 100 [*extern "C++"*](extern-c++.md) chapter. In brief: the programmer is **not** 120 …= /bin/ld: target/debug/deps/cxx-demo-7cb7fddf3d67d880.rcgu.o: in function `cxx_demo::ffi::new_blo… 130 `include!("cxx-demo/include/blobstore.h")` above — we'll be putting the 132 crate is named something other than `cxx-demo` according to the `name` field in 133 Cargo.toml, you will need to use that name everywhere in place of `cxx-demo` [all …]
|
| /third_party/rust/crates/cxx/.github/workflows/ |
| D | ci.yml | 20 runs-on: ${{matrix.os || 'ubuntu'}}-latest 22 fail-fast: false 25 - rust: nightly 26 - rust: beta 27 - rust: stable 28 - rust: 1.60.0 29 - rust: 1.64.0 30 - name: Cargo on macOS 33 - name: Cargo on Windows (msvc) 34 rust: nightly-x86_64-pc-windows-msvc [all …]
|
| /third_party/skia/m133/ |
| D | WORKSPACE.bazel | 14 # See https://github.com/emscripten-core/emsdk/tree/85d27a4a2a60d591613a305b14ae438c2bb3ce11/bazel#… 18 strip_prefix = "emsdk-3.1.44/bazel", 21 url = "https://github.com/emscripten-core/emsdk/archive/refs/tags/3.1.44.tar.gz", 44 … url = "https://github.com/bazelbuild/rules_pkg/releases/download/0.9.1/rules_pkg-0.9.1.tar.gz", 60 strip_prefix = "rules_python-0.9.0", 93 …/mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip", 94 "https://github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip", 102 …tps://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.33.0/bazel-gazel… 103 …"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.33.0/bazel-gazelle-v0.33.0.tar.g… 145 # Compatibility hack to make the github.com/bazelbuild/remote-apis Go module work with rules_go [all …]
|
| /third_party/rust/crates/cxx/syntax/ |
| D | mod.rs | 1 // Functionality that is shared between the cxxbridge macro and the cmd. 131 #[cfg(feature = "experimental-enum-variants-from-header")]
|