Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ package never reaches the target.
## Quick start

```toml
[build-dependencies.mcpp]
plugins = { version = "0.27.0", features = ["rules-spirv"] }
[build-dependencies]
mcpp.plugins = { version = "0.27.0", features = ["rules-spirv"] }
```

```cpp
Expand Down
4 changes: 2 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ mcpp 是一个带有构建插件框架的通用引擎;插件来自本包(`mcpp:p
## 快速开始

```toml
[build-dependencies.mcpp]
plugins = { version = "0.27.0", features = ["rules-spirv"] }
[build-dependencies]
mcpp.plugins = { version = "0.27.0", features = ["rules-spirv"] }
```

```cpp
Expand Down
6 changes: 3 additions & 3 deletions docs/00-engine-and-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ engine's own module family and is not used here.
A project names the rule and nothing else:

```toml
[build-dependencies.mcpp]
plugins = { version = "0.19.0", features = ["rules-cuda"], host-module = true }
[build-dependencies]
mcpp.plugins = { version = "0.19.0", features = ["rules-cuda"] }
```

The payloads each rule drives are declared **here**, under the feature that
Expand Down Expand Up @@ -96,7 +96,7 @@ Each rule therefore selects the extensions it claims and leaves the rest:
| `rules-hip` | `.hip` |
| `rules-metal` | `.metal` |
| `rules-qt` | `.ui`, `.qrc`, `.ts`; a header is found by what it declares, since `.h` is already C++ |
| `rules-qml` | nothing: a `.qml` file needs a module uri and a version that `[build] sources` cannot state, so the project states its modules in `build.mcpp` and writes `host-module = true`; the `rules-qt` it implies keeps its claims |
| `rules-qml` | nothing: a `.qml` file needs a module uri and a version that `[build] sources` cannot state, so the project states its modules in `build.mcpp`; the `rules-qt` it implies keeps its claims |
| `rules-slang` | `.slang` |
| `rules-swift` | `.swift` |
| `rules-sycl` | `.sycl` |
Expand Down
6 changes: 3 additions & 3 deletions docs/01-plugin-development.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ mcpp-index refuses such a package.
**Using L2 from another package.**

```toml
[build-dependencies.mcpp]
plugins = { version = "0.27.0", features = ["plugins-core"], host-module = true, reexport = true }
[build-dependencies]
mcpp.plugins = { version = "0.27.0", features = ["plugins-core"], reexport = true }
```

`reexport = true` is needed when the plugin's consumers import L2 modules in
Expand Down Expand Up @@ -234,7 +234,7 @@ A plugin in this package consists of:
- a page under `docs/`;
- a version bump.

A project's own plugin is a module in the project (a path dependency with `host-module = true`) and follows §2 in the same way.
A project's own plugin is a module in the project (a path dependency in `[build-dependencies]`) and follows §2 in the same way.

## Optional action progress

Expand Down
4 changes: 2 additions & 2 deletions docs/02-tool-sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ succeeded either way.
### 4.1 Write nothing

```toml
[build-dependencies.mcpp]
plugins = { version = "0.19.0", features = ["deps-cmake"], host-module = true }
[build-dependencies]
mcpp.plugins = { version = "0.19.0", features = ["deps-cmake"] }
```

The plugin resolves nothing stated, reaches the fourth level, finds `xim:cmake`
Expand Down
4 changes: 2 additions & 2 deletions docs/11-rules-qt.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
## Use

```toml
[build-dependencies.mcpp]
plugins = { version = "0.19.0", features = ["rules-qt"], host-module = true }
[build-dependencies]
mcpp.plugins = { version = "0.19.0", features = ["rules-qt"] }

# The SDK and its version are the project's declaration.
[target.'cfg(any(windows, linux, macos))'.xlings.workspace]
Expand Down
6 changes: 3 additions & 3 deletions docs/12-rules-qml.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
## Use

```toml
[build-dependencies.mcpp]
plugins = { version = "0.27.0", features = ["rules-qml"], host-module = true }
[build-dependencies]
mcpp.plugins = { version = "0.27.0", features = ["rules-qml"] }

# QML needs Qt Quick, which `xim:qt` carries and `xim:qt-base` does not.
[target.'cfg(any(windows, linux, macos))'.xlings.workspace]
Expand Down Expand Up @@ -43,7 +43,7 @@ QQmlComponent component(&engine);
component.loadFromModule("Probe", "Main");
```

`rules-qml` claims no file extension and names no `rule_module`: a `.qml` file needs a uri and a version that `[build] sources` cannot state, so the project writes `host-module = true` and states its modules in `build.mcpp`. The `rules-qt` it implies keeps its own claim of `.ui`, `.qrc` and `.ts`. One `qml::compile` call also runs what `qt::compile` runs, with `options::qt`; call one of them, not both.
`rules-qml` claims no file extension and names no `rule_module`: a `.qml` file needs a uri and a version that `[build] sources` cannot state, so the project states its modules in `build.mcpp`; its `[build-dependencies]` entry gives `build.mcpp` the library as for any member. The `rules-qt` it implies keeps its own claim of `.ui`, `.qrc` and `.ts`. One `qml::compile` call also runs what `qt::compile` runs, with `options::qt`; call one of them, not both.

## A module

Expand Down
4 changes: 2 additions & 2 deletions docs/32-dist-apk.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Every path option is relative to the manifest or absolute.
Both features imply `dist-apk`, so a project names them in its place:

```toml
[build-dependencies.mcpp]
plugins = { version = "0.19.0", features = ["dist-apk-kotlin", "dist-apk-maven"], host-module = true }
[build-dependencies]
mcpp.plugins = { version = "0.19.0", features = ["dist-apk-kotlin", "dist-apk-maven"] }
```

They are features and not payloads of `dist-apk` because a feature is what a
Expand Down
4 changes: 2 additions & 2 deletions docs/40-deps.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Module `mcpp.deps.archive`; engine floor: 2026.10.1.3 (0.19.0, mcpp#755; 2026.9.
## `deps-vcpkg`: the libraries a vcpkg manifest names

```toml
[build-dependencies.mcpp]
plugins = { version = "0.19.0", features = ["deps-vcpkg"], host-module = true }
[build-dependencies]
mcpp.plugins = { version = "0.19.0", features = ["deps-vcpkg"] }
```

```cpp
Expand Down
Loading