Stephen Chung
54db9a2819
Bump version.
2022-07-01 12:30:20 +08:00
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
Stephen Chung
a1950a9562
Bump versions.
2021-06-10 19:09:27 +08:00
Stephen Chung
5f36f1a28c
Remove PluginFunction::is_variadic.
2021-05-29 18:32:34 +08:00
Stephen Chung
b5ed841ee7
Bump version.
2021-05-27 13:39:48 +08:00
Stephen Chung
58d6a88bc4
Use checked exp for decimal.
2021-05-24 12:12:29 +08:00
Stephen Chung
be052b2b26
Bump version of rust_decimal and add more functions.
2021-05-11 20:31:31 +08:00
Stephen Chung
d230f448c0
Add no_smartstring to disable using SmartString.
2021-05-08 22:59:33 +08:00
Stephen Chung
9fabca5937
Bump version.
2021-05-02 20:36:59 +08:00
Stephen Chung
1fbbb2a40d
Fix doc test.
2021-04-22 23:09:10 +08:00
Stephen Chung
a54fbb32ff
Add no_position feature.
2021-04-22 23:02:25 +08:00
Stephen Chung
1145c5a4c0
Update rust_decimal.
2021-04-18 21:35:55 +08:00
Stephen Chung
01f0cc028b
Use no-std-compat to build no-std.
2021-04-17 15:15:54 +08:00
Stephen Chung
6eaee57578
Bump version.
2021-04-16 22:07:18 +08:00
Stephen Chung
e31506fe51
Bump version.
2021-04-16 21:59:11 +08:00
Stephen Chung
294d233c02
Bump version.
2021-03-31 17:01:08 +08:00
Stephen Chung
6eb6e07d57
Remove metadata from codegen dependency.
2021-03-30 22:30:02 +08:00
Stephen Chung
ec7b906f71
Patah smartstring for no-std.
2021-03-30 18:06:58 +08:00
Stephen Chung
41b48d591f
Change to no_smartstring feature.
2021-03-29 17:13:54 +08:00
Stephen Chung
07efdddba3
Add smartstring default feature.
2021-03-29 13:40:33 +08:00
Stephen Chung
e5249cc1ae
Extract Identifier type.
2021-03-29 11:36:02 +08:00
Stephen Chung
c443c3bb48
Gate codegen metadata output under metadata feature.
2021-03-26 10:59:34 +08:00
Stephen Chung
ac7f35cacb
Move all functions metadata into metadata feature.
2021-03-24 19:27:38 +08:00
Stephen Chung
f70225ca1d
Change HashMap to BTreeMap.
2021-03-23 12:13:53 +08:00
Stephen Chung
75b8bf73df
Update dependencies.
2021-03-21 23:51:24 +08:00
Stephen Chung
aa0594210c
Use RhaiResult for plugin return.
2021-03-19 10:30:30 +08:00
Stephen Chung
2f8a3c24c0
Bump version.
2021-03-14 22:56:06 +08:00
Stephen Chung
4e5d009386
Inline scope entries.
2021-03-12 13:26:47 +08:00
Stephen Chung
01664ef7ee
Fix range overflow panics.
2021-03-04 23:47:52 +08:00
Stephen Chung
bca4344d72
Bump version.
2021-02-27 12:52:20 +08:00
Stephen Chung
4120e3c88e
Include decimal in generated docs.
2021-02-21 14:26:31 +08:00
Stephen Chung
182fc2c3d1
Check for constant values passed to methods.
2021-02-19 23:13:53 +08:00
Stephen Chung
724ad05916
Add wasm64 as potential target.
2021-02-19 15:50:48 +08:00
Stephen Chung
c7b556b741
Bump version.
2021-02-17 16:53:35 +08:00
Stephen Chung
3650b04c38
Add Decimal number type.
2021-02-13 20:57:56 +08:00
Stephen Chung
24ed5ef99a
Bump version.
2021-02-03 19:23:50 +08:00
Stephen Chung
f1c2562873
Fix keyword typo.
2021-02-03 19:22:35 +08:00
Stephen Chung
7fc38d4cd2
Change rhaiscript.github.io to rhai.rs
2021-01-30 07:19:54 +08:00
Stephen Chung
c245fe88fd
Allow stacking ! operators.
2021-01-24 21:21:15 +08:00
Stephen Chung
9acf7b4774
Bump ahash to 0.6.
2021-01-19 14:23:05 +08:00
Stephen Chung
aef18b5473
Add wasm-bindgen and stdweb features.
2021-01-18 11:35:55 +08:00
Stephen Chung
ec272cf9b9
Add Serialize/Deserialize for Dynamic and ImmutableString.
2021-01-18 10:30:58 +08:00
Stephen Chung
def1e7fe14
Use smallvec/union and update ahash.
2021-01-16 11:26:44 +08:00
Stephen Chung
c4b6c31bf0
Use ahash as default hasher.
2021-01-15 23:52:56 +08:00
Stephen Chung
1c7884f0d8
Switch to fxhash for fast hashing.
2021-01-15 23:30:45 +08:00
Stephen Chung
75bb5ef650
Bump version.
2021-01-15 17:13:24 +08:00
Stephen Chung
3f44e2893c
Wrap up 0.19.10.
2021-01-14 19:07:03 +08:00
Stephen Chung
96b1e7777b
Update URL links.
2021-01-07 17:30:06 +08:00
Stephen Chung
8bb8df08ac
Bump version.
2020-12-30 21:13:31 +08:00
Stephen Chung
fd07a4b4e0
Bump version.
2020-12-22 16:27:51 +08:00
Stephen Chung
22039b24b3
Add export to JSON.
2020-12-20 12:27:47 +08:00