Repository navigation
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, andPATHwithout linkinglibpythoninto consumers. - Features:
runtime(default): compiles the nanobind combined runtime once viacompat.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)