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_debian_13-gcc_14-bindist
timestamp 2026-08-15 03:27:54 UTC (02:45:36 hours ago)
result success | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_14-static_O3
timestamp 2026-08-14 15:35:12 UTC (14:38:18 hours ago)
result success | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_14-O3
timestamp 2026-08-14 15:35:11 UTC (14:38:18 hours ago)
result success | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_14
timestamp 2026-08-14 15:34:23 UTC (14:39:06 hours ago)
result success | 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-08-14 14:05:22 UTC (16:08:07 hours 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-08-14 14:04:31 UTC (16:08:59 hours 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-08-14 14:03:39 UTC (16:09:51 hours 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-08-14 13:10:26 UTC (17:03:03 hours ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-clang_22_libc++-static_O3
timestamp 2026-08-14 13:10:23 UTC (17:03:07 hours 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-08-14 13:09:53 UTC (17:03:36 hours 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-08-14 13:09:39 UTC (17:03:50 hours 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-08-14 13:09:34 UTC (17:03:56 hours 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-08-14 13:09:09 UTC (17:04:21 hours 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-08-14 12:12:07 UTC (18:01:22 hours 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-08-14 12:11:32 UTC (18:01:57 hours 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-08-14 12:11:16 UTC (18:02:14 hours 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-08-14 12:10:48 UTC (18:02:41 hours 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-08-14 12:10:30 UTC (18:02:59 hours ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-clang_18
timestamp 2026-08-14 12:10:00 UTC (18:03:30 hours 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-08-14 11:58:32 UTC (18:14:58 hours 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-08-14 11:58:00 UTC (18:15:29 hours 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-08-14 11:57:20 UTC (18:16:10 hours 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-08-14 11:57:18 UTC (18:16:12 hours 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-08-14 11:56:57 UTC (18:16:32 hours 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-08-14 11:52:13 UTC (18:21:17 hours 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-08-14 11:52:10 UTC (18:21:19 hours ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-freebsd15.0
tgt config freebsd_15-clang_19
timestamp 2026-08-14 11:51:24 UTC (18:22:05 hours ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_debian_13-clang_21_libc++
timestamp 2026-08-14 11:13:09 UTC (19:00:20 hours 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-08-14 11:12:24 UTC (19:01:06 hours 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-08-14 10:55:08 UTC (19:18:21 hours 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-08-14 10:54:56 UTC (19:18:34 hours 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-08-14 10:52:39 UTC (19:20:51 hours ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target x86_64-freebsd14.1
tgt config freebsd_14-clang_18
timestamp 2026-08-14 10:36:19 UTC (19:37:11 hours ago)
result error (update) | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_14-ndebug_O3
timestamp 2026-08-14 03:28:30 UTC (01 02:45:00 days ago)
result success | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_fedora_43-gcc_15-bindist
timestamp 2026-08-12 10:48:29 UTC (02 19:25:01 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-08-11 21:58:27 UTC (03 08:15:02 days ago)
result success | log | rebuild
toolchain public-0.18.1
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_13
timestamp 2026-08-11 10:21:50 UTC (03 19:51:40 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-08-08 19:30:01 UTC (06 10:43:28 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-08-08 19:29:56 UTC (06 10:43:34 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-08-08 19:29:30 UTC (06 10:44:00 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-08-08 10:21:34 UTC (06 19:51:55 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-08-08 10:21:09 UTC (06 19:52: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-08-08 10:20:38 UTC (06 19:52:52 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-08-07 11:51:28 UTC (07 18:22:01 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-08-05 13:58:43 UTC (09 16:14:47 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-08-05 13:58:29 UTC (09 16:15:00 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-08-05 13:57:55 UTC (09 16:15:35 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-static_O3
timestamp 2026-08-03 05:05:53 UTC (12 01:07:37 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-08-03 05:04:36 UTC (12 01:08:53 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-08-03 05:03:31 UTC (12 01:09:58 days ago)
result success | log | rebuild
toolchain public-0.18.1
target x86_64-linux-gnu
tgt config linux_fedora_44-gcc_16-bindist
timestamp 2026-08-01 13:17:15 UTC (13 16:56:15 days ago)
result error (update) | log | rebuild