-
## 🚀 Feature: Macros for simpler use
**Description**
Implement useful macros for this library.
**Proposed Solution**
Learn how macros work, and implement useful macros.
Here are some ideas f…
-
The `#[doc(hidden)]` prevents rust-analyzer from auto importing the proc macro.
-
The package `anymap v1.0.0-beta.2` currently triggers the following future incompatibility lints:
> warning: adding an auto trait `Send` to a trait object in a pointer cast may cause UB later on
> …
-
Building cross-rs https://github.com/cross-rs/cross using latest nightly rust `cargo 1.83.0-nightly (80d82ca22 2024-09-27)` got error like below:
```
error[E0464]: multiple candidates for `dylib` dep…
-
In the lang call on 2024-09-04, we [agreed](https://github.com/rust-lang/rust/pull/129755#issuecomment-2329806350) that the span of the token used to fill in the fragment specifier should be used for …
-
rust-mode's performance is extremely bad with adaptive-wrap-prefix-mode enabled. The profiler shows most of the time is spent in `rust-in-comment-paragraph` and in turn `syntax-ppss`.
rust-ts-mode …
ksqsf updated
3 weeks ago
-
macro.rs:
```rust
extern crate proc_macro;
use proc_macro::TokenStream;
#[proc_macro_attribute]
pub fn your_macro(_attr: TokenStream, item: TokenStream) -> TokenStream {
// Macro implementation
…
-
Requested feature: Add a macro `gen_proof_for_contract`.
Use case: Contact harnesses are usually trivial and repetitive. Add a macro to go the work for now.
Link to relevant documentation (Rust refe…
-
## Environment
### Version
\>= v13.0.0-alpha.2
### OS
wsl
## Description
when running `cargo run -- --output json`, it shows:
```
thread 'main' panicked at src/cli.rs:296:30:
Misma…
-
### Rust宏设计
从最常见到的vec![]到substrait中各种宏来帮助用户完成pallet基本功能
``` rust
#[pallet::storage]
pub(super) type Something = StorageValue;
```
Rust中的宏,最重要的是帮助开发者少写boilerplate代码,快速且心智简单地完成基础设置和基本功能,从而让开发者更专…