| Crates.io | records |
| lib.rs | records |
| version | 0.2.0 |
| created_at | 2021-12-11 20:58:00.453139+00 |
| updated_at | 2022-01-29 03:50:51.789178+00 |
| description | Proc macro for defining data storage structs |
| homepage | https://sr.ht/~hutzdog/records-rs |
| repository | https://git.sr.ht/~hutzdog/records-rs |
| max_upload_size | |
| id | 496330 |
| size | 8,059 |
Records is a Rust library which adds an attribute designed for simple data classes ("records").
The record attribute takes a standard named struct and
pub#[records::record]
pub struct Person {
name: String,
}
pub fn main() {
let person = Person::new(String::from("World"));
println!("Hello, {}!", person.name);
}