An open API service indexing awesome lists of open source software.

https://github.com/sam0x17/pub-fields

A simple proc macro that makes all fields of a struct public
https://github.com/sam0x17/pub-fields

Last synced: 8 months ago
JSON representation

A simple proc macro that makes all fields of a struct public

Awesome Lists containing this project

README

          

A simple attribute that makes all fields public on a struct.

Usage:
```rust
#[pub_fields]
pub struct MyStruct {
a: usize,
b: usize,
c: usize,
}
```
=>
```rust
pub struct MyStruct {
pub a: usize,
pub b: usize,
pub c: usize,
}
```