Commit graph

191 commits

Author SHA1 Message Date
6eeb0f70b9 fix: cargo warnings 2022-10-03 00:37:26 +02:00
749be29936 added date validation 2022-08-13 18:07:09 +02:00
333283c377 fix more date formats, now passes all tests 2022-08-13 15:02:04 +02:00
ad17c000b6 fix y2k issue 2022-08-13 10:11:06 +02:00
f52e54d69c 2 small fixes 2022-08-13 01:39:24 +02:00
f13cc55ce2 added better date parser 2022-08-13 01:05:39 +02:00
Christoph Herzog
941b3610e7
build: Valgrind: Show error list 2021-08-10 01:08:26 +02:00
Christoph Herzog
ac1c41f5e6
build: Don't deny warnings for now 2021-08-09 19:38:36 +02:00
Christoph Herzog
0dc8675409
build: Test all features with valgrind 2021-08-09 15:51:43 +02:00
Christoph Herzog
070f20ae17
Prepare -sy 0.10 release 2021-08-09 15:49:37 +02:00
Christoph Herzog
a158099b25
fix: Remove unused imports 2021-08-09 15:49:37 +02:00
Christoph Herzog
956cce9e76
build: just valgrind improvements
* Add --gen-suppressions to output surpression codes
* Make sure to cargo clean before running to always run the correct
  executable.
2021-08-09 15:49:34 +02:00
Christoph Herzog
fb569edd84 Update quickjs to 2021-03-27 2021-06-08 21:24:47 +00:00
Christoph Herzog
4a4c2ff04f docs: Update Windows info in crate docs 2021-06-08 21:24:47 +00:00
Christoph Herzog
9980a14770 Preparations for making bytecode compilation public 2021-06-08 21:24:47 +00:00
Christoph Herzog
8ed314de5f Remove dead code, make JsCompiledFunction public 2021-06-08 21:24:47 +00:00
Christoph Herzog
ad8d27e463 Move DroppableValue to bindings
Since it is only used for bindings, it's better located there.
2021-06-08 21:24:47 +00:00
Christoph Herzog
7c675ebb70 Enable chrono feature by default
DafeTime is used a lot, so having it on by default is a better
experience.
2021-06-08 21:24:47 +00:00
Christoph Herzog
f32bb7165a Initial Bindings Refactor
This commit cleans up the bindings code and makes it a little more
structured and coherent.

It also removes sum direct usage of C code, or uses newly exported C
functions where appropriate.

The future goal of these changes is to export more functionality to
users and make the Owned* wrappers public.

* Manually export some additional helpers via static-helpers.c
* Rename Owned* types and move them to a subdirectory
* Add more convenience methods on Owned* types
* Add additional Owned wrappers for functions, bytecode, modules
* Move compile utils to bindings
* Move serializiation to subfile

TODO: The serialization code is also in need of a cleanup.
2021-06-08 21:24:47 +00:00
Andries Hiemstra
05f39f3db6 Implement bytecode compilation. 2021-06-08 21:24:47 +00:00
Christoph Herzog
e6e6fd66d9 Prevent double free on set_property failure 2021-03-25 09:51:17 +00:00
Christoph Herzog
5db7b834eb Allow JsValue arguments in add_callback + dead code cleanup 2021-03-25 09:51:17 +00:00
Christoph Herzog
7fb91e24c4
Fix Cargo.toml... 2021-03-25 09:54:08 +01:00
Christoph Herzog
d04bc9a88e
Changelog for 0.4.1 2021-03-15 15:13:56 +01:00
Christoph Herzog
0f9865358c
(cargo-release) version 0.4.1 2021-03-15 15:13:48 +01:00
Christoph Herzog
58a148a6a8
(cargo-release) start next development iteration 0.4.2-alpha.0 2021-03-15 15:13:22 +01:00
Christoph Herzog
e759be05f7 Fix set_global() use after free. 2021-03-15 14:06:58 +00:00
theduke
05998ab82f
Merge pull request #100 from theduke/jsvalue-tryfrom-vec
Implement TryFrom<JsValue> for Vec<T>
2021-02-18 08:58:52 +00:00
Christoph Herzog
5daf2b2527 Implement TryFrom<JsValue> for Vec<T> 2021-02-18 09:20:54 +01:00
Christoph Herzog
6aa7cba728 (cargo-release) start next development iteration 0.4.1-alpha.0 2021-02-04 22:01:35 +01:00
Christoph Herzog
92e68b9145 Bump bindgen/cc versions 2021-02-04 22:00:54 +01:00
Christoph Herzog
7b8412d11c Bump versions (0.4.0) 2021-02-04 21:57:03 +01:00
Christoph Herzog
de0bb12b8f Ignore .vscode 2021-02-04 21:52:25 +01:00
Christoph Herzog
4cc491c257 Prepare for new releases 2021-02-04 21:52:25 +01:00
Christoph Herzog
7182a89f38 add Context::set_global 2021-02-04 21:52:25 +01:00
Christoph Herzog
9fa5f9798a Stop canonicalizing paths in build.rs.
Fixes windows builds.
2021-02-04 21:52:25 +01:00
Cheng XU
4080a6f5b0 fix github action 2021-02-04 21:52:25 +01:00
Christoph Herzog
ff3c3521be Move tests to dedicated file 2021-02-04 21:13:34 +01:00
Christoph Herzog
d9807329af Re-enable valgrind on CI 2021-02-04 20:49:17 +01:00
Christoph Herzog
2e37802653 Fix docs warnings 2021-02-04 20:49:01 +01:00
Christoph Herzog
03998e454c Fix up static wrapper logic
Compile with proper flags.

Also: do not generate for system builds.
2021-02-04 20:36:50 +01:00
Christoph Herzog
66210df6d6 Fix just valgrind command 2021-02-04 20:23:19 +01:00
Christoph Herzog
aca955fe3d Handle int values in Date deserialization 2021-02-04 20:05:40 +01:00
Christoph Herzog
eb28ee5826 Re-generate bindings 2021-02-04 20:05:18 +01:00
Christoph Herzog
c3e33951f5 Fix quickjs update instructions 2021-02-04 19:13:30 +01:00
Andries Hiemstra
bede50f636 updated quickjs to 2020-11-08 2020-11-26 15:40:15 +01:00
Andries Hiemstra
d93ef40eb4 added most static inline functions and moved to new file 2020-11-26 10:16:45 +01:00
Ivan Pavluk
0c3eff9024 cargo fmt 2020-11-26 10:16:13 +01:00
Ivan Pavluk
f9eb75785c Add JsValue::Undefined 2020-11-26 10:16:13 +01:00
Ivan Pavluk
93d0a2214a Hide possible build warnings on C side 2020-11-26 10:16:13 +01:00