Commit Graph

306 Commits

Author SHA1 Message Date
Sebastian Schmidt
77e148fcd4 Ensure that Function implements Send and Sync.
Relates to #76
2021-05-28 14:27:41 +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
Sebastian Schmidt
1316ae63d0 Update code formatting. 2021-05-28 08:56:21 +03:00
Sebastian Schmidt
ca164dc954 Add cov files to .gitignore 2019-09-13 17:53:04 +02:00
Sebastian Schmidt
f45d871f16 (cargo-release) start next development iteration 5.0.5 2019-09-13 17:46:42 +02:00
Sebastian Schmidt
fe900db734 (cargo-release) version 5.0.5 2019-09-13 17:46:26 +02:00
Sebastian Schmidt
d0bc7b562b (cargo-release) version 5.0.5-alpha.4 2019-09-13 17:38:18 +02:00
Sebastian Schmidt
8cb38e0433 Move maintenance badge to top 2019-09-13 17:38:15 +02:00
Sebastian Schmidt
c6fd19b252 (cargo-release) version 5.0.5-alpha.3 2019-09-13 17:37:14 +02:00
Sebastian Schmidt
36075e9822 Update changelog 2019-09-13 17:37:10 +02:00
Sebastian Schmidt
0a55494ec5 Fix maintenance status 2019-09-13 17:36:52 +02:00
Sebastian Schmidt
7297e90fa0 (cargo-release) version 5.0.5-alpha.2 2019-09-13 17:36:06 +02:00
Sebastian Schmidt
0e87820922 Fix typo 2019-09-13 17:36:02 +02:00
Sebastian Schmidt
560e1f7594 (cargo-release) version 5.0.5-alpha.1 2019-09-13 17:35:08 +02:00
Sebastian Schmidt
054dea4a61 Update changelog 2019-09-13 17:35:01 +02:00
Sebastian Schmidt
519be9620e Fix is-it-maintained badges 2019-09-13 17:33:21 +02:00
Sebastian Schmidt
f1f6289459 (cargo-release) start next development iteration 5.0.4 2019-09-13 17:31:22 +02:00
Sebastian Schmidt
43e6aa71f7 (cargo-release) version 5.0.4 2019-09-13 17:26:24 +02:00
Sebastian Schmidt
976c3e144e Add is-it-maintained badges 2019-09-13 17:25:37 +02:00
Sebastian Schmidt
0c659b5781 Add maintenance badge 2019-09-13 17:24:08 +02:00
Sebastian Schmidt
f38bf20cca Fix contributor name in changelog 2019-08-30 12:53:53 +03:00
Sebastian Schmidt
126896f113 (cargo-release) start next development iteration 5.0.3 2019-08-30 12:51:54 +03:00
Sebastian Schmidt
9b87517b86 (cargo-release) version 5.0.3 2019-08-30 12:51:48 +03:00
Sebastian Schmidt
c37a321666 Update changelog 2019-08-30 12:51:20 +03:00
Sebastian Schmidt
43e0256550 Fix != was wrongfully parsed as Token::Eq
Fixes #68
2019-08-30 12:48:00 +03:00
Sebastian Schmidt
782f233d7d Add more string comparison tests
Relates to #68
2019-08-30 12:43:10 +03:00
Sebastian Schmidt
15786378bc (cargo-release) start next development iteration 5.0.2 2019-08-30 10:58:35 +03:00
Sebastian Schmidt
954cb63af0 (cargo-release) version 5.0.2 2019-08-30 10:58:29 +03:00
Sebastian Schmidt
4a8f1d734e Stop listing separate dev-dependencies for target.bench 2019-08-30 10:58:21 +03:00
Sebastian Schmidt
b086d27be4 (cargo-release) start next development iteration 5.0.1 2019-08-30 10:54:44 +03:00
Sebastian Schmidt
1664c79e11 (cargo-release) version 5.0.1 2019-08-30 10:54:33 +03:00
Sebastian Schmidt
c64ecbdc25 Update changelog 2019-08-30 10:50:45 +03:00
Sebastian Schmidt
b4fe0b0c0f Make benchmark dependencies dev-dependencies 2019-08-30 10:47:56 +03:00
Sebastian Schmidt
112e724d9c (cargo-release) start next development iteration 5.0.0 2019-08-30 10:45:33 +03:00
Sebastian Schmidt
a6e5c5088b (cargo-release) version 5.0.0 2019-08-30 10:45:27 +03:00
Sebastian Schmidt
b656b2a970 Update changelog 2019-08-30 10:33:42 +03:00
Sebastian Schmidt
6b03981fe3 (cargo-release) version 5.0.0-rc.2 2019-08-30 10:27:01 +03:00
Sebastian Schmidt
81496539d0 Update changelog 2019-08-30 10:26:37 +03:00
Sebastian Schmidt
6163972382 Reformat code examples to reduce horizontal scrolling 2019-08-30 10:07:48 +03:00
Sebastian Schmidt
b8d7344cc5 Improve documentation 2019-08-30 10:03:31 +03:00
Sebastian Schmidt
4571f3a578 Update aggregation operator documentation
Relates to #44
2019-08-30 09:16:43 +03:00