sol2/3.2.1

[full]

`sol2` is a C++ library binding to Lua.

sol3 (sol2 v3.0.3)

Join the chat in Discord: https://discord.gg/buxkYNT

Linux & Max OSX Build Status Windows Build status Documentation Status

Support via Github Sponsors Support via PayPal Support via Ko-fi Support via Patreon Support via Liberapay

sol2 is a C++ library binding to Lua. It currently supports all Lua versions 5.1+ (LuaJIT 2.x included). sol2 aims to be easy to use and easy to add to a project. The library is header-only for easy integration with projects.

Documentation

Find it here. A run-through kind of tutorial is here! The API documentation goes over most cases (particularly, the "api/usertype" and "api/table_proxy" and "api/function" sections) that should still get you off your feet and going, and there's an examples directory here as well.

... More
version 3.2.1
license MIT
repository https://pkg.cppget.org/1/stable
download sol2-3.2.1.tar.gz
sha256 1da23eac746a18b590265d68aeb1865a2fdff3bd1e57bb10e4e35190b3feb22e
project sol2
url github.com/ThePhD/sol2
package-email mjklaim@gmail.com

Depends (1)

lua ^5.0.0

Reviews

fail 0
pass 1

Builds

toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_fedora_44-gcc_16-bindist
timestamp 2026-06-02 12:11:37 UTC (03 13:28:14 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-apple-darwin23.5.0
tgt config macos_14-clang_15.0-static_O3
timestamp 2026-06-01 10:19:49 UTC (04 15:20:03 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-apple-darwin23.5.0
tgt config macos_14-clang_15.0-O3
timestamp 2026-06-01 10:19:02 UTC (04 15:20:49 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-apple-darwin23.5.0
tgt config macos_14-clang_15.0
timestamp 2026-06-01 10:18:12 UTC (04 15:21:39 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-apple-darwin23.5.0
tgt config macos_14-gcc_14_homebrew-static_O3
timestamp 2026-05-31 04:55:06 UTC (05 20:44:45 days ago)
result success | log | rebuild
toolchain public-0.18.1
target x86_64-apple-darwin23.5.0
tgt config macos_14-gcc_14_homebrew-O3
timestamp 2026-05-31 04:53:47 UTC (05 20:46:04 days ago)
result success | log | rebuild
toolchain public-0.18.1
target x86_64-apple-darwin23.5.0
tgt config macos_14-gcc_14_homebrew
timestamp 2026-05-31 04:52:33 UTC (05 20:47:18 days ago)
result success | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-gcc_14-bindist
timestamp 2026-05-30 13:23:23 UTC (06 12:16:28 days ago)
result success | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-clang_22_libc++-static_O3
timestamp 2026-05-30 11:05:28 UTC (06 14:34:24 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-clang_22_libc++-O3
timestamp 2026-05-30 11:05:20 UTC (06 14:34:32 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-clang_22_libc++
timestamp 2026-05-30 11:05:09 UTC (06 14:34:43 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-clang_22-static_O3
timestamp 2026-05-30 11:04:51 UTC (06 14:35:00 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-clang_22-O3
timestamp 2026-05-30 11:04:36 UTC (06 14:35:15 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-clang_22
timestamp 2026-05-30 11:04:25 UTC (06 14:35:26 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-gcc_16-static_O3
timestamp 2026-05-30 10:42:14 UTC (06 14:57:38 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-gcc_16-ndebug_O3
timestamp 2026-05-30 10:42:03 UTC (06 14:57:48 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-gcc_16-O3
timestamp 2026-05-30 10:41:52 UTC (06 14:57:59 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-gcc_16
timestamp 2026-05-30 10:41:32 UTC (06 14:58:19 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_fedora_43-gcc_15-bindist
timestamp 2026-05-30 10:34:05 UTC (06 15:05:46 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-clang_18_libc++-static_O3
timestamp 2026-05-30 10:33:40 UTC (06 15:06:11 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-clang_18_libc++-O3
timestamp 2026-05-30 10:33:12 UTC (06 15:06:39 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-clang_18_libc++
timestamp 2026-05-30 10:33:09 UTC (06 15:06:42 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-clang_18-static_O3
timestamp 2026-05-30 10:32:40 UTC (06 15:07:11 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-clang_18-O3
timestamp 2026-05-30 10:32:37 UTC (06 15:07:15 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-clang_18
timestamp 2026-05-30 10:32:08 UTC (06 15:07:43 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-freebsd15.0
tgt config freebsd_15-clang_19-static_O3
timestamp 2026-05-30 10:27:08 UTC (06 15:12:43 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-freebsd15.0
tgt config freebsd_15-clang_19-O3
timestamp 2026-05-30 10:26:44 UTC (06 15:13:07 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-freebsd15.0
tgt config freebsd_15-clang_19
timestamp 2026-05-30 10:26:33 UTC (06 15:13:18 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_14-static_O3
timestamp 2026-05-30 10:25:39 UTC (06 15:14:12 days ago)
result success | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_14-O3
timestamp 2026-05-30 10:25:25 UTC (06 15:14:27 days ago)
result success | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_14
timestamp 2026-05-30 10:25:07 UTC (06 15:14:44 days ago)
result success | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-clang_21_libc++
timestamp 2026-05-30 10:21:51 UTC (06 15:18:00 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-clang_21
timestamp 2026-05-30 10:21:37 UTC (06 15:18:15 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_ubuntu_24.04-gcc_13-bindist
timestamp 2026-05-30 10:19:03 UTC (06 15:20:48 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-gcc_15-O3
timestamp 2026-05-30 10:18:26 UTC (06 15:21:25 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-gcc_15
timestamp 2026-05-30 10:18:17 UTC (06 15:21:35 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-apple-darwin22.5.0
tgt config macos_13-clang_15.0
timestamp 2026-05-30 10:18:13 UTC (06 15:21:39 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-freebsd14.1
tgt config freebsd_14-clang_18
timestamp 2026-05-30 10:16:52 UTC (06 15:22:59 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-microsoft-win32-msvc14.3
tgt config windows_10-msvc_17
timestamp 2026-05-29 21:55:36 UTC (07 03:44:15 days ago)
result success | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_14-ndebug_O3
timestamp 2026-05-29 12:04:17 UTC (07 13:35:34 days ago)
result success | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_13
timestamp 2026-05-27 10:16:18 UTC (09 15:23:33 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-microsoft-win32-msvc14.5
tgt config windows_10-msvc_18-static_O2
timestamp 2026-05-26 18:59:15 UTC (10 06:40:36 days ago)
result success | log | rebuild
toolchain public-0.18.1
target x86_64-microsoft-win32-msvc14.5
tgt config windows_10-msvc_18-O2
timestamp 2026-05-26 18:58:27 UTC (10 06:41:25 days ago)
result success | log | rebuild
toolchain public-0.18.1
target x86_64-microsoft-win32-msvc14.5
tgt config windows_10-msvc_18
timestamp 2026-05-26 18:58:19 UTC (10 06:41:32 days ago)
result success | log | rebuild
toolchain public-0.18.1
target x86_64-microsoft-win32-msvc14.5
tgt config windows_10-clang_21_msvc_18-static_O2
timestamp 2026-05-26 10:53:12 UTC (10 14:46:39 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-microsoft-win32-msvc14.5
tgt config windows_10-clang_21_msvc_18-O2
timestamp 2026-05-26 10:52:31 UTC (10 14:47:20 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-microsoft-win32-msvc14.5
tgt config windows_10-clang_21_msvc_18
timestamp 2026-05-26 10:52:12 UTC (10 14:47:40 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_ubuntu_26.04-gcc_15-bindist
timestamp 2026-05-25 12:34:21 UTC (11 13:05:30 days ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-w64-mingw32
tgt config windows_10-gcc_15.2_mingw_w64-static_O2
timestamp 2026-05-23 21:36:19 UTC (13 04:03:32 days ago)
result success | log | rebuild
toolchain public-0.18.1
target x86_64-w64-mingw32
tgt config windows_10-gcc_15.2_mingw_w64-O2
timestamp 2026-05-23 21:35:17 UTC (13 04:04:34 days ago)
result success | log | rebuild
toolchain public-0.18.1
target x86_64-w64-mingw32
tgt config windows_10-gcc_15.2_mingw_w64
timestamp 2026-05-23 21:35:00 UTC (13 04:04:51 days ago)
result success | log | rebuild