-
Hi,
We have a bazel setup with a `cc_toolchain` configured to use gold via `--fuse-ld=gold`. When rules rust runs rustc it forwards the linker flags configured in the `cc_toolchain` to rustc with `…
-
Hi,
When attempting to run `cargo fmt` on a the ill-typed (or maybe not even parsable?) library consisting of two files:
lib.rs:
```
mod foo;
```
foo.rs
```
const BAR = 42;
```
the c…
-
### Code
`rustdoc` crashes on the following code:
```Rust
pub trait Module {
type Algebra;
}
pub trait ChainComplex {
type Algebra;
type Module: Module;
}
pub struct Fr…
-
1. Do setup from docs.
2. Generate esp-idf template.
3. Compile successfully.
4. Add a crate with generated Rust bindings for a wrapped C library such as `ring` or `littlefs2`.
5. Observe a build …
-
### Location
https://doc.rust-lang.org/rustc/platform-support/wasm32-wasip1-threads.html#building-the-target
### Summary
The section seems to suggest to add
```
[target.wasm32-wasip1-threads]
wa…
-
auto-reduced (treereduce-rust):
````rust
#![feature(async_closure, noop_waker, async_fn_traits)]
use std::future::Future;
use std::pin::pin;
use std::task::*;
pub fn block_on(fut: impl F…
-
I am trying to use V2 to build an Android app that embeds a Rust library. NDK and everything is set up but now the build fails with "cargo: cannot find file or directory".
I've added Rust to the `n…
-
### Code
```Rust
mod foo {
pub trait MyTrait {
field: Q,
field3: &'a u8,
my_foo: Foo,
field2: R,
}
pub struct Outer Fn((&'b bool, &'a u8)) -> &'b i8> {
…
-
Found a minor bug related to the rust-analyzer popup showing when a project doesn't have a Cargo.toml file. See the screenshot below:
![vscode-rust-analyzer-popup-bug](https://github.com/rust-lang/…
sryze updated
1 month ago
-
When running with `cargo bundle --release` to create a deb we sometimes get the crash
```
thread 'main' panicked at 'index out of bounds: the len is 15 but the index is 15', /home/blarsen/.cargo/r…