Skip to content

mwrap-3.1.0

Latest

Choose a tag to compare

@Shinonome-Ryoko14 Shinonome-Ryoko14 released this 02 Dec 16:29
89d48f1

Initial mwrap C++23 module release for nanobind 3.1.0 (mcpplibs.mwrap.nanobind@3.1.0), backed by compat.nanobind@3.1.0.

Highlights

  • Module surface:
    • mcpplibs.mwrap.nanobind (re-exports _core, macros, stl, ndarray)
    • mcpplibs.mwrap.nanobind.operators (opt-in submodule)
  • Companion macro header: <mwrap/nanobind/macros.hpp> for preprocessor macros (NB_MODULE, NB_TRAMPOLINE, NB_OVERRIDE*, NB_MAKE_OPAQUE).
  • Python SDK resolution: Supports MCPP_PYTHON_INCLUDE_DIR, [xlings.workspace] "xim:python" = "3.13.12", MCPP_PYTHON_EXECUTABLE, VIRTUAL_ENV, and PATH without linking libpython into consumers.
  • Features:
    • runtime (default): compiles the nanobind combined runtime once via compat.nanobind.
    • tests: private embedded-Python test support (mcpplibs.mtest), never exposed to consumers.
  • Starter template: templates/embed/ (mcpp new --template mcpplibs.mwrap.nanobind@3.1.0).
  • License deployment: Deploys LICENSE, NOTICE, and upstream nanobind license/README files via [[runtime.deploy]].

Verified Platforms

  • Ubuntu 24.04 (gcc@16.1.0, llvm@23.1.3)
  • macOS 15 (llvm@23.1.3)
  • Windows 2025 (llvm@23.1.3 + MSVC)