-
I'm just finding out about this, as I was curious about the latest release of the Rust SDK.
On the [release page](https://github.com/near/near-sdk-rs/releases/tag/near-sdk-v5.1.0), they have a pret…
-
Just like `languages.json`, It define the language `tokei` support.
It would be nice to add `.tokei.yaml` or `.sloc.yaml` for in the top directory of repository. It following the same structure as …
-
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…
-
Given the following code:
```rust
let is_greater = 5 => 3;
```
The current output is:
```
Compiling playground v0.0.1 (/playground)
error: expected one of `.`, `;`, `?`, `else`, o…
macmv updated
3 months ago
-
The following macro + invocation(taken from https://github.com/rust-lang/rust/issues/88577#issuecomment-914665202) seems to recurse endlessly(or just takes a very long time?) even emitting a warning i…
-
### Code
I tried this code:
```rust
const _: () = {
const _: () = {
impl Callable for Dummy {}
};
pub trait Callable {}
struct Dummy;
};
```
I expected to see this happen: …
-
Because Rust already have macros that evaluate on compile time to strings I think converting them to ints in a `const fn` is a very nice feature.
e.g. `env!("SOMETHING").parse::().unwrap()`
----…
-
See, for example, [this build](/tembo-io/pg-jsonschema-boon/actions/runs/9879155965/job/27284755224), which outputs a couple of these:
```
warning: unused import: `std::error::Error`
--> src/l…
-
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
-
should be relatively easy with `proc_macro`: https://doc.rust-lang.org/proc_macro/
e.g. this is how `include_wgsl!` is implemented: https://github.com/ashpil/include_wgsl/blob/main/src/lib.rs