Home
last modified time | relevance | path

Searched full:rust (Results 1 – 25 of 1570) sorted by relevance

12345678910>>...63

/third_party/rust/crates/bindgen/bindgen/
Dfeatures.rs14 /// Represents the version of the Rust language to target.
31 /// Gives the latest stable Rust version
42 /// * The stable/beta versions of Rust are of the form "1.0",
54 "Got an invalid rust target. Accepted values ",
89 /// Rust stable 1.0
90 …cated = "This rust target is deprecated. If you have a good reason to use this target please repor…
91 /// Rust stable 1.17
92 …/// * Static lifetime elision ([RFC 1623](https://github.com/rust-lang/rfcs/blob/master/text/1623…
93 …cated = "This rust target is deprecated. If you have a good reason to use this target please repor…
94 /// Rust stable 1.19
[all …]
/third_party/rust/crates/nix/
DCHANGELOG.md9 ([#1964](https://github.com/nix-rust/nix/pull/1964))
14 ([#1821](https://github.com/nix-rust/nix/pull/1821))
20 ([#1871](https://github.com/nix-rust/nix/pull/1871))
23 ([#1877](https://github.com/nix-rust/nix/pull/1877))
25 ([#1849](https://github.com/nix-rust/nix/pull/1849))
27 ([#1849](https://github.com/nix-rust/nix/pull/1849))
29 ([#1829](https://github.com/nix-rust/nix/pull/1829))
31 ([#1825](https://github.com/nix-rust/nix/pull/1825))
33 ([#1804](https://github.com/nix-rust/nix/pull/1804))
35 ([#1805](https://github.com/nix-rust/nix/pull/1805))
[all …]
/third_party/rust/crates/cxx/tests/ffi/
Dtests.h2 #include "rust/cxx.h"
54 rust::String cOverloadedMethod(int32_t x) const;
55 rust::String cOverloadedMethod(rust::Str x) const;
93 rust::Box<R> c_return_box();
101 rust::Str c_return_str(const Shared &shared);
102 rust::Slice<const char> c_return_slice_char(const Shared &shared);
103 rust::Slice<uint8_t> c_return_mutsliceu8(rust::Slice<uint8_t> slice);
104 rust::String c_return_rust_string();
105 rust::String c_return_rust_string_lossy();
114 rust::Vec<uint8_t> c_return_rust_vec_u8();
[all …]
Dtests.cc63 rust::Box<R> c_return_box() { in c_return_box()
65 rust::Box<Shared> box{shared}; // explicit constructor from const T& in c_return_box()
66 rust::Box<Shared> other{std::move(shared)}; // explicit constructor from T&& in c_return_box()
68 rust::Box<Shared> box2(*box); // copy from another Box in c_return_box()
69 rust::Box<Shared> other2(std::move(other)); // move constructor in c_return_box()
70 rust::Box<Shared>::in_place(shared.z); // placement static factory in c_return_box()
71 rust::Box<Shared>::in_place<size_t>(0); in c_return_box()
72 return rust::Box<R>::from_raw(cxx_test_suite_get_box()); in c_return_box()
99 rust::Str c_return_str(const Shared &shared) { in c_return_str()
104 rust::Slice<const char> c_return_slice_char(const Shared &shared) { in c_return_slice_char()
[all …]
/third_party/rust/crates/clap/
DCargo.lock8 source = "registry+https://github.com/rust-lang/crates.io-index"
17 source = "registry+https://github.com/rust-lang/crates.io-index"
23 source = "registry+https://github.com/rust-lang/crates.io-index"
29 source = "registry+https://github.com/rust-lang/crates.io-index"
40 source = "registry+https://github.com/rust-lang/crates.io-index"
46 source = "registry+https://github.com/rust-lang/crates.io-index"
61 source = "registry+https://github.com/rust-lang/crates.io-index"
67 source = "registry+https://github.com/rust-lang/crates.io-index"
73 source = "registry+https://github.com/rust-lang/crates.io-index"
79 source = "registry+https://github.com/rust-lang/crates.io-index"
[all …]
/third_party/rust/crates/bindgen/
DCHANGELOG.md218 * All the rust targets equal or lower than `1.30` are being deprecated and
237 rust.
247 * any generated rust code containing unsafe operations inside unsafe functions
287 instead of `std::os::raw` if the Rust target version is `1.64` or higher and
299 [(#1743)]: https://github.com/rust-lang/rust-bindgen/issues/1743
342 [(#2176)]: https://github.com/rust-lang/rust-bindgen/pull/2176
372 * Let Rust derive everything but Default for large arrays in 1.47 and later (#2070).
402 * Add option to translate enum integer types to native Rust integer types.
455 [#1984]: https://github.com/rust-lang/rust-bindgen/pull/1984
456 [an AArch64 bug]: https://github.com/rust-lang/rust-bindgen/issues/1973
[all …]
DCargo.lock8 source = "registry+https://github.com/rust-lang/crates.io-index"
17 source = "registry+https://github.com/rust-lang/crates.io-index"
26 source = "registry+https://github.com/rust-lang/crates.io-index"
35 source = "registry+https://github.com/rust-lang/crates.io-index"
96 source = "registry+https://github.com/rust-lang/crates.io-index"
102 source = "registry+https://github.com/rust-lang/crates.io-index"
108 source = "registry+https://github.com/rust-lang/crates.io-index"
114 source = "registry+https://github.com/rust-lang/crates.io-index"
123 source = "registry+https://github.com/rust-lang/crates.io-index"
129 source = "registry+https://github.com/rust-lang/crates.io-index"
[all …]
/third_party/rust/crates/cxx/book/src/build/
Dother.md1 {{#title Other build systems — Rust ♡ C++}}
8 - Link the resulting objects together with your other C++ and Rust objects.
18 CXX's Rust code generation automatically happens when the `#[cxx::bridge]`
19 procedural macro is expanded during the normal Rust compilation process, so no
45 ### Linking the C++ and Rust together
47 When linking a binary which contains mixed Rust and C++ code, you will have to
48 choose between using the Rust toolchain (`rustc`) or the C++ toolchain which you
51 Rust does not generate simple standalone `.o` files, so you can't just throw the
52 Rust-generated code into your existing C++ toolchain linker. Instead you need to
55 * Use `rustc` as the final linker. Pass any non-Rust libraries using `-L
[all …]
/third_party/rust/crates/cxx/book/src/
Dextern-rust.md1 {{#title extern "Rust" — Rust ♡ C++}}
2 # extern "Rust"
4 ```rust,noplayground
7 extern "Rust" {
13 The `extern "Rust"` section of a CXX bridge declares Rust types and signatures
16 The CXX code generator uses your extern "Rust" section(s) to produce a C++
18 has the same path as the Rust source file containing the bridge, except with a
21 A bridge module may contain zero or more extern "Rust" blocks.
23 ## Opaque Rust types
25 Types defined in Rust that are made available to C++, but only behind an
[all …]
Dcontext.md1 {{#title Other Rust–C++ interop tools — Rust ♡ C++}}
2 # Context: other Rust&ndash;C++ interop tools
4 When it comes to interacting with an idiomatic Rust API or idiomatic C++ API
15 programmatically to `extern "C"` Rust signatures. Preferably, build a
16 safe/idiomatic Rust wrapper on top.
18 - Build a C-compatible Rust wrapper around the Rust code and use **[cbindgen]**
26 [bindgen]: https://github.com/rust-lang/rust-bindgen
40 [bindgen#388]: https://github.com/rust-lang/rust-bindgen/issues/388
41 [bindgen#380]: https://github.com/rust-lang/rust-bindgen/issues/380
42 [bindgen#607]: https://github.com/rust-lang/rust-bindgen/issues/607
[all …]
/third_party/rust/crates/signal-hook/
DCargo.lock8 source = "registry+https://github.com/rust-lang/crates.io-index"
18 source = "registry+https://github.com/rust-lang/crates.io-index"
29 source = "registry+https://github.com/rust-lang/crates.io-index"
43 source = "registry+https://github.com/rust-lang/crates.io-index"
58 source = "registry+https://github.com/rust-lang/crates.io-index"
77 source = "registry+https://github.com/rust-lang/crates.io-index"
86 source = "registry+https://github.com/rust-lang/crates.io-index"
114 source = "registry+https://github.com/rust-lang/crates.io-index"
120 source = "registry+https://github.com/rust-lang/crates.io-index"
126 source = "registry+https://github.com/rust-lang/crates.io-index"
[all …]
/third_party/rust/crates/memchr/bench/
DCargo.lock6 source = "registry+https://github.com/rust-lang/crates.io-index"
17 source = "registry+https://github.com/rust-lang/crates.io-index"
23 source = "registry+https://github.com/rust-lang/crates.io-index"
29 source = "registry+https://github.com/rust-lang/crates.io-index"
33 "memchr 2.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
41 source = "registry+https://github.com/rust-lang/crates.io-index"
47 source = "registry+https://github.com/rust-lang/crates.io-index"
53 source = "registry+https://github.com/rust-lang/crates.io-index"
62 source = "registry+https://github.com/rust-lang/crates.io-index"
68 source = "registry+https://github.com/rust-lang/crates.io-index"
[all …]
/third_party/rust/crates/num-traits/
DRELEASES.md20 [195]: https://github.com/rust-num/num-traits/pull/195
21 [196]: https://github.com/rust-num/num-traits/pull/196
22 [201]: https://github.com/rust-num/num-traits/pull/201
23 [202]: https://github.com/rust-num/num-traits/pull/202
24 [205]: https://github.com/rust-num/num-traits/pull/205
25 [207]: https://github.com/rust-num/num-traits/pull/207
26 [210]: https://github.com/rust-num/num-traits/pull/210
27 [214]: https://github.com/rust-num/num-traits/pull/214
43 behavior, but [rust#15536] resolved that such casts are fine.
50 [180]: https://github.com/rust-num/num-traits/pull/180
[all …]
/third_party/rust/crates/regex/
DCHANGELOG.md8 * [PERF #930](https://github.com/rust-lang/regex/pull/930):
13 * [BUG #945](https://github.com/rust-lang/regex/issues/945):
23 * [FEATURE #832](https://github.com/rust-lang/regex/issues/916):
33 * [FEATURE #832](https://github.com/rust-lang/regex/pull/832):
35 * [FEATURE #857](https://github.com/rust-lang/regex/pull/857):
37 * [FEATURE #861](https://github.com/rust-lang/regex/pull/861):
39 * [FEATURE #877](https://github.com/rust-lang/regex/issues/877):
44 * [BUG #792](https://github.com/rust-lang/regex/issues/792):
53 * [BUG #680](https://github.com/rust-lang/regex/issues/680):
55 * [BUG #859](https://github.com/rust-lang/regex/issues/859):
[all …]
/third_party/rust/crates/serde/serde/
Dbuild.rs17 // std::collections::Bound was stabilized in Rust 1.17 in main()
18 // but it was moved to core::ops later in Rust 1.26: in main()
19 // https://doc.rust-lang.org/core/ops/enum.Bound.html in main()
27 // core::cmp::Reverse stabilized in Rust 1.19: in main()
28 // https://doc.rust-lang.org/stable/core/cmp/struct.Reverse.html in main()
33 // CString::into_boxed_c_str and PathBuf::into_boxed_path stabilized in Rust 1.20: in main()
34 // https://doc.rust-lang.org/std/ffi/struct.CString.html#method.into_boxed_c_str in main()
35 // https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.into_boxed_path in main()
41 // From<Box<T>> for Rc<T> / Arc<T> stabilized in Rust 1.21: in main()
42 // https://doc.rust-lang.org/std/rc/struct.Rc.html#impl-From<Box<T>> in main()
[all …]
DREADME.md1 …[Latest Version]][crates.io] [![serde: rustc 1.13+]][Rust 1.13] [![serde_derive: rustc 1.31+]][Rus…
9 [Rust 1.13]: https://blog.rust-lang.org/2016/11/10/Rust-1.13.html
10 [Rust 1.31]: https://blog.rust-lang.org/2018/12/06/Rust-1.31-and-rust-2018.html
12 **Serde is a framework for *ser*ializing and *de*serializing Rust data structures efficiently and g…
30 <a href="https://play.rust-lang.org/?edition=2018&gist=72755f28f99afc95e01d63174b28c1f5" target="_b…
50 ```rust
78 Serde is one of the most widely used Rust libraries so any place that Rustaceans
80 [#rust-questions] or [#rust-beginners] channels of the unofficial community
81 Discord (invite: <https://discord.gg/rust-lang-community>), the [#rust-usage] or
82 [#beginners] channels of the official Rust Project Discord (invite:
[all …]
/third_party/rust/crates/cxx/book/src/binding/
Dbox.md1 {{#title rust::Box<T> — Rust ♡ C++}}
2 # rust::Box\<T\>
7 // rust/cxx.h
11 # namespace rust {
46 # } // namespace rust
55 If T is an opaque Rust type, the Rust type is required to be [Sized] i.e. size
57 sized opaque Rust types.
59 [Sized]: https://doc.rust-lang.org/std/marker/trait.Sized.html
63 This program uses a Box to pass ownership of some opaque piece of Rust state
64 over to C++ and then back to a Rust callback, which is a useful pattern for
[all …]
/third_party/rust/crates/clap/.github/workflows/
Drust-next.yml1 name: rust-next
17 rust: "stable"
21 rust: "beta"
25 rust: "beta"
29 rust: "beta"
33 rust: "nightly"
37 rust: "stable"
41 rust: "stable"
45 rust: "stable"
47 continue-on-error: ${{ matrix.rust != 'stable' }}
[all …]
Dci.yml29 rust: "stable"
33 rust: "stable"
37 rust: "stable"
41 rust: "stable"
45 rust: "stable"
49 rust: "stable"
51 continue-on-error: ${{ matrix.rust != 'stable' }}
56 - name: Install Rust
59 toolchain: ${{ matrix.rust }}
62 - uses: Swatinem/rust-cache@v2
[all …]
/third_party/rust/crates/libc/.github/workflows/
Dbors.yml13 … actions: write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
26 - uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
30 - name: Setup Rust toolchain
31 run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
37 … actions: write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
49 - uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
53 - name: Setup Rust toolchain
54 run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
60 … actions: write # to cancel workflows (rust-lang/simpleinfra/github-actions/cancel-outdated-builds)
77 # https://github.com/rust-lang/libc/issues/1592
[all …]
/third_party/rust/crates/io-lifetimes/.github/workflows/
Dmain.yml17 - uses: ./.github/actions/install-rust
31 rust: stable
34 rust: nightly
37 # -D warnings is commented out in our install-rust action; re-add it here.
43 - uses: ./.github/actions/install-rust
45 toolchain: ${{ matrix.rust }}
62 rust: 1.48
65 # -D warnings is commented out in our install-rust action; re-add it here.
71 - uses: ./.github/actions/install-rust
73 toolchain: ${{ matrix.rust }}
[all …]
/third_party/rust/crates/serde/serde_test/
DREADME.md1 …[Latest Version]][crates.io] [![serde: rustc 1.13+]][Rust 1.13] [![serde_derive: rustc 1.31+]][Rus…
9 [Rust 1.13]: https://blog.rust-lang.org/2016/11/10/Rust-1.13.html
10 [Rust 1.31]: https://blog.rust-lang.org/2018/12/06/Rust-1.31-and-rust-2018.html
12 **Serde is a framework for *ser*ializing and *de*serializing Rust data structures efficiently and g…
30 <a href="https://play.rust-lang.org/?edition=2018&gist=72755f28f99afc95e01d63174b28c1f5" target="_b…
50 ```rust
78 Serde is one of the most widely used Rust libraries so any place that Rustaceans
80 [#rust-questions] or [#rust-beginners] channels of the unofficial community
81 Discord (invite: <https://discord.gg/rust-lang-community>), the [#rust-usage] or
82 [#beginners] channels of the official Rust Project Discord (invite:
[all …]
/third_party/rust/crates/serde/serde_derive/
DREADME.md1 …[Latest Version]][crates.io] [![serde: rustc 1.13+]][Rust 1.13] [![serde_derive: rustc 1.31+]][Rus…
9 [Rust 1.13]: https://blog.rust-lang.org/2016/11/10/Rust-1.13.html
10 [Rust 1.31]: https://blog.rust-lang.org/2018/12/06/Rust-1.31-and-rust-2018.html
12 **Serde is a framework for *ser*ializing and *de*serializing Rust data structures efficiently and g…
30 <a href="https://play.rust-lang.org/?edition=2018&gist=72755f28f99afc95e01d63174b28c1f5" target="_b…
50 ```rust
78 Serde is one of the most widely used Rust libraries so any place that Rustaceans
80 [#rust-questions] or [#rust-beginners] channels of the unofficial community
81 Discord (invite: <https://discord.gg/rust-lang-community>), the [#rust-usage] or
82 [#beginners] channels of the official Rust Project Discord (invite:
[all …]
/third_party/rust/crates/serde/
DREADME.md1 …[Latest Version]][crates.io] [![serde: rustc 1.13+]][Rust 1.13] [![serde_derive: rustc 1.31+]][Rus…
9 [Rust 1.13]: https://blog.rust-lang.org/2016/11/10/Rust-1.13.html
10 [Rust 1.31]: https://blog.rust-lang.org/2018/12/06/Rust-1.31-and-rust-2018.html
12 **Serde is a framework for *ser*ializing and *de*serializing Rust data structures efficiently and g…
30 <a href="https://play.rust-lang.org/?edition=2018&gist=72755f28f99afc95e01d63174b28c1f5" target="_b…
50 ```rust
78 Serde is one of the most widely used Rust libraries so any place that Rustaceans
80 [#rust-questions] or [#rust-beginners] channels of the unofficial community
81 Discord (invite: <https://discord.gg/rust-lang-community>), the [#rust-usage] or
82 [#beginners] channels of the official Rust Project Discord (invite:
[all …]
/third_party/rust/crates/rustc-hash/
DCODE_OF_CONDUCT.md1 # The Rust Code of Conduct
3 A version of this document [can be found online](https://www.rust-lang.org/conduct.html).
7 **Contact**: [rust-mods@rust-lang.org](mailto:rust-mods@rust-lang.org)
15 … a community member, please contact one of the channel ops or any of the [Rust moderation team][mo…
21 … conduct. If you feel that a thread needs moderation, please contact the [Rust moderation team][mo…
23 1. Remarks that violate the Rust standards of conduct, including hateful, hurtful, oppressive, or e…
32 In the Rust community we strive to go the extra step to look out for each other. Don't just aim to …
36Rust venues; including official IRC channels (#rust, #rust-internals, #rust-tools, #rust-libs, #ru…
40 [mod_team]: https://www.rust-lang.org/team.html#Moderation-team

12345678910>>...63