Skip to content

Commit bfe9b48

Browse files
committed
Refactor crate into workspace to add tests crate
1 parent 8871dd4 commit bfe9b48

10 files changed

Lines changed: 68 additions & 46 deletions

File tree

.vscode/tasks.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111

1212
"type": "shell",
13-
"command": "cargo watch -c -x run",
13+
"command": "cargo watch -c -x build",
1414

1515
"isBackground": true,
1616
"presentation": {
@@ -84,6 +84,26 @@
8484
"problemMatcher": []
8585
},
8686

87+
{
88+
"label": "Cargo: Generate documentation",
89+
"icon": {
90+
"id": "book",
91+
"color": "terminal.ansiYellow"
92+
},
93+
94+
"type": "shell",
95+
"command": "cargo doc -p error-stack-macros2",
96+
97+
"isBackground": false,
98+
"presentation": {
99+
"echo": false,
100+
"panel": "dedicated",
101+
"showReuseMessage": false
102+
},
103+
104+
"problemMatcher": []
105+
},
106+
87107
{
88108
"label": "Cargo: Test",
89109
"icon": {
@@ -138,7 +158,7 @@
138158
},
139159

140160
"type": "shell",
141-
"command": "cargo add ${input:crates}",
161+
"command": "cargo add -p error-stack-macros2 ${input:crates}",
142162

143163
"isBackground": false,
144164
"presentation": {

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,3 @@
1-
[package]
2-
name = "error-stack-macros2"
3-
version = "0.0.0-reserved"
4-
authors = ["LuisFerLCC"]
5-
edition = "2024"
6-
rust-version = "1.89.0"
7-
description = "Community-made procedural macros for error-stack."
8-
readme = "README.md"
9-
repository = "https://github.com/LuisFerLCC/error-stack-macros2"
10-
license = "Apache-2.0"
11-
keywords = ["error", "errorstack", "macros", "proc-macro", "no_std"]
12-
categories = ["development-tools", "no-std", "rust-patterns"]
13-
exclude = ["/.github", "/.idea", "/.vscode", "/target", ".editorconfig"]
14-
15-
[lib]
16-
proc-macro = true
17-
18-
[lints.rust]
19-
missing_docs = "warn"
20-
single_use_lifetimes = "warn"
21-
unconditional_recursion = "deny"
22-
unit_bindings = "warn"
23-
unnameable_types = "warn"
24-
unreachable_pub = "warn"
25-
unsafe_code = "deny"
26-
unused_lifetimes = "warn"
27-
28-
[lints.clippy]
29-
unwrap_used = "warn"
30-
expect_used = "warn"
31-
panic = "warn"
32-
33-
[dependencies]
34-
proc-macro2 = "1.0.101"
35-
quote = "1.0.40"
36-
regex = "1.11.2"
37-
syn = { version = "2.0.106", features = ["full", "extra-traits"] }
38-
39-
[dev-dependencies]
40-
error-stack = "0.6.0"
1+
[workspace]
2+
members = ["impl"]
3+
resolver = "3"

impl/Cargo.toml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[package]
2+
name = "error-stack-macros2"
3+
version = "0.0.0-reserved"
4+
authors = ["LuisFerLCC"]
5+
edition = "2024"
6+
rust-version = "1.89.0"
7+
description = "Community-made procedural macros for error-stack."
8+
readme = "../README.md"
9+
repository = "https://github.com/LuisFerLCC/error-stack-macros2"
10+
license = "Apache-2.0"
11+
keywords = ["error", "errorstack", "macros", "proc-macro", "no_std"]
12+
categories = ["development-tools", "no-std", "rust-patterns"]
13+
14+
[lib]
15+
proc-macro = true
16+
17+
[lints.rust]
18+
missing_docs = "warn"
19+
single_use_lifetimes = "warn"
20+
unconditional_recursion = "deny"
21+
unit_bindings = "warn"
22+
unnameable_types = "warn"
23+
unreachable_pub = "warn"
24+
unsafe_code = "deny"
25+
unused_lifetimes = "warn"
26+
27+
[lints.clippy]
28+
unwrap_used = "warn"
29+
expect_used = "warn"
30+
panic = "warn"
31+
32+
[dependencies]
33+
proc-macro2 = "1.0.101"
34+
quote = "1.0.40"
35+
regex = "1.11.2"
36+
syn = { version = "2.0.106", features = ["full", "extra-traits"] }
37+
38+
[dev-dependencies]
39+
error-stack = "0.6.0"
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)