You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3df51fb
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,7 +190,7 @@ Static and runtime plugins differ only in how their instances enter the factory:
190
190
191
191
- The root `iid` field is still required and must match the IID passed to the `PluginSystem` constructor.
192
192
- The root `metadata` field is required and follows the `PluginSystem` schema below.
193
-
- The root `binary` field is reserved by the `Directory` layout and names the plugin library inside its directory.
193
+
- The root `name` field is reserved by the `Directory` layout and gives the plugin library's platform-independent name. It is separate from the user-visible `metadata.name` field.
194
194
- Other root fields remain user-defined and are not interpreted by `PluginSystem`.
195
195
196
196
The `metadata` object has the following schema:
@@ -237,7 +237,7 @@ A plugin with compatibility version `C` and current version `V` satisfies a requ
237
237
`PluginSystem` supports two filesystem layouts:
238
238
239
239
-`Flat` is the default. It puts plugin libraries directly below each search path and reads their embedded manifests.
240
-
-`Directory` gives every plugin a child directory containing its library and a sidecar `plugin.json`. The manifest must contain the reserved root `binary` field naming the library in that directory.
240
+
-`Directory` gives every plugin a child directory containing its library and a sidecar `plugin.json`. The manifest must contain a root `name` without a platform library prefix or suffix. For example, `"name": "editor"` can resolve to `editor.dll`, `libeditor.dll`, `libeditor.so`, or `libeditor.dylib`.
0 commit comments