-
It'd be pretty neat if you could do something like:
```rust
let foo = function! {
foo(a: u32, b: CustomStruct, c: Ptr) -> u32 {
entry:
a
-
I would like to be able to read a tree-sitter query from file so I can develop the query in a text editor and optionally save the for a longer time.
So given the query file `find_mods_nested_in_tes…
-
## Environment
* **IntelliJ Rust plugin version:** 0.3.136.3514-203
* **Rust toolchain version:** 1.48.0 (7eac88abb 2020-11-16) x86_64-unknown-linux-gnu
* **IDE name and version:** CLion 2020…
-
Look at the following snippet:
```rust
println!("{} {}", crate_name!(), crate_description!());
```
In this code, `crate_name!()` and `crate_description!()` are macros provided by the [`cla…
-
The following example:
```rust
macro_rules! foo {
() => {
&1;
};
}
fn main() {
foo!();
foo!();
}
```
generates a suggestion (on beta 1.55) to insert a fix lik…
ehuss updated
5 months ago
-
Is there a getting started guide I could use? I looked in the examples folder but these don't seem to be complete projects. Quite new to Rust so not sure how to get started. I tried to make a project …
-
## Environment
* **IntelliJ Rust plugin version: 0.4.191.5293-223**
* **IDE name and version: CLion 2022.3.2**
* **Operating system: Windows**
## Problem description
Macro expansion handles c…
-
I'm using serde to implement deserialization for a custom protocol. To keep the code dry, I've pulled all relevant strings into constants, but that creates a problem when trying to use the constants a…
srijs updated
6 months ago
-
**Input**
```rust
macro_rules! outer {
($d:tt) => {
macro_rules! inner {
($d s:expr) => {
println!("{}", $d s);
}
}
};
}
…
-
I'm using `PyArray::from_borrowed_array_bound` to expose an immutable data buffer from a Rust struct to Python space via Numpy. The type needs to uphold some invariants about its internal data, which…