Commit Graph

235 Commits

Author SHA1 Message Date
Stephen Chung
6ebe002b18 Check for missing docs. 2022-06-05 18:17:44 +08:00
Geoffroy Couprie
f2b5566c0b use smartstring's deserializer to support non borrowed strings
The map visitor for Dynamic was expecting a &str for the key, but the
serde_json deserializer internally uses a Cow string, which can be
Borrowed or Owned. In the case of Owned, the serde_json key deserializer
is calling visit_string on the Visitor, which for &str will result in
the error:
Error("invalid type: string \"a\", expected a borrowed string", line: 0,
column: 0)

smartstring actually has its own Visitor implementation that handles
both cases, so we can use it instead of an explicit conversion.
2022-05-23 16:40:49 +02:00
Stephen Chung
c5015d5e86 Bump version. 2022-04-11 16:53:44 +08:00
Stephen Chung
06608affc5 Fix rustyline patch. 2022-04-11 16:32:23 +08:00
Stephen Chung
5d00ab85ee Move rustyline patch to [patch] section. 2022-03-30 12:08:30 +08:00
Stephen Chung
22081850a9 Bump version. 2022-03-30 08:09:41 +08:00
Stephen Chung
c646b3efa2 Update codegen version. 2022-03-30 08:09:06 +08:00
Stephen Chung
8205547d8a Use bitflags. 2022-02-25 11:42:59 +08:00
Stephen Chung
f091033f78 Bump smartstring to 1.0. 2022-02-25 08:24:22 +08:00
Stephen Chung
7263896776 Bump minimum compiler version. 2022-02-24 08:54:37 +08:00
Stephen Chung
cdc8005146 Bump version. 2022-02-15 11:38:35 +08:00
Stephen Chung
b37c87c888 Custom rustyline. 2022-02-09 08:25:02 +08:00
Stephen Chung
5e7db6e105 Use new version of rustyline. 2022-02-08 22:16:12 +08:00
Stephen Chung
f8cee0fe4e Simplify using .. 2022-02-08 09:02:15 +08:00
Stephen Chung
419ee45043 Add bin-features to pull in all features for bin tools. 2022-02-03 21:17:47 +08:00
Stephen Chung
0378c822e1 Use required-features for bin tools. 2022-01-30 09:41:51 +08:00
Stephen Chung
2cfd426aaf Merge branch 'rustyline' of https://github.com/rhaiscript/rhai 2022-01-29 15:59:24 +08:00
Jonathan Strong
16f13960f4 poc: adds rustyline to rhai-repl 2022-01-28 20:29:25 -05:00
Stephen Chung
fc87dec128 Add debugging interface. 2022-01-27 16:58:11 +08:00
Stephen Chung
69dab31617 Remove need for default features in dependencies. 2022-01-27 08:22:20 +08:00
Stephen Chung
922931f51d Bump version. 2022-01-23 21:49:46 +08:00
Stephen Chung
4d3055fbcd Reset version. 2022-01-23 21:39:56 +08:00
Stephen Chung
37dbc68bf5 Use target_family for wasm. 2022-01-12 08:12:28 +08:00
Stephen Chung
6048c5804b Bump version. 2022-01-11 12:05:01 +08:00
Stephen Chung
7251f34bce Bump version. 2021-12-12 18:10:09 +08:00
Stephen Chung
41dd989866 Support deserialization into byte arrays for BLOB's via serde_bytes. 2021-12-02 14:10:53 +08:00
Stephen Chung
d56585c877 Remove no_smartstring feature. 2021-11-27 14:24:36 +08:00
Stephen Chung
abe6b4a29b Use more const functions. 2021-11-27 14:24:06 +08:00
Stephen Chung
280b5b405e Make some new functions const. 2021-11-25 17:09:00 +08:00
Stephen Chung
061cb17874 Bump version. 2021-11-19 15:07:56 +08:00
Stephen Chung
35ab5481b5 Update codegen dependency. 2021-11-19 14:17:38 +08:00
Stephen Chung
6177a291e2 Bump version. 2021-10-11 17:57:11 +08:00
Stephen Chung
504e695956 Turn on smartstring/serde with metadata. 2021-09-28 19:19:17 +08:00
Stephen Chung
5163fb0a33 Upgrade to rust-decimal 1.16 and add sin/cos/tan. 2021-09-15 10:41:35 +08:00
Stephen Chung
bdbfa8ef5f Catch mutually exclusive features. 2021-09-12 21:06:13 +08:00
Stephen Chung
4c658bc932 Bump version to 1.1.0. 2021-08-17 15:51:13 +08:00
Stephen Chung
288d575046 Add log10 for Decimal. 2021-08-17 15:50:56 +08:00
Stephen Chung
0481073ed9 Bump version. 2021-08-17 15:43:02 +08:00
Stephen Chung
d0f6a2283f Bump version. 2021-08-17 15:41:46 +08:00
Stephen Chung
805163912d Bump version. 2021-08-06 15:30:47 +08:00
Stephen Chung
39f4baf769 Bump Instant version to 0.1.10 to avoid erros when compiling with emscripten. 2021-07-30 17:36:32 +08:00
Stephen Chung
fe6691752b Use smartstring 0.2.7 for no-std. 2021-07-12 12:11:53 +08:00
Stephen Chung
75a8a4d4e3 Enable json command in REPL. 2021-07-08 14:09:31 +08:00
Stephen Chung
ae1f859225 Bump codegen version requirement. 2021-07-08 12:07:30 +08:00
Stephen Chung
68270e9b61 Revert no-std profile changes and fix README. 2021-07-04 17:09:50 +08:00
Stephen Chung
f3541bae19 Update SmartString to work for no-std. 2021-07-01 18:44:01 +08:00
Stephen Chung
83297ffa00 Bump version to 1.0. 2021-06-24 11:50:03 +08:00
Stephen Chung
ba0cf80314 Prepare for 0.20.3 release. 2021-06-22 22:32:50 +08:00
Stephen Chung
07d25b4fb6 Update rust_decimal. 2021-06-11 15:12:01 +08:00
Stephen Chung
2a0ab4739f Rename default_features to default-features. 2021-06-11 12:29:03 +08:00