diff --git a/.xlings.json b/.xlings.json index 5b5539c..da059b5 100644 --- a/.xlings.json +++ b/.xlings.json @@ -1,5 +1,5 @@ { "workspace": { - "xim:mcpp": "0.0.101" + "xim:mcpp": "2026.8.5.4" } } diff --git a/README.md b/README.md index 99dd53b..c9c9df5 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,8 @@ mcpp new myplayer --template ffmpeg && cd myplayer && mcpp run -- video.mp4 # 或在已有项目中手动接入: ```toml -[dependencies] -ffmpeg = "0.0.3" +[dependencies.ffmpeg] +ffmpeg = "8.1.2" ``` ```cpp diff --git a/mcpp.toml b/mcpp.toml index 81f3b8d..7dd1b99 100644 --- a/mcpp.toml +++ b/mcpp.toml @@ -1,7 +1,15 @@ +# The namespace names whose library this is, not who packaged it; the version +# says which upstream you are getting. `mcpplibs` is mcpp's DEFAULT namespace +# (kDefaultNamespace), not an answer to "whose library"; and `0.0.3` told a +# consumer nothing about which FFmpeg was inside — it is 8.1.2, which is what +# the compat.ffmpeg dependency below has said all along. +# +# Rule and full migration table: mcpp-index#163. [package] +namespace = "ffmpeg" name = "ffmpeg" -version = "0.0.3" -description = "FFmpeg C++ modules for mcpp (import ffmpeg.av;) on top of the compat.ffmpeg source build" +version = "8.1.2" +description = "FFmpeg 8.1.2 C++ modules for mcpp (import ffmpeg.av;) on top of the compat.ffmpeg source build" license = "MIT" repo = "https://github.com/mcpplibs/ffmpeg-m" platforms = ["linux", "macos", "windows"] diff --git a/templates/decode/mcpp.toml.in b/templates/decode/mcpp.toml.in index ba6c3dd..578ba68 100644 --- a/templates/decode/mcpp.toml.in +++ b/templates/decode/mcpp.toml.in @@ -2,5 +2,8 @@ name = "{{project.name}}" version = "0.1.0" -[dependencies] +# `ffmpeg` is spelled out: templates substitute only project.name, +# self.name and self.version — there is no namespace placeholder yet. +# See mcpp-index#163. +[dependencies.ffmpeg] {{self.name}} = "{{self.version}}"