Searched +full:rust +full:- +full:src (Results 1 – 25 of 529) sorted by relevance
12345678910>>...22
| /external/angle/build/rust/std/rules/ |
| D | BUILD.gn | 2 # Use of this source code is governed by a BSD-style license that can be 5 import("//build/rust/cargo_crate.gni") 9 …crate_root = "//third_party/rust-toolchain/lib/rustlib/src/rust/vendor/addr2line-0.19.0/src/lib.rs" 11 "//third_party/rust-toolchain/lib/rustlib/src/rust/vendor/addr2line-0.19.0/src/function.rs", 12 "//third_party/rust-toolchain/lib/rustlib/src/rust/vendor/addr2line-0.19.0/src/lazy.rs", 13 "//third_party/rust-toolchain/lib/rustlib/src/rust/vendor/addr2line-0.19.0/src/lib.rs", 18 # Unit tests skipped. Generate with --with-tests to include them. 24 "A cross-platform symbolication library written in Rust, using `gimli`" 25 library_configs -= [ "//build/config/compiler:chromium_code" ] 27 executable_configs -= [ "//build/config/compiler:chromium_code" ] [all …]
|
| /external/cronet/build/rust/std/rules/ |
| D | BUILD.gn | 2 # Use of this source code is governed by a BSD-style license that can be 5 import("//build/rust/cargo_crate.gni") 9 …crate_root = "//build/rust/std/fake_root/../../../../third_party/rust-toolchain/lib/rustlib/src/ru… 12 # Unit tests skipped. Generate with --with-tests to include them. 14 …sources = [ "//build/rust/std/fake_root/../../../../third_party/rust-toolchain/lib/rustlib/src/rus… 19 "A cross-platform symbolication library written in Rust, using `gimli`" 20 library_configs -= [ "//build/config/compiler:chromium_code" ] 22 executable_configs -= [ "//build/config/compiler:chromium_code" ] 29 "//build/rust/std:std_build_deps", 39 "rustc-dep-of-std", [all …]
|
| /external/rust/crates/syn/tests/repo/ |
| D | mod.rs | 19 "src/test/ui/rfc-2632-const-trait-impl/syntax.rs", 21 // Compile-fail expr parameter in const generic position: f::<1 + 2>() 22 "src/test/ui/const-generics/early/closing-args-token.rs", 23 "src/test/ui/const-generics/early/const-expression-parameter.rs", 26 "src/test/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.rs", 29 "src/test/ui/issues/issue-13105.rs", 30 "src/test/ui/issues/issue-13775.rs", 31 "src/test/ui/issues/issue-34074.rs", 32 "src/test/ui/proc-macro/trait-fn-args-2015.rs", 33 "src/tools/rustfmt/tests/source/trait.rs", [all …]
|
| /external/rust/cxx/book/src/ |
| D | tutorial.md | 1 {{#title Tutorial — Rust ♡ C++}} 4 This example walks through a Rust application that calls into a C++ client of a 5 blobstore service. In fact we'll see calls going in both directions: Rust to C++ 6 as well as C++ to Rust. For your own use case it may be that you need just one 19 We'll use Cargo, which is the build system commonly used by open source Rust 22 Create a blank Cargo project: `mkdir cxx-demo`; `cd cxx-demo`; `cargo init`. 29 # name = "cxx-demo" 43 in a Rust module annotated with the `#[cxx::bridge]` attribute macro. 45 We'll open with just the following at the top of src/main.rs and walk through 48 ```rust,noplayground [all …]
|
| D | index.md | 2 …src="https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github"… 5 # CXX — safe interop between Rust and C++ 7 This library provides a safe mechanism for calling C++ code from Rust and Rust 8 code from C++. It carves out a regime of commonality where Rust and C++ are 12 interface over unsafe C-style signatures. 19 of the types and function signatures to protect both Rust's and C++'s 34 In this example we are writing a Rust application that calls a C++ client of a 35 large-file blobstore service. The blobstore supports a `put` operation for a 40 ```rust,noplayground 43 extern "Rust" { [all …]
|
| /external/rust/cxx/ |
| D | README.md | 1 CXX — safe FFI between Rust and C++ 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 …img alt="build status" src="https://img.shields.io/github/actions/workflow/status/dtolnay/cxx/ci.y… 9 This library provides a **safe** mechanism for calling C++ code from Rust and 10 Rust code from C++, not subject to the many ways that things can go wrong when 11 using bindgen or cbindgen to generate unsafe C-style bindings. 14 project, you would be on the hook for auditing all the unsafe Rust code and 16 just the C++ side would be sufficient to catch all problems, i.e. the Rust side [all …]
|
| /external/cronet/build/rust/std/fake_root/ |
| D | Cargo.toml | 7 test = { path = "../../../../third_party/rust-toolchain/lib/rustlib/src/rust/library/test" } 10 path = "../../../../third_party/rust-toolchain/lib/rustlib/src/rust/library/std" 13 [patch.crates-io] 14 rustc-std-workspace-core = { path = '../../../../third_party/rust-toolchain/lib/rustlib/src/rust/li… 15 rustc-std-workspace-alloc = { path = '../../../../third_party/rust-toolchain/lib/rustlib/src/rust/l… 16 rustc-std-workspace-std = { path = '../../../../third_party/rust-toolchain/lib/rustlib/src/rust/lib…
|
| /external/rust/crates/quote/.github/workflows/ |
| D | ci.yml | 12 RUSTFLAGS: -Dwarnings 16 name: Rust ${{matrix.rust}} 17 runs-on: ubuntu-latest 19 fail-fast: false 21 rust: [stable, beta, 1.56.0] 22 timeout-minutes: 45 24 - uses: actions/checkout@v3 25 - uses: dtolnay/rust-toolchain@master 27 toolchain: ${{matrix.rust}} 28 components: rust-src [all …]
|
| /external/rust/crates/anyhow/.github/workflows/ |
| D | ci.yml | 12 RUSTFLAGS: -Dwarnings 19 name: Rust ${{matrix.rust}} 22 runs-on: ubuntu-latest 24 fail-fast: false 26 rust: [nightly, beta, stable, 1.60.0] 27 timeout-minutes: 45 29 - uses: actions/checkout@v3 30 - uses: dtolnay/rust-toolchain@master 32 toolchain: ${{matrix.rust}} 33 components: rust-src [all …]
|
| /external/uwb/src/ |
| D | Android.bp | 8 "rust/uwb_uci_packets/src/lib.rs", 29 "general-tests", 30 "mts-uwb" 36 "general-tests", 42 // Support multilib variants (using different suffix per sub-architecture), which is needed on 74 "rust/uwb_uci_packets/uci_packets.pdl", 77 "rust/uwb_uci_packets/uci_packets.rs", 83 srcs: ["rust/uwb_core/src/lib.rs"], 113 // Builds uwb_core library with "mock-utils" enabled. 119 features: ["mock-utils"], [all …]
|
| /external/rust/crates/libm/ |
| D | CONTRIBUTING.md | 3 - Pick your favorite math function from the [issue tracker]. 4 - Look for the C implementation of the function in the [MUSL source code][src]. 5 - Copy paste the C code into a Rust file in the `src/math` directory and adjust 6 `src/math/mod.rs` accordingly. Also, uncomment the corresponding trait method 7 in `src/lib.rs`. 8 - Write some simple tests in your module (using `#[test]`) 9 - Run `cargo test` to make sure it works 10 - Run `cargo test --features musl-reference-tests` to compare your 12 - Send us a pull request! Make sure to run `cargo fmt` on your code before 15 - :tada: [all …]
|
| /external/angle/build/rust/std/ |
| D | gnrt_config.toml | 2 # Use of this source code is governed by a BSD-style license that can be 5 # Provides per-crate and overall configuration options to gnrt. 15 # TODO(https://github.com/rust-lang/cargo/issues/10801): remove workaround once 17 remove_crates = ['allocator-api2'] 19 [all-crates] 21 # conflicts between std dependencies and third_party/rust crates. 31 # force-unstable-if-unmarked prevents normal crates from inadvertently using 32 # symbols from std-internal dependencies in the sysroot. This is normally passed 34 rustflags = ['-Zforce-unstable-if-unmarked'] 38 # //build/rust/std/BUILD.gn [all …]
|
| /external/rust/crates/thiserror/.github/workflows/ |
| D | ci.yml | 12 RUSTFLAGS: -Dwarnings 16 name: Rust ${{matrix.rust}} 17 runs-on: ubuntu-latest 19 fail-fast: false 21 rust: [beta, stable, 1.56.0] 23 - rust: nightly 24 rustflags: --cfg thiserror_nightly_testing 25 timeout-minutes: 45 27 - uses: actions/checkout@v3 28 - uses: dtolnay/rust-toolchain@master [all …]
|
| /external/rust/cxx/book/src/binding/ |
| D | str.md | 1 {{#title rust::Str — Rust ♡ C++}} 2 # rust::Str 7 // rust/cxx.h 12 # namespace rust { 20 // Throws std::invalid_argument if not utf-8. 54 # } // namespace rust 59 **Be aware that rust::Str behaves like &str i.e. it is a borrow!** C++ 62 Just to reiterate: &str is rust::Str. Do not try to write &str as `const 63 rust::Str &`. A language-level C++ reference is not able to capture the fat 74 ```rust,noplayground [all …]
|
| /external/toolchain-utils/rust-analyzer-chromiumos-wrapper/ |
| D | README.md | 1 # rust-analyzer-chromiumos-wrapper 5 rust-analyzer is an LSP server for the Rust language. It allows editors like 6 vim, emacs, or VS Code to provide IDE-like features for Rust. 8 This program, `rust-analyzer-chromiumos-wrapper`, is a wrapper around 9 `rust-analyzer`. It exists to translate paths between an instance of 10 rust-analyzer running inside the chromiumos chroot and a client running outside 13 It is of course possible to simply run `rust-analyzer` outside the chroot, but 17 subdirectory of either `chromiumos/src` or `chromiumos/chroot`, it will attempt 18 to invoke `rust-analyzer` inside the chroot and translate paths. Otherwise, it 19 will attempt to invoke a `rust-analyzer` outside the chroot and will not [all …]
|
| /external/oss-fuzz/projects/bignum-fuzzer/ |
| D | build.sh | 1 #!/bin/bash -eu 8 # http://www.apache.org/licenses/LICENSE-2.0 18 # Install Rust nightly 19 #curl https://sh.rustup.rs -sSf | sh -s -- -y 23 tar zxf mpdecimal-2.5.1.tar.gz 24 cd mpdecimal-2.5.1 25 ./configure && make -j$(nproc) 27 cd $SRC/openssl 30 CFLAGS+=" -DOPENSSL_NO_ASM=1" 32 ./config --debug no-fips no-shared no-tests [all …]
|
| /external/rust/crates/protobuf-codegen/ |
| D | README.md | 1 <!-- cargo-sync-readme start --> 10 * using `protoc` command line tool and `protoc-gen-rust` plugin 11 * using this crate `Codegen` with pure rust parser 16 If you are using non-cargo build system (like Bazel), you might prefer 17 using `protoc-gen-rust` plugin for `protoc`. 21 # Protoc parser vs pure rust parser 24 * `protoc`-based parser (`protoc` is a command like utility from Google protobuf) 25 * pure rust parser (`protobuf-parse` crate) 27 `protoc`-based parser is expected to parse `.proto` files very correctly: 30 While there are no known bugs in `protobuf-parse`, it is not tested very well. [all …]
|
| /external/rust/crates/proc-macro2/ |
| D | TEST_MAPPING | 5 "path": "external/rust/crates/anyhow" 8 "path": "external/rust/crates/arbitrary" 11 "path": "external/rust/crates/argh" 14 "path": "external/rust/crates/async-stream" 17 "path": "external/rust/crates/base64" 20 "path": "external/rust/crates/bitflags" 23 "path": "external/rust/crates/bytes" 26 "path": "external/rust/crates/coset" 29 "path": "external/rust/crates/either" 32 "path": "external/rust/crates/futures-channel" [all …]
|
| /external/rust/crates/quote/ |
| D | TEST_MAPPING | 5 "path": "external/rust/crates/anyhow" 8 "path": "external/rust/crates/arbitrary" 11 "path": "external/rust/crates/argh" 14 "path": "external/rust/crates/async-stream" 17 "path": "external/rust/crates/base64" 20 "path": "external/rust/crates/bitflags" 23 "path": "external/rust/crates/bytes" 26 "path": "external/rust/crates/coset" 29 "path": "external/rust/crates/either" 32 "path": "external/rust/crates/futures-channel" [all …]
|
| /external/rust/crates/unicode-ident/ |
| D | TEST_MAPPING | 5 "path": "external/rust/crates/anyhow" 8 "path": "external/rust/crates/arbitrary" 11 "path": "external/rust/crates/argh" 14 "path": "external/rust/crates/async-stream" 17 "path": "external/rust/crates/base64" 20 "path": "external/rust/crates/bitflags" 23 "path": "external/rust/crates/bytes" 26 "path": "external/rust/crates/coset" 29 "path": "external/rust/crates/either" 32 "path": "external/rust/crates/futures-channel" [all …]
|
| /external/rust/crates/syn/ |
| D | TEST_MAPPING | 5 "path": "external/rust/crates/anyhow" 8 "path": "external/rust/crates/arbitrary" 11 "path": "external/rust/crates/argh" 14 "path": "external/rust/crates/async-stream" 17 "path": "external/rust/crates/base64" 20 "path": "external/rust/crates/bitflags" 23 "path": "external/rust/crates/bytes" 26 "path": "external/rust/crates/coset" 29 "path": "external/rust/crates/either" 32 "path": "external/rust/crates/futures-channel" [all …]
|
| /external/rust/crates/byteorder/src/ |
| D | lib.rs | 3 either [big-endian or little-endian order]. 6 byte conversion methods for each type of number in Rust (sans numbers that have 21 Read unsigned 16 bit big-endian integers from a [`Read`] type: 23 ```rust 34 Write unsigned 16 bit little-endian integers to a [`Write`] type: 36 ```rust 54 Note that as of Rust 1.32, the standard numeric types provide built-in methods 58 [big-endian or little-endian order]: https://en.wikipedia.org/wiki/Endianness 66 [`Read`]: https://doc.rust-lang.org/std/io/trait.Read.html 67 [`Write`]: https://doc.rust-lang.org/std/io/trait.Write.html [all …]
|
| /external/rust/cxx/book/src/build/ |
| D | other.md | 1 {{#title Other build systems — Rust ♡ C++}} 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. 12 CXX's Rust code generation automatically happens when the `#[cxx::bridge]` 13 procedural macro is expanded during the normal Rust compilation process, so no 18 - Use the `cxxbridge` command, which is a standalone command line interface to 23 $ cxxbridge src/bridge.rs --header > path/to/bridge.rs.h 24 $ cxxbridge src/bridge.rs > path/to/bridge.rs.cc 27 It's packaged as the `cxxbridge-cmd` crate on crates.io or can be built from [all …]
|
| D | cargo.md | 1 {{#title Cargo-based setup — Rust ♡ C++}} 2 # Cargo-based builds 4 As one aspect of delivering a good Rust–C++ interop experience, CXX turns 7 experience `#include`-ing C++ headers across dependencies. 11 CXX's integration with Cargo is handled through the [cxx-build] crate. 13 [cxx-build]: https://docs.rs/cxx-build 25 [build-dependencies] 26 cxx-build = "1.0" 35 ```rust,noplayground 39 cxx_build::bridge("src/main.rs") // returns a cc::Build [all …]
|
| /external/rust/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… 9 //! This library provides a **safe** mechanism for calling C++ code from Rust 10 //! and Rust code from C++, not subject to the many ways that things can go 11 //! wrong when using bindgen or cbindgen to generate unsafe C-style bindings. 14 //! a project, you would be on the hook for auditing all the unsafe Rust code 17 //! the Rust side can be 100% safe. 36 //! embedded together in one Rust module (the next section shows an example). [all …]
|
12345678910>>...22