mirror of
https://github.com/rust-lang/book.git
synced 2026-12-01 16:06:05 -06:00
infra: remove mdBook preprocessors from workspace
Remove these from the workspace, because they will need to be used as path dependencies in `rust-lang/rust`, as part of the build, because the Rust build pipeline invokes mdBook programmatically rather than via tools built directly, and we really don’t want to muck with publishing these to crates.io at present. As a result, they cannot be part of this workspace, because path dependencies do not get built as a crate within the hosting workspace. Make sure they do not rely on any features other than the core `mdbook` library.
This commit is contained in:
@@ -38,7 +38,15 @@ jobs:
|
|||||||
rustup set profile minimal
|
rustup set profile minimal
|
||||||
rustup toolchain install 1.76 -c rust-docs
|
rustup toolchain install 1.76 -c rust-docs
|
||||||
rustup default 1.76
|
rustup default 1.76
|
||||||
- name: Run package tests
|
- name: Run `tools` package tests
|
||||||
|
run: |
|
||||||
|
cargo test
|
||||||
|
- name: Run `mdbook-trpl-note` package tests
|
||||||
|
working-directory: packages/mdbook-trpl-note
|
||||||
|
run: |
|
||||||
|
cargo test
|
||||||
|
- name: Run `mdbook-trpl-listing` package tests
|
||||||
|
working-directory: packages/mdbook-trpl-listing
|
||||||
run: |
|
run: |
|
||||||
cargo test
|
cargo test
|
||||||
lint:
|
lint:
|
||||||
|
|||||||
Generated
+14
-1939
File diff suppressed because it is too large
Load Diff
+9
-4
@@ -1,16 +1,21 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = ["packages/*"]
|
members = ["packages/tools"]
|
||||||
default-members = ["packages/*"]
|
# default-members = ["packages/tools"]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
exclude = [
|
exclude = [
|
||||||
"linkchecker", # linkchecker is part of the CI workflow
|
"linkchecker", # linkchecker is part of the CI workflow
|
||||||
"listings", # these are intentionally distinct from the workspace
|
"listings", # these are intentionally distinct from the workspace
|
||||||
|
|
||||||
|
# These are used as path dependencies in `rust-lang/rust` (since we are not
|
||||||
|
# publishing them to crates.io), so they cannot be part of this workspace,
|
||||||
|
# because path dependencies do not get built as a crate within the hosting
|
||||||
|
# workspace.
|
||||||
|
"packages/mdbook-trpl-listing",
|
||||||
|
"packages/mdbook-trpl-note",
|
||||||
]
|
]
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
assert_cmd = "2.0.14"
|
|
||||||
walkdir = "2.3.1"
|
walkdir = "2.3.1"
|
||||||
clap = { version = "4.5.4", features = ["derive"] }
|
|
||||||
docopt = "1.1.0"
|
docopt = "1.1.0"
|
||||||
mdbook = "0.4.37"
|
mdbook = "0.4.37"
|
||||||
pulldown-cmark = { version = "0.10.3", features = ["simd"] }
|
pulldown-cmark = { version = "0.10.3", features = ["simd"] }
|
||||||
|
|||||||
@@ -6,14 +6,14 @@ edition = "2021"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = { workspace = true }
|
clap = { version = "4", features = ["derive"] }
|
||||||
mdbook = { workspace = true }
|
mdbook = { version = "0.4", features = [] } # only need the library
|
||||||
pulldown-cmark = { workspace = true }
|
pulldown-cmark = { version = "0.10", features = ["simd"] }
|
||||||
pulldown-cmark-to-cmark = { workspace = true }
|
pulldown-cmark-to-cmark = "13"
|
||||||
serde_json = { workspace = true }
|
serde_json = "1"
|
||||||
thiserror = "1.0.60"
|
thiserror = "1.0.60"
|
||||||
toml = "0.8.12"
|
toml = "0.8.12"
|
||||||
xmlparser = "0.13.6"
|
xmlparser = "0.13.6"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
assert_cmd = { workspace = true }
|
assert_cmd = "2"
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ edition = "2021"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = { workspace = true }
|
clap = { version = "4", features = ["derive"] }
|
||||||
mdbook = { workspace = true }
|
mdbook = { version = "0.4", features = [] } # only need the library
|
||||||
pulldown-cmark = { workspace = true }
|
pulldown-cmark = { version = "0.10", features = ["simd"] }
|
||||||
pulldown-cmark-to-cmark = { workspace = true }
|
pulldown-cmark-to-cmark = "13"
|
||||||
serde_json = { workspace = true }
|
serde_json = "1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
assert_cmd = { workspace = true }
|
assert_cmd = "2"
|
||||||
|
|||||||
Reference in New Issue
Block a user