Skip to content

Commit

Permalink
Release 1.2
Browse files Browse the repository at this point in the history
It has been long overdue. Let's serialize the world!

Some important changes since 1.1:

- Can serialize metatables now (optionally disabled with `bitser.includeMetatables`)
- Added an extension API
- Removed support for cdata, which was just too buggy to hold on. More robust support would probably need to depend on ffi-reflect, which is best done by an extension library
  • Loading branch information
gvx committed Dec 31, 2024
1 parent c0b0e12 commit 4545391
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
4 changes: 2 additions & 2 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2022 Jasmijn Wellner
Copyright (c) 2020-2024 Jasmijn Wellner

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand All @@ -10,4 +10,4 @@ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
PERFORMANCE OF THIS SOFTWARE.
4 changes: 2 additions & 2 deletions bitser.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--[[
Copyright (c) 2020, Jasmijn Wellner
Copyright (c) 2020-2024, Jasmijn Wellner
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand All @@ -14,7 +14,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
]]

local VERSION = '1.1'
local VERSION = '1.2'

local floor = math.floor
local pairs = pairs
Expand Down
24 changes: 24 additions & 0 deletions rockspecs/bitser-1.2-0.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package = "bitser"
version = "1.2-0"
source = {
url = "https://github.com/gvx/bitser.git",
tag = "v1.2"
}
description = {
summary = "Serializes and deserializes Lua values with LuaJIT.",
detailed = [[
Serializes and deserializes Lua values with LuaJIT.
It is blazingly fast, produces compact binary output, and is suitable
for deserializing untrusted data.
]],
homepage = "https://github.com/gvx/bitser",
-- issues_url = "https://github.com/gvx/bitser/issues",
license = "ISC"
}
dependencies = {
"luajit <= 2.1"
}
build = {
type = "builtin",
modules = { bitser = "bitser.lua" }
}
16 changes: 16 additions & 0 deletions spec/bitser_spec.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
--[[
Copyright (c) 2020-2024, Jasmijn Wellner
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
]]

local ffi = require 'ffi'

_G.love = {filesystem = {newFileData = function()
Expand Down

0 comments on commit 4545391

Please sign in to comment.