Skip to content

Commit 6cbfb9e

Browse files
authored
chore: Rearrange project as a workspace (#173)
Thank you to rust-lang/cargo#11645 (comment) for explaining how to fix up README paths appropriately. ❤️❤️
1 parent 96501bc commit 6cbfb9e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+58
-47
lines changed

.github/dependabot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22

33
updates:
44
- package-ecosystem: "cargo"
5-
directory: "/"
5+
directory: "parser"
66
schedule:
77
interval: "daily"
88
commit-message:

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: taiki-e/install-action@cargo-llvm-cov
4848

4949
- name: Generate code coverage
50-
run: cargo llvm-cov --all-features --lcov --ignore-filename-regex tests --output-path lcov.info
50+
run: cargo llvm-cov --workspace --all-features --lcov --ignore-filename-regex tests --output-path lcov.info
5151

5252
# Tokens aren't available for PRs originating from forks,
5353
# so we don't attempt to upload code coverage in that case.

Cargo.toml

+5-44
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,6 @@
1-
[package]
2-
name = "asciidoc-parser"
3-
version = "0.2.0"
4-
description = "Parser for AsciiDoc format"
5-
authors = ["Eric Scouten <[email protected]>"]
6-
license = "MIT OR Apache-2.0"
7-
documentation = "https://docs.rs/asciidoc-parser"
8-
repository = "https://github.com/scouten/asciidoc-parser"
9-
readme = "README.md"
10-
edition = "2021"
11-
keywords = ["asciidoc", "parser"]
12-
categories = ["parser-implementations"]
13-
rust-version = "1.74.0"
1+
[workspace]
2+
resolver = "2"
143

15-
[dependencies]
16-
bytecount = "0.6.7"
17-
memchr = "2.6.4"
18-
thiserror = "2.0.1"
19-
20-
[dev-dependencies]
21-
codspeed-criterion-compat = "2.3.3"
22-
criterion = "0.5.1"
23-
pretty_assertions_sorted = "1.2.3"
24-
25-
[[bench]]
26-
name = "element_attributes"
27-
harness = false
28-
29-
[[bench]]
30-
name = "inline_macro"
31-
harness = false
32-
33-
[[bench]]
34-
name = "section_with_two_blocks"
35-
harness = false
36-
37-
[[bench]]
38-
name = "simple_parse"
39-
harness = false
40-
41-
[package.metadata.cargo-udeps.ignore]
42-
development = ["criterion"]
43-
44-
[lints.rust]
45-
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] }
4+
members = [
5+
"parser",
6+
]

parser/Cargo.toml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[package]
2+
name = "asciidoc-parser"
3+
version = "0.2.0"
4+
description = "Parser for AsciiDoc format"
5+
authors = ["Eric Scouten <[email protected]>"]
6+
license = "MIT OR Apache-2.0"
7+
documentation = "https://docs.rs/asciidoc-parser"
8+
repository = "https://github.com/scouten/asciidoc-parser"
9+
readme = "../README.md"
10+
edition = "2021"
11+
keywords = ["asciidoc", "parser"]
12+
categories = ["parser-implementations"]
13+
rust-version = "1.74.0"
14+
15+
[dependencies]
16+
bytecount = "0.6.7"
17+
memchr = "2.6.4"
18+
thiserror = "2.0.1"
19+
20+
[dev-dependencies]
21+
codspeed-criterion-compat = "2.3.3"
22+
criterion = "0.5.1"
23+
pretty_assertions_sorted = "1.2.3"
24+
25+
[[bench]]
26+
name = "element_attributes"
27+
harness = false
28+
29+
[[bench]]
30+
name = "inline_macro"
31+
harness = false
32+
33+
[[bench]]
34+
name = "section_with_two_blocks"
35+
harness = false
36+
37+
[[bench]]
38+
name = "simple_parse"
39+
harness = false
40+
41+
[package.metadata.cargo-udeps.ignore]
42+
development = ["criterion"]
43+
44+
[lints.rust]
45+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/lib.rs parser/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#![deny(clippy::unwrap_used)]
55
#![deny(missing_docs)]
66
#![deny(warnings)]
7-
#![doc = include_str!("../README.md")]
7+
#![doc = include_str!(concat!("../", std::env!("CARGO_PKG_README")))]
88

99
pub mod attributes;
1010

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

release-plz.toml

+5
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ features_always_increment_minor = true
3838
pr_labels = ["release"]
3939
release_always = false
4040
release_commits = "^(feat|fix|update|doc)[(:]"
41+
42+
[[package]]
43+
name = "parser"
44+
changelog_path = "./CHANGELOG.md"
45+

0 commit comments

Comments
 (0)