| /third_party/rust/crates/cxx/third-party/ |
| D | BUCK | 7 name = "anstyle-1.0.0.crate", 9 strip_prefix = "anstyle-1.0.0", 10 urls = ["https://crates.io/api/v1/crates/anstyle/1.0.0/download"], 15 name = "anstyle-1.0.0", 16 srcs = [":anstyle-1.0.0.crate"], 18 crate_root = "anstyle-1.0.0.crate/src/lib.rs", 28 name = "bitflags-1.3.2.crate", 30 strip_prefix = "bitflags-1.3.2", 31 urls = ["https://crates.io/api/v1/crates/bitflags/1.3.2/download"], 36 name = "bitflags-1.3.2", [all …]
|
| /third_party/rust/crates/proc-macro2/ |
| D | README.md | 1 # proc-macro2 3 …/badge/github-dtolnay/proc--macro2-8da0cb?style=for-the-badge&labelColor=555555&logo=github" heigh… 4 …img.shields.io/crates/v/proc-macro2.svg?style=for-the-badge&color=fc8d62&logo=rust" height="20">](… 5 …ields.io/badge/docs.rs-proc--macro2-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs" hei… 6 …s/workflow/status/dtolnay/proc-macro2/ci.yml?branch=master&style=for-the-badge" height="20">](http… 8 A wrapper around the procedural macro API of the compiler's `proc_macro` crate. 11 - **Bring proc-macro-like functionality to other contexts like build.rs and 13 and cannot ever exist in code outside of a procedural macro. Meanwhile 14 `proc_macro2` types may exist anywhere including non-macro code. By developing 16 than `proc_macro`, the procedural macro ecosystem becomes easily applicable to [all …]
|
| D | build.rs | 17 println!("cargo:rustc-check-cfg=cfg(fuzzing)"); in main() 18 println!("cargo:rustc-check-cfg=cfg(no_is_available)"); in main() 19 println!("cargo:rustc-check-cfg=cfg(no_literal_byte_character)"); in main() 20 println!("cargo:rustc-check-cfg=cfg(no_literal_c_string)"); in main() 21 println!("cargo:rustc-check-cfg=cfg(no_source_text)"); in main() 22 println!("cargo:rustc-check-cfg=cfg(proc_macro_span)"); in main() 23 println!("cargo:rustc-check-cfg=cfg(procmacro2_backtrace)"); in main() 24 println!("cargo:rustc-check-cfg=cfg(procmacro2_nightly_testing)"); in main() 25 println!("cargo:rustc-check-cfg=cfg(procmacro2_semver_exempt)"); in main() 26 println!("cargo:rustc-check-cfg=cfg(randomize_layout)"); in main() [all …]
|
| D | Cargo.toml | 2 name = "proc-macro2" 6 categories = ["development-tools::procedural-macro-helpers"] 7 …mplementation of the compiler's `proc_macro` API to decouple token-based libraries from the proced… 8 documentation = "https://docs.rs/proc-macro2" 11 license = "MIT OR Apache-2.0" 12 repository = "https://github.com/dtolnay/proc-macro2" 13 rust-version = "1.56" 16 rustc-args = ["--cfg", "procmacro2_semver_exempt"] 17 rustdoc-args = ["--cfg", "procmacro2_semver_exempt", "--generate-link-to-definition"] 18 targets = ["x86_64-unknown-linux-gnu"] [all …]
|
| D | BUILD.gn | 6 # http://www.apache.org/licenses/LICENSE-2.0 26 cargo_pkg_name = "proc-macro2" 27 …mplementation of the compiler's `proc_macro` API to decouple token-based libraries from the proced… 28 deps = [ "//third_party/rust/crates/unicode-ident:lib" ] 30 "proc-macro", 31 "span-locations",
|
| /third_party/rust/crates/proc-macro-error/ |
| D | CHANGELOG.md | 1 # v1.0.4 (2020-7-31) 5 * Introduced the `syn-error` feature so you can opt-out from the `syn` dependency. 7 # v1.0.3 (2020-6-26) 10 * Fixed the `emit_call_site_warning` macro. 12 # v1.0.2 (2020-4-9) 16 # v1.0.1 (2020-4-9) 18 * `proc-macro-hack` is now well tested and supported. Not sure about `proc-macro-nested`, 23 # v1.0.0 (2020-3-25) 25 I believe the API can be considered stable because it's been a few months without 37 # v0.4.12 (2020-3-23) [all …]
|
| D | README.md | 3 …vis ci](https://travis-ci.org/CreepySkeleton/proc-macro-error.svg?branch=master)](https://travis-c… 4 [](https://docs.rs/proc-macro-error) 5 …idden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-… 7 This crate aims to make error reporting in proc-macros simple and easy to use. 8 Migrate from `panic!`-based errors for as little effort as possible! 18 available on stable ahead of time and your error-reporting code future-proof. 22 proc-macro-error = "1.0" 36 pub fn make_fn(input: TokenStream) -> TokenStream { 54 <img src="https://user-images.githubusercontent.com/50968528/78830016-d3b46a80-79d6-11ea-9de2-972e8… 60 <img src="https://user-images.githubusercontent.com/50968528/78830547-a9af7800-79d7-11ea-822e-59e29… [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-srv-cli/ |
| D | Cargo.toml | 2 name = "proc-macro-srv-cli" 9 rust-version.workspace = true 12 proc-macro-srv.workspace = true 13 proc-macro-api.workspace = true 16 sysroot-abi = ["proc-macro-srv/sysroot-abi"] 19 name = "rust-analyzer-proc-macro-srv"
|
| /third_party/rust/rust/src/tools/rust-analyzer/ |
| D | Cargo.toml | 3 exclude = ["crates/proc-macro-test/imp"] 7 rust-version = "1.66" 9 license = "MIT OR Apache-2.0" 10 authors = ["rust-analyzer team"] 19 rowan.opt-level = 3 20 rustc-hash.opt-level = 3 21 smol_str.opt-level = 3 22 text-size.opt-level = 3 24 miniz_oxide.opt-level = 3 31 [patch.'crates-io'] [all …]
|
| D | Cargo.lock | 8 source = "registry+https://github.com/rust-lang/crates.io-index" 17 source = "registry+https://github.com/rust-lang/crates.io-index" 21 name = "always-assert" 23 source = "registry+https://github.com/rust-lang/crates.io-index" 32 source = "registry+https://github.com/rust-lang/crates.io-index" 37 version = "1.0.0-beta.2" 38 source = "registry+https://github.com/rust-lang/crates.io-index" 44 source = "registry+https://github.com/rust-lang/crates.io-index" 50 source = "registry+https://github.com/rust-lang/crates.io-index" 56 source = "registry+https://github.com/rust-lang/crates.io-index" [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-srv/ |
| D | Cargo.toml | 2 name = "proc-macro-srv" 9 rust-version.workspace = true 15 object = { version = "0.30.2", default-features = false, features = [ 29 proc-macro-api.workspace = true 31 [dev-dependencies] 32 expect-test = "1.4.0" 34 # used as proc macro test targets 35 proc-macro-test.workspace = true 38 sysroot-abi = []
|
| /third_party/rust/crates/syn/ |
| D | README.md | 4 [<img alt="github" src="https://img.shields.io/badge/github-dtolnay/syn-8da0cb?style=for-the-badge&… 5 [<img alt="crates.io" src="https://img.shields.io/crates/v/syn.svg?style=for-the-badge&color=fc8d62… 6 [<img alt="docs.rs" src="https://img.shields.io/badge/docs.rs-syn-66c2a5?style=for-the-badge&labelC… 7 …/github/actions/workflow/status/dtolnay/syn/ci.yml?branch=master&style=for-the-badge" height="20">… 15 - **Data structures** — Syn provides a complete syntax tree that can represent 21 - **Derives** — Of particular interest to derive macros is [`syn::DeriveInput`] 22 which is any of the three legal input items to a derive macro. An example 24 user-defined trait. 26 - **Parsing** — Parsing in Syn is built around [parser functions] with the 27 signature `fn(ParseStream) -> Result<T>`. Every syntax tree node defined by [all …]
|
| /third_party/rust/crates/proc-macro-error/src/ |
| D | lib.rs | 1 //! # proc-macro-error 3 //! This crate aims to make error reporting in proc-macros simple and easy to use. 4 //! Migrate from `panic!`-based errors for as little effort as possible! 14 //! available on stable ahead of time *and* your error-reporting code future-proof. 18 //! This crate provides *enabled by default* `syn-error` feature that gates 24 //! proc-macro-error = { version = "1", default-features = false } 32 //! * [`structopt-derive`](https://github.com/TeXitoi/structopt/tree/master/structopt-derive) 33 //! (abort-like usage) 34 //! * [`auto-impl`](https://github.com/auto-impl-rs/auto_impl/) (emit-like usage) 38 //! - Warnings are emitted only on nightly, they are ignored on stable. [all …]
|
| /third_party/rust/crates/proc-macro-error/tests/ |
| D | runtime-errors.rs | 4 #[should_panic = "proc-macro-error API cannot be used outside of"] 10 #[should_panic = "proc-macro-error API cannot be used outside of"]
|
| /third_party/python/Tools/scripts/ |
| D | stable_abi.py | 4 Pass --generate to recreate auto-generated files instead. 54 # to better serve that purpose (while keeping it human-readable). 57 """Collection of `ABIItem`s forming the stable ABI/limited API.""" 64 # even if they're different kinds (e.g. function vs. macro). 71 kinds: set of requested kinds, e.g. {'function', 'macro'} 74 If False, include only items from the limited API 118 @itemclass('macro') 124 """Information on one item (function, macro, struct, etc.)""" 168 # Other actions, like "--unixy-check", don't work on a single file. 175 func.arg_name = '--' + var_name.replace('_', '-') [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/.github/workflows/ |
| D | autopublish.yaml | 6 # - cron: "0 0 * * *" # midnight UTC 10 - release 15 runs-on: ubuntu-latest 17 - name: Checkout repository 20 fetch-depth: 0 22 - name: Install Rust toolchain 23 run: rustup update --no-self-update stable 25 - name: Install cargo-workspaces 26 run: cargo install cargo-workspaces 28 - name: Publish Crates [all …]
|
| D | ci.yaml | 1 # Please make sure that the `needs` fields for both `end-success` and `end-failure` 9 - auto 10 - try 17 RUSTFLAGS: "-D warnings -W unreachable-pub -W bare-trait-objects" 22 runs-on: ubuntu-latest 24 pull-requests: read 29 - uses: actions/checkout@v3 30 - uses: dorny/paths-filter@4067d885736b84de7c414f582ac45897079b0a78 35 - 'editors/code/**' 37 - 'crates/proc-macro-api/**' [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-api/src/ |
| D | process.rs | 1 //! Handle process life-time and message passing for proc-macro client 25 pub(crate) fn run(process_path: AbsPathBuf) -> io::Result<ProcMacroProcessSrv> { in run() 38 "proc-macro server's api version ({}) is newer than rust-analyzer's ({})", in run() 49 … tracing::info!(%e, "proc-macro version check failed, restarting and assuming version 0"); in run() 55 pub(crate) fn version(&self) -> u32 { in version() 59 pub(crate) fn version_check(&mut self) -> Result<u32, ServerError> { in version_check() 74 ) -> Result<Result<Vec<(String, ProcMacroKind)>, String>, ServerError> { in find_proc_macros() 87 pub(crate) fn send_task(&mut self, req: Request) -> Result<Response, ServerError> { in send_task() 99 fn run(path: AbsPathBuf, null_stderr: bool) -> io::Result<Process> { in run() 104 fn stdio(&mut self) -> Option<(ChildStdin, BufReader<ChildStdout>)> { in stdio() [all …]
|
| /third_party/rust/crates/proc-macro2/src/ |
| D | lib.rs | 1 …thub]](https://github.com/dtolnay/proc-macro2) [![crates-io]](https://crates.io/crates/proc-m… 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 //! A wrapper around the procedural macro API of the compiler's [`proc_macro`] 12 //! [`proc_macro`]: https://doc.rust-lang.org/proc_macro/ 14 //! - **Bring proc-macro-like functionality to other contexts like build.rs and 16 //! macros and cannot ever exist in code outside of a procedural macro. 17 //! Meanwhile `proc_macro2` types may exist anywhere including non-macro code. 19 //! `proc_macro2` rather than `proc_macro`, the procedural macro ecosystem [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-api/ |
| D | Cargo.toml | 2 name = "proc-macro-api" 9 rust-version.workspace = true 15 object = { version = "0.30.2", default-features = false, features = [ 34 # Intentionally *not* depend on anything salsa-related 35 # base-db.workspace = true
|
| /third_party/rust/crates/cxx/third-party/bazel/ |
| D | defs.bzl | 3 # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To 6 # bazel run @//third-party:vendor 9 # `crates_repository` API 11 - [aliases](#aliases) 12 - [crate_deps](#crate_deps) 13 - [all_crate_deps](#all_crate_deps) 14 - [crate_repositories](#crate_repositories) 23 # MACROS API 76 # Alert on any miss-matched dependencies 87 …"""Finds the fully qualified label of the requested crates for the package where this macro is cal… [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/docs/dev/ |
| D | architecture.md | 3 This document describes the high-level architecture of rust-analyzer. 9 See also these implementation-related blog posts: 11 * https://rust-analyzer.github.io/blog/2019/11/13/find-usages.html 12 * https://rust-analyzer.github.io/blog/2020/07/20/three-architectures-for-responsive-ide.html 13 * https://rust-analyzer.github.io/blog/2020/09/16/challeging-LR-parsing.html 14 * https://rust-analyzer.github.io/blog/2020/09/28/how-to-make-a-light-bulb.html 15 * https://rust-analyzer.github.io/blog/2020/10/24/introducing-ungrammar.html 17 …) and [another playlist](https://www.youtube.com/playlist?list=PL85XCvVPmGQho7MZkdW-wtPtuJcFpzycE). 22 ` is not expanded before it's passed to the proc macro. 29 api: T,
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-srv/src/ |
| D | dylib.rs | 1 //! Handles dynamic library loading for proc macro 18 fn invalid_data_err(e: impl Into<Box<dyn std::error::Error + Send + Sync>>) -> io::Error { in invalid_data_err() 22 fn is_derive_registrar_symbol(symbol: &str) -> bool { in is_derive_registrar_symbol() 26 fn find_registrar_symbol(file: &Path) -> io::Result<Option<String>> { in find_registrar_symbol() 41 // Unlike other dyld API's, the symbol name passed to dlsym() must NOT be in find_registrar_symbol() 54 /// [here](https://github.com/fedochet/rust-proc-macro-panic-inside-panic-expample) 55 /// and [here](https://github.com/rust-lang/rust/issues/60593). 58 /// [here](https://github.com/fedochet/rust-proc-macro-panic-inside-panic-expample/issues/1) 62 fn load_library(file: &Path) -> Result<Library, libloading::Error> { in load_library() 67 fn load_library(file: &Path) -> Result<Library, libloading::Error> { in load_library() [all …]
|
| /third_party/skia/third_party/externals/dawn/docs/ |
| D | codegen.md | 3 …de, especially webgpu.h-related code. They start by reading some JSON files (and sometimes XML too… 7 ## Dawn "JSON API" generators 9 …from [`dawn.json`](../dawn.json) which is a JSON description of the WebGPU API with extra annotati… 13 - the Dawn, Emscripten, and upstream webgpu-native `webgpu.h` C header 14 - the Dawn and Emscripten `webgpu_cpp.cpp/h` C++ wrapper over the C header 15 - libraries that implements `webgpu.h` by calling in a static or `thread_local` proc table 16 - other parts of the [Emscripten](https://emscripten.org/) WebGPU implementation 17 - a GMock version of the API with its proc table for testing 18 - validation helper functions for dawn_native 19 - the definition of dawn_native's proc table [all …]
|