From 975cfe2091b9db98aa93218ab401e9728b1a3a6d Mon Sep 17 00:00:00 2001 From: Andrew Sonin Date: Thu, 9 May 2024 20:16:37 +0300 Subject: [PATCH] docs(crate): add docs for crate --- .github/workflows/ci.yml | 6 +++--- Cargo.toml | 2 +- src/lib.rs | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa6c540..afd1156 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,8 +68,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Run tests - run: cargo test + run: cargo test --lib --bins --tests - name: Run tests with all features - run: cargo test --all-features + run: cargo test --lib --bins --tests --all-features - name: Run tests with all features in release mode - run: cargo test --all-features --release \ No newline at end of file + run: cargo test --lib --bins --tests --all-features --release \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index d8ada59..4b06122 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gset" -version = "1.0.0" +version = "1.0.1" authors = ["Andrew Sonin "] description = "A procedural macro for generating the most basic getters and setters on fields." categories = ["development-tools::procedural-macro-helpers"] diff --git a/src/lib.rs b/src/lib.rs index de1a3e6..b0dceef 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,5 @@ +#![doc = include_str!("../README.md")] + use field_attribute_layout::AttributeLayout; use proc_macro::TokenStream; use proc_macro2::TokenStream as TokenStream2;