|
1 | 1 | [workspace] |
2 | | -members = [".", "examples/remove-emphasis/mdbook-remove-emphasis"] |
| 2 | +members = [ |
| 3 | + ".", |
| 4 | + "crates/*", |
| 5 | + "examples/remove-emphasis/mdbook-remove-emphasis", |
| 6 | +] |
3 | 7 |
|
4 | 8 | [workspace.lints.clippy] |
5 | 9 | all = { level = "allow", priority = -2 } |
6 | 10 | correctness = { level = "warn", priority = -1 } |
7 | 11 | complexity = { level = "warn", priority = -1 } |
8 | 12 |
|
| 13 | +[workspace.lints.rust] |
| 14 | +missing_docs = "warn" |
| 15 | +rust_2018_idioms = "warn" |
| 16 | + |
| 17 | +[workspace.package] |
| 18 | +edition = "2024" |
| 19 | +license = "MPL-2.0" |
| 20 | +repository = "https://github.com/rust-lang/mdBook" |
| 21 | +rust-version = "1.85.0" # Keep in sync with installation.md and .github/workflows/main.yml |
| 22 | + |
| 23 | +[workspace.dependencies] |
| 24 | +ammonia = "4.1.1" |
| 25 | +anyhow = "1.0.98" |
| 26 | +axum = "0.8.4" |
| 27 | +chrono = { version = "0.4.41", default-features = false, features = ["clock"] } |
| 28 | +clap = { version = "4.5.41", features = ["cargo", "wrap_help"] } |
| 29 | +clap_complete = "4.5.55" |
| 30 | +elasticlunr-rs = "3.0.2" |
| 31 | +env_logger = "0.11.8" |
| 32 | +futures-util = "0.3.31" |
| 33 | +handlebars = "6.3.2" |
| 34 | +hex = "0.4.3" |
| 35 | +ignore = "0.4.23" |
| 36 | +log = "0.4.27" |
| 37 | +mdbook-core = { path = "crates/mdbook-core" } |
| 38 | +mdbook-driver = { path = "crates/mdbook-driver" } |
| 39 | +mdbook-html = { path = "crates/mdbook-html" } |
| 40 | +mdbook-markdown = { path = "crates/mdbook-markdown" } |
| 41 | +mdbook-preprocessor = { path = "crates/mdbook-preprocessor" } |
| 42 | +mdbook-renderer = { path = "crates/mdbook-renderer" } |
| 43 | +mdbook-summary = { path = "crates/mdbook-summary" } |
| 44 | +memchr = "2.7.5" |
| 45 | +notify = "8.1.0" |
| 46 | +notify-debouncer-mini = "0.6.0" |
| 47 | +opener = "0.8.2" |
| 48 | +pathdiff = "0.2.3" |
| 49 | +pretty_assertions = "1.4.1" |
| 50 | +pulldown-cmark = { version = "0.10.3", default-features = false, features = ["html"] } # Do not update, part of the public api. |
| 51 | +regex = "1.11.1" |
| 52 | +select = "0.6.1" |
| 53 | +semver = "1.0.26" |
| 54 | +serde = { version = "1.0.219", features = ["derive"] } |
| 55 | +serde_json = "1.0.140" |
| 56 | +sha2 = "0.10.9" |
| 57 | +shlex = "1.3.0" |
| 58 | +snapbox = "0.6.21" |
| 59 | +tempfile = "3.20.0" |
| 60 | +tokio = "1.46.1" |
| 61 | +toml = "0.5.11" # Do not update, see https://github.com/rust-lang/mdBook/issues/2037 |
| 62 | +topological-sort = "0.2.2" |
| 63 | +tower-http = "0.6.6" |
| 64 | +walkdir = "2.5.0" |
| 65 | + |
9 | 66 | [package] |
10 | 67 | name = "mdbook" |
11 | | -version = "0.4.52" |
| 68 | +version = "0.5.0-alpha.1" |
12 | 69 | authors = [ |
13 | 70 | "Mathieu David <[email protected]>", |
14 | 71 | "Michael-F-Bryan <[email protected]>", |
15 | 72 | "Matt Ickstadt <[email protected]>" |
16 | 73 | ] |
17 | 74 | documentation = "https://rust-lang.github.io/mdBook/index.html" |
18 | | -edition = "2021" |
| 75 | +edition.workspace = true |
19 | 76 | exclude = ["/guide/*"] |
20 | 77 | keywords = ["book", "gitbook", "rustbook", "markdown"] |
21 | | -license = "MPL-2.0" |
| 78 | +license.workspace = true |
22 | 79 | readme = "README.md" |
23 | | -repository = "https://github.com/rust-lang/mdBook" |
| 80 | +repository.workspace = true |
24 | 81 | description = "Creates a book from markdown files" |
25 | | -rust-version = "1.82" # Keep in sync with installation.md and .github/workflows/main.yml |
| 82 | +rust-version.workspace = true |
26 | 83 |
|
27 | 84 | [dependencies] |
28 | | -anyhow = "1.0.71" |
29 | | -chrono = { version = "0.4.24", default-features = false, features = ["clock"] } |
30 | | -clap = { version = "4.3.12", features = ["cargo", "wrap_help"] } |
31 | | -clap_complete = "4.3.2" |
32 | | -env_logger = "0.11.1" |
33 | | -handlebars = "6.0" |
34 | | -hex = "0.4.3" |
35 | | -log = "0.4.17" |
36 | | -memchr = "2.5.0" |
37 | | -opener = "0.8.1" |
38 | | -pulldown-cmark = { version = "0.10.0", default-features = false, features = ["html"] } # Do not update, part of the public api. |
39 | | -regex = "1.8.1" |
40 | | -serde = { version = "1.0.163", features = ["derive"] } |
41 | | -serde_json = "1.0.96" |
42 | | -sha2 = "0.10.8" |
43 | | -shlex = "1.3.0" |
44 | | -tempfile = "3.4.0" |
45 | | -toml = "0.5.11" # Do not update, see https://github.com/rust-lang/mdBook/issues/2037 |
46 | | -topological-sort = "0.2.2" |
| 85 | +anyhow.workspace = true |
| 86 | +chrono.workspace = true |
| 87 | +clap.workspace = true |
| 88 | +clap_complete.workspace = true |
| 89 | +env_logger.workspace = true |
| 90 | +log.workspace = true |
| 91 | +mdbook-core.workspace = true |
| 92 | +mdbook-driver.workspace = true |
| 93 | +mdbook-html.workspace = true |
| 94 | +mdbook-markdown.workspace = true |
| 95 | +mdbook-preprocessor.workspace = true |
| 96 | +mdbook-renderer.workspace = true |
| 97 | +mdbook-summary.workspace = true |
| 98 | +opener.workspace = true |
| 99 | +toml.workspace = true |
47 | 100 |
|
48 | 101 | # Watch feature |
49 | | -notify = { version = "8.0.0", optional = true } |
50 | | -notify-debouncer-mini = { version = "0.6.0", optional = true } |
51 | | -ignore = { version = "0.4.20", optional = true } |
52 | | -pathdiff = { version = "0.2.1", optional = true } |
53 | | -walkdir = { version = "2.3.3", optional = true } |
| 102 | +ignore = { workspace = true, optional = true } |
| 103 | +notify = { workspace = true, optional = true } |
| 104 | +notify-debouncer-mini = { workspace = true, optional = true } |
| 105 | +pathdiff = { workspace = true, optional = true } |
| 106 | +walkdir = { workspace = true, optional = true } |
54 | 107 |
|
55 | 108 | # Serve feature |
56 | | -futures-util = { version = "0.3.28", optional = true } |
57 | | -tokio = { version = "1.43.1", features = ["macros", "rt-multi-thread"], optional = true } |
58 | | -axum = { version = "0.8.0", features = ["ws"], optional = true } |
59 | | -tower-http = { version = "0.6.0", features = ["fs", "trace"], optional = true } |
60 | | - |
61 | | -# Search feature |
62 | | -elasticlunr-rs = { version = "3.0.2", optional = true } |
63 | | -ammonia = { version = "4.0.0", optional = true } |
| 109 | +axum = { workspace = true, features = ["ws"], optional = true } |
| 110 | +futures-util = { workspace = true, optional = true } |
| 111 | +tokio = { workspace = true, features = ["macros", "rt-multi-thread"], optional = true } |
| 112 | +tower-http = { workspace = true, features = ["fs", "trace"], optional = true } |
64 | 113 |
|
65 | 114 | [dev-dependencies] |
66 | | -select = "0.6.0" |
67 | | -semver = "1.0.17" |
68 | | -snapbox = { version = "0.6.21", features = ["diff", "dir", "term-svg", "regex", "json"] } |
69 | | -pretty_assertions = "1.3.0" |
70 | | -walkdir = "2.3.3" |
| 115 | +regex.workspace = true |
| 116 | +select.workspace = true |
| 117 | +semver.workspace = true |
| 118 | +serde_json.workspace = true |
| 119 | +snapbox = { workspace = true, features = ["diff", "dir", "term-svg", "regex", "json"] } |
| 120 | +tempfile.workspace = true |
| 121 | +walkdir.workspace = true |
71 | 122 |
|
72 | 123 | [features] |
73 | 124 | default = ["watch", "serve", "search"] |
74 | 125 | watch = ["dep:notify", "dep:notify-debouncer-mini", "dep:ignore", "dep:pathdiff", "dep:walkdir"] |
75 | 126 | serve = ["dep:futures-util", "dep:tokio", "dep:axum", "dep:tower-http"] |
76 | | -search = ["dep:elasticlunr-rs", "dep:ammonia"] |
| 127 | +search = ["mdbook-html/search"] |
77 | 128 |
|
78 | 129 | [[bin]] |
79 | 130 | doc = false |
|
0 commit comments