-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCargo.toml
40 lines (32 loc) · 1.17 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
[package]
name = "duplicate"
version = "0.0.0"
authors = ["Emad Jacob Maroun <[email protected]>"]
edition = "2021"
rust-version = "1.65"
license = "MIT OR Apache-2.0"
description = "Provides macros for duplication of code with variable substitution."
repository = "https://github.com/Emoun/duplicate"
documentation = "https://docs.rs/duplicate"
readme = "cargo-readme.md"
categories = ["development-tools"]
exclude = ["rustfmt.toml", ".gitignore", "README.md", "CHANGELOG.md"]
[lib]
proc-macro = true
[dependencies]
proc-macro2-diagnostics = { version = "0.10", optional = true }
proc-macro2 = { version = "1.0.85", optional = true }
heck = { version = "0.5", optional = true }
[dev-dependencies]
duplicate_macrotest = "1.0.7"
doc-comment = "0.3.3"
serde = "1.0.105" # Needed because macrotest's cargo.toml uses 1.0 however fails with < 1.0.105
regex = "1.6.0"
rustversion = "1.0.7"
[features]
default = ["pretty_errors", "module_disambiguation"]
pretty_errors = ["dep:proc-macro2-diagnostics", "dep:proc-macro2"]
module_disambiguation = ["dep:heck"]
fail-on-warnings = [] # Forces compilation to fail if any warnings are given. Used in CI.
[package.metadata.docs.rs]
all-features = true