-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
55 lines (47 loc) · 1.57 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[package]
name = "macrofied-toolbox"
version = "0.4.3"
edition = "2021"
description = "This library provides an ergonomic experience of adding debugging messages to rust's Result<T,E> and Option<T> patterns"
license = "MIT"
include = ["src/**/*", "Cargo.toml", "LICENSE-MIT", "README.md"]
homepage = "https://github.com/Nejat/macrofied-toolbox-rs"
repository = "https://github.com/Nejat/macrofied-toolbox-rs"
keywords = ["option", "result", "command", "path"]
authors = ["Nejat<[email protected]>"]
categories = ["rust-patterns"]
[package.metadata.docs.rs]
features = ["all-debug"]
[lib]
proc-macro = true
[dependencies]
bitflags = { version = "1", optional = true }
cfg-if = { version = "1", optional = true }
proc-macro2 = { version = "1", optional = true }
quote = { version = "1", optional = true }
syn = { version = "1", features = ["full"], optional = true }
[dev-dependencies]
test-toolbox = { version = "0.5", features = ["expected","capture"] }
trybuild = { version = "1", features = ["diff"] }
version-sync = "0.9"
[[test]]
name = "macro-tests"
path = "tests/tests.rs"
[features]
default = []
depends = [ "bitflags", "cfg-if", "proc-macro2", "quote", "syn" ]
all = ["option", "result"]
all-debug = ["option-debug", "result-debug"]
option = ["depends"]
option-debug = ["option"]
result = ["depends"]
result-debug = ["result"]
trace = [] # feature should only be used for tests or examples
[[example]]
name = "result-macro"
path = "examples/result-macro.rs"
required-features = ["result"]
[[example]]
name = "option-macro"
path = "examples/option-macro.rs"
required-features = ["option"]