Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fee1-dead/wikifunctions
https://github.com/fee1-dead/wikifunctions
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fee1-dead/wikifunctions
- Owner: fee1-dead
- License: apache-2.0
- Created: 2023-07-28T10:12:12.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-01T17:37:13.000Z (over 1 year ago)
- Last Synced: 2024-11-09T02:12:35.990Z (about 2 months ago)
- Language: Rust
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# wikifunctions
this is a project for dealing with wikifunctions objects in JSON.
This project is dual-licensed under MIT and Apache 2.0.
# Rust function evaluator
the function evaluator is currently a demo, with plans to be incorporated to the
main project. The evaluator currently uses libloading to compile and load functions
dynamically.Contributions are welcomed!
## How to run
Make sure you have the latest stable Rust toolchain installed on the system.
The runtime library is required for compiling the evaluated function, so compile it using this command:
```
cargo build -p wfrt
```Then, from the workspace root, you can run the evaluator using the following command:
```
cargo run -p wf-evaluator
```When you run the evaluator, it doesn't print anything. This is because it needs to be supplied with
input. As a starting point, you can copy-paste `test-data/evaluator_input.json` into its standard
input to see the output. (serialzing output as wikifunction JSON currently unimplemented)## evaluator functionality checklist
* [x] parse json input
* [x] compile and execute functions
* [ ] deserialization
* [x] Deserializing strings
* [ ] Deserializing booleans
* [ ] Deserializing lists/maps/pairs
* [ ] serializing return values
* [ ] compile to WASM instead of native object format?