Skip to content

Commit

Permalink
docs(getset): add docstring for Getset derive macro
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsonin committed May 10, 2024
1 parent b4ff3a0 commit 247334c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gset"
version = "1.0.2"
version = "1.0.3"
authors = ["Andrew Sonin <sonin.cel@yandex.ru>"]
description = "A procedural macro for generating the most basic getters and setters on fields."
categories = ["development-tools::procedural-macro-helpers"]
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use syn::{
mod field_attribute_layout;
mod field_attributes;

/// Derives getters and setters.
#[proc_macro_derive(Getset, attributes(getset))]
#[proc_macro_error]
pub fn derive_getset(input: TokenStream) -> TokenStream {
Expand Down

0 comments on commit 247334c

Please sign in to comment.