Skip to content

Commit cf04a49

Browse files
committed
prepare release
1 parent 8f9789c commit cf04a49

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

Cargo.toml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
[package]
2+
categories = ["rust-patterns", "development-tools::procedural-macro-helpers", "parsing"]
3+
description = "Deriving with custom trait bounds"
4+
documentation = "https://docs.rs/attribute-derive"
5+
include = ["src/**/*", "Cargo.toml", "LICENSE-*", "README.md"]
6+
keywords = ["derive", "macro"]
7+
license = "MIT"
8+
readme = "README.md"
9+
repository = "https://github.com/ModProg/attribute-derive"
210
name = "attribute-derive"
311
version = "0.1.0"
412
edition = "2021"
513

614
[lib]
715

816
[dependencies]
9-
syn = "1"
1017
proc-macro2 = "1"
18+
syn = "1"
1119

1220
[dependencies.macro]
1321
path = "macro"
1422

23+
[workspace]
24+
members = ["macro"]
25+
1526
[dev-dependencies.syn]
1627
version = "1"
1728
features = ["full"]
18-
19-
[workspace]
20-
members = ["macro"]

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Basic gist is a struct like this:
1+
//! Basicly clap for attribute macros:
22
//! ```ignore
33
//! #[derive(Attribute)]
44
//! #[attribute(ident = "collection")]
@@ -13,6 +13,9 @@
1313
//! #[attribute(default)]
1414
//! #[attribute(expected = "Error when an error occured while parsing")]
1515
//! views: Vec<Type>,
16+
//! // Booleans can be used without assiging a value. as a flag.
17+
//! // If omitted they are set to false
18+
//! some_flag
1619
//! }
1720
//! ```
1821
//!

0 commit comments

Comments
 (0)