Alex Orlenko
|
3dc58cdfc9
|
Move Luau Vector type to top level
|
2024-10-22 22:41:26 +01:00 |
|
Alex Orlenko
|
75475fc9a8
|
Add missing serde::{de, ser} top level comment
|
2024-10-20 11:52:13 +01:00 |
|
Alex Orlenko
|
93a1a55aaa
|
Update docs
|
2024-10-19 23:10:43 +01:00 |
|
Alex Orlenko
|
08545224f4
|
clippy
|
2024-10-19 11:49:40 +01:00 |
|
Alex Orlenko
|
9f6c78532f
|
Move IntoLua/FromLua and IntoLuaMulti/FromLuaMulti to traits module
|
2024-10-07 10:32:50 +01:00 |
|
Alex Orlenko
|
04d8106676
|
Remove SubtypeId from AnyUserData and instead add Value::Other variant that will cover any unknown types (eg. LuaJIT CData)
|
2024-10-02 12:16:48 +01:00 |
|
Alex Orlenko
|
529361fcbc
|
Add new Buffer type for Luau.
Previously it was represented as `AnyUserData` which is not always convenient.
|
2024-10-01 15:21:19 +01:00 |
|
Alex Orlenko
|
5ebbc0868c
|
More inline const expressions
|
2024-08-29 22:05:28 +01:00 |
|
Sven Niederberger
|
26b9bdb362
|
serde_userdata: Remove map_err to reduce compile time impact (#441)
|
2024-08-21 12:06:49 +01:00 |
|
Sven Niederberger
|
0c08cdaf7c
|
Reduce compile time contribution of next_key_seed and next_value_seed (#436)
* factor out common code
* changelog entry
|
2024-08-06 20:04:17 +01:00 |
|
Alex Orlenko
|
94415065c0
|
Fix Lua String soundness when borrowing &str or &[u8].
Make borrowing using new `BorrowedStr` and `BorrowedBytes` types that holds strong reference to Lua.
|
2024-07-31 13:42:38 +01:00 |
|
Alex Orlenko
|
c715aec1f7
|
Do not consume self in Table::pairs and Table::sequence_values methods.
|
2024-07-31 13:42:38 +01:00 |
|
Alex Orlenko
|
b4892c228c
|
Add rustfmt.toml
|
2024-07-31 13:42:37 +01:00 |
|
Alex Orlenko
|
c1395ab543
|
clippy
|
2024-07-31 13:42:37 +01:00 |
|
Alex Orlenko
|
cd6d86a5ce
|
Split single lua module to multiple submodules under state
|
2024-07-31 13:42:37 +01:00 |
|
Alex Orlenko
|
7221051683
|
Refactor:
- Remove the rest of `'lua` lifetimes
- Remove Owned types
|
2024-07-31 13:42:35 +01:00 |
|
Alex Orlenko
|
59c9abbac7
|
Fix serializing same table multiple times.
Fixes #408
|
2024-05-14 00:42:04 +01:00 |
|
Alex Orlenko
|
ad31bed1db
|
Minor improvements in serializing:
Use `&str` instead of creating Lua string when serializing tuple variant and struct variant
|
2024-04-05 12:44:08 +01:00 |
|
Alex Orlenko
|
fa217d3706
|
Better Luau buffer type support.
- Add `Lua::create_buffer()` function
- Support serializing buffer type as a byte slice
- Support accessing copy of underlying bytes using `BString`
|
2024-03-28 13:05:01 +00:00 |
|
Yiyu Lin
|
b62f2ee0f7
|
chore: make clippy happy (#388)
Co-authored-by: hzlinyiyu <hzlinyiyu@corp.netease.com>
|
2024-03-25 13:26:06 +00:00 |
|
Alex Orlenko
|
39afe4c6f7
|
Add SerializeOptions::detect_serde_json_arbitrary_precision to detect serde_json::Number with arbitrary_precision and convert it to Lua number.
By default the option is disabled and such numbers represented as Lua objects with `$serde_json::private::Number` key.
Fixes #385
|
2024-03-23 11:27:46 +00:00 |
|
Alex Orlenko
|
052310e93d
|
Update doc for deny_unsupported_types option
|
2023-08-12 17:40:39 +01:00 |
|
Alex Orlenko
|
09eb7f251b
|
Support options for Value::serialize() implementation
To match `lua.from_value_with()` functionality.
|
2023-08-12 17:24:57 +01:00 |
|
Alex Orlenko
|
c0c6a33f94
|
Add new option sort_keys to DeserializeOptions (Lua::from_value method)
Closes #303
|
2023-08-07 11:44:52 +01:00 |
|
Alex Orlenko
|
170aa53e29
|
Change Table::raw_len() output type to usize.
|
2023-08-06 22:45:06 +01:00 |
|
Alex Orlenko
|
1c20494158
|
Use usize instead of c_int for table capacity (Lua::create_table_with_capacity)
|
2023-07-09 22:11:26 +01:00 |
|
Alex Orlenko
|
b169031d4e
|
Don't use any metamethods in Table::sequence_values() iterator.
This is matches with `Table::pair()` iterator.
Remove `Table::raw_sequence_values()` iterator.
|
2023-06-26 10:46:59 +01:00 |
|
Alex Orlenko
|
1f0e81c9a1
|
Add a dedicated type for Luau vector.
Refactor existing implementation and add 4-dimensional vectors support.
|
2023-06-20 13:30:42 +01:00 |
|
Alex Orlenko
|
bbd2fe06e1
|
Use DeserializeOwned and remove lifetime from LuaSerdeExt trait
|
2023-05-06 23:07:34 +01:00 |
|
Alex Orlenko
|
d951cb503f
|
Add Value::NULL constant
|
2023-05-06 22:53:40 +01:00 |
|
Alex Orlenko
|
aaf0a5e44a
|
Remove usage of crate::ffi (clippy)
|
2023-04-14 00:36:31 +01:00 |
|
Alex Orlenko
|
ba324b4f54
|
Allow deserializing Lua null into unit(()) or unit struct. See #264
|
2023-04-10 01:49:51 +01:00 |
|
Alex Orlenko
|
781ded573a
|
Seal LuaSerdeExt/TableExt/AnyUserDataExt
|
2023-03-19 02:38:21 +00:00 |
|
Alex Orlenko
|
88da28a68d
|
Allow deserializing values from serializable UserData using Lua::from_value() method.
Closes #240
|
2023-01-06 10:41:17 +00:00 |
|
Alex Orlenko
|
a13c188de3
|
Rename ToLua/ToLuaMulti -> IntoLua/IntoLuaMulti
|
2022-12-19 23:00:47 +00:00 |
|
Alex Orlenko
|
9b4e3a1598
|
Refactor LuaInner state
Add static_assertions to check for auto traits impl on compilation stage
Bump MSRV to 1.63 (required for `Ref::filter_map`)
|
2022-12-19 16:09:05 +00:00 |
|
Alex Orlenko
|
cca177df5b
|
Minor serde optimizations
|
2022-10-23 03:13:24 +01:00 |
|
Alex Orlenko
|
04ba93137c
|
Add Table::to_pointer() and String::to_pointer() functions
|
2022-06-27 14:58:48 +01:00 |
|
Alex Orlenko
|
93d36b9068
|
More performance optimization (userdata part)
|
2022-06-06 21:42:55 +01:00 |
|
Alex Orlenko
|
30ba616a8a
|
Correctly deserialize newtype struct (#168)
|
2022-05-24 23:26:17 +01:00 |
|
Alex Orlenko
|
86f506a170
|
Fix clippy warnings
|
2022-04-14 21:55:36 +01:00 |
|
Alex Orlenko
|
d1c80be033
|
Don't cast *const to *mut (for pointers comparison)
|
2022-04-08 22:52:55 +01:00 |
|
Alex Orlenko
|
ec1fa04085
|
Update docs
|
2022-03-25 00:43:54 +00:00 |
|
Alex Orlenko
|
3a9c8c2da2
|
Add Luau vector datatype support
|
2022-03-22 21:14:06 +00:00 |
|
Alex Orlenko
|
6dc127f4eb
|
Refactor ffi module
Initial Luau support work
|
2022-03-20 20:30:18 +00:00 |
|
Alex Orlenko
|
cfb5d3fd45
|
Fix clippy warnings
|
2021-12-28 12:23:06 +00:00 |
|
Alex Orlenko
|
0741db7565
|
Make (De)SerializeOptions as const
|
2021-11-04 01:07:38 +00:00 |
|
Alex Orlenko
|
a9ca99349c
|
Switch to FxHash
|
2021-10-19 11:45:38 +01:00 |
|
Alex Orlenko
|
ed48b11e7f
|
Update documentation references
Using rustdoc links (see RFC https://github.com/rust-lang/rfcs/pull/1946)
|
2021-10-12 00:49:45 +01:00 |
|
Alex Orlenko
|
c8c64a1b5a
|
Add serializing i128/u128 types.
Fixes #81.
|
2021-10-04 23:20:11 +01:00 |
|