Commit Graph

345 Commits

Author SHA1 Message Date
Sebastian Schmidt
46c839386d (cargo-release) version 6.1.1 2021-06-22 10:27:27 +02:00
Sebastian Schmidt
80c55e92d6 Update changelog. 2021-06-22 10:23:23 +02:00
Sebastian Schmidt
dc9cd98cec Improve syntax of documentation. 2021-06-15 08:38:37 +03:00
ISibboI
d4812ef6e4
Format value with debug formatter in panic. 2021-06-02 19:08:53 +02:00
ISibboI
9e239cb0d8
Use string format panicking syntax.
This will both make it compile, and make it 2021 edition compatible.
2021-06-02 19:07:07 +02:00
ISibboI
f466b5ee2f
Try fixing panic_any import. 2021-06-02 19:03:14 +02:00
Sebastian Schmidt
0a9ef40321 (cargo-release) start next development iteration 6.1.1-alpha.0 2021-06-02 18:34:32 +03:00
Sebastian Schmidt
0b0ffe2492 (cargo-release) version 6.1.0 2021-06-02 18:34:15 +03:00
Sebastian Schmidt
84b5057b8e Fix lint in tests folder. 2021-06-02 18:33:40 +03:00
Sebastian Schmidt
4d231d988a Change format from --all-features to --all. 2021-06-02 18:20:25 +03:00
Sebastian Schmidt
bbf67d24f0 Prepare changelog for 6.1.0. 2021-06-02 18:19:01 +03:00
Sebastian Schmidt
d6886bbc5b Add coveralls badge to readme. 2021-06-02 18:18:42 +03:00
Sebastian Schmidt
6e5b69294b Enable all features in all CIs. 2021-06-02 18:17:05 +03:00
Sebastian Schmidt
c297e2fd6e Fix coverage report. 2021-06-02 18:10:09 +03:00
Sebastian Schmidt
36ee042bd7 Update changelog. 2021-06-02 18:08:32 +03:00
Sebastian Schmidt
9aa025242d Add coverage report. 2021-06-02 18:00:50 +03:00
Sebastian Schmidt
aeb822db9c Move MRSV statement higher up in readme. 2021-06-02 17:51:51 +03:00
Sebastian Schmidt
63b8a43bd6 Update MSRV. 2021-06-02 17:43:37 +03:00
Sebastian Schmidt
27ce5300a7 Fix yaml syntax. 2021-06-02 17:30:43 +03:00
Sebastian Schmidt
00a4dd0eab Add more experimental MSRVs. 2021-06-02 17:30:03 +03:00
Sebastian Schmidt
4cb916f80c Only lint on stable. 2021-06-02 17:29:30 +03:00
Sebastian Schmidt
5544c27e8f Add clippy and rustfmt to CI toolchain. 2021-06-02 17:24:34 +03:00
Sebastian Schmidt
1d96ced45c Format only on nightly. 2021-06-02 17:21:55 +03:00
Sebastian Schmidt
7cfa944efa Add parentheses to job name. 2021-06-02 17:16:59 +03:00
Sebastian Schmidt
efdaa2f1c3 Fix CI fmt command and make more use of test matrix. 2021-06-02 17:15:59 +03:00
Sebastian Schmidt
0e3fbc17d4 Ad MSRV and github CI script. 2021-06-02 17:04:49 +03:00
Sebastian Schmidt
f880482f06 Move predefined module into context module. 2021-06-02 16:50:37 +03:00
ISibboI
1532c65a3d
Merge pull request #80 from olback/math-consts-context
Add math consts context
2021-06-02 16:46:29 +03:00
ISibboI
7d2f2f86c3
Merge pull request #79 from olback/common-math-functions
Add common math functions
2021-06-02 16:43:23 +03:00
Edwin Svensson
a25b347c17
fix tests 2021-05-31 01:15:01 +02:00
Edwin Svensson
9f691206dd
move to new 'predefined' module and add link to f64 docs 2021-05-31 01:13:24 +02:00
Edwin Svensson
10a388aaf3
'namespace' & document math functions 2021-05-31 01:04:33 +02:00
Edwin Svensson
ec880155c7
add math consts context 2021-05-30 11:08:59 +02:00
Edwin Svensson
8491bc61fc
add common math functions 2021-05-30 08:52:28 +02:00
Sebastian Schmidt
1bed7e1f9f (cargo-release) start next development iteration 6.0.1-alpha.0 2021-05-28 15:15:33 +03:00
Sebastian Schmidt
f81e151c05 (cargo-release) version 6.0.0 2021-05-28 15:15:17 +03:00
Sebastian Schmidt
b4974a8a2b Prepare for 6.0.0. 2021-05-28 15:14:52 +03:00
ISibboI
60c86863a6
Merge pull request #78 from ISibboI/isibboi/i76_make_function_clone_send_sync
Isibboi/i76 make function clone send sync
2021-05-28 14:29:46 +03:00
Sebastian Schmidt
77e148fcd4 Ensure that Function implements Send and Sync.
Relates to #76
2021-05-28 14:27:41 +03:00
ISibboI
4b3ae378a8
Merge pull request #75 from ISibboI/isibboi/i73_add_call_function
Change context trait.
2021-05-28 14:20:28 +03:00
Sebastian Schmidt
bee98999db Make Function clone.
To achieve this, the function type wrapped by Function was changed to remove the `Box`.

Relates to #73
2021-05-28 14:12:26 +03:00
Sebastian Schmidt
9fc86a934f Change context trait.
Instead of one catchall trait for contexts, there are now several:

 * `Context` is now a "use-only" context, allowing only to retrieve variable names and call functions.
 * `ContextWithMutableVariables` also allows to mutate variables.
 * `ContextWithMutableFunctions` also allows to mutate functions. However this is not used anywhere at the moment. It will come in handy when the evalexpr language gets a function definition feature.
 * `GetFunctionContext` also allows to retrieve functions as `Function` type. This is uncommented at the moment, as it does not have any use in the crate as of now, and likely also not with planned future features.

 Additionally, this commit makes functions generic over the context type, as opposed to having a dynamic reference to a context type.

Relates to #73
2021-05-28 10:27:32 +03:00
Sebastian Schmidt
fd3063fc64 Reduce unwrap()s.
Relates to #14
2021-05-28 09:40:58 +03:00
Sebastian Schmidt
862bfae920 Add #![forbid(unsafe_code)]
Closes #70
2021-05-28 09:30:26 +03:00
Sebastian Schmidt
5cac04be4d Remove Cargo.lock.
Closes #71
2021-05-28 09:29:03 +03:00
Sebastian Schmidt
2c94089de3 (cargo-release) start next development iteration 5.1.1-alpha.0 2021-05-28 09:27:29 +03:00
Sebastian Schmidt
7e3cbbc715 (cargo-release) version 5.1.0 2021-05-28 09:27:07 +03:00
ISibboI
125bb2d4b1
Merge pull request #74 from ISibboI/isibboi/i72_make_node_cloneable
Isibboi/i72 make node cloneable
2021-05-28 09:14:24 +03:00
Sebastian Schmidt
7bc05e0770 Make node cloneable. 2021-05-28 09:09:04 +03:00
Sebastian Schmidt
6e5ff8615a Fix lints and benches. 2021-05-28 09:07:26 +03:00