0.17.0
- Propagate
Scripting::execute
errors to user
0.15.0
- Remove
Message
from public API
0.14.0
- Improve DynamicLib scripts API
0.13.0
- Improve DynamicLib scripts API
0.12.0
- Rework DynamicLib to use the C abi (in order to make it safe to use)
0.11.0
- Add Dynamic library scripts option (unsafe)
0.10.0
- Removed [Scripter::script_static_assert] , [Scripter::write] now does the compile time check instead (by changing its signature)
0.9.0
-
Added a new public method to [scripting::Scripter] [Scripter::script_static_assert] which is useful to check at compile time if the script output matches the hook's expected output
-
[Hook::Output] now requires serde::Serialize
0.8.0
- Use semver crate [Version] instead of a custom type, this allows among other benefits to specify different comparators for version requirement (>= > ==, etc..)
0.7.0
- Add versioning to the scripts, this is important in order to prevent incompatibilities which gives subtle undefined errors
- [scripting::Scripter] now requires the user to implement [Scripter::version]
- [add_scripts_by_path] now takes a second argument [Version] and returns [rscript::Error] instead of [bincode::Error]
- Add a new error [ScriptVersionMisMatch]
0.6.0
- Add 2 new functions to the public API, [Scripter::read] [Scripter::write], these functions are convenient methods to read hooks from stdin and write a value to stdout respectively
- Trait Hook now requires [serde::de::DeserializeOwned]
- Add an example of using Rscript
0.5.0
- Remove [scripting::Scripter::greet] from the public API, the user is now only required to use [scripting::Scripter::execute] which will handle the greeting.
- Improve the documentation
0.4.0
- Fix oneshot script crashing in scripting::greet
0.3.0 Add 2 new public API methods:
Script::is_listening_for
-> check if a script is listening for a hookScript::trigger
-> triggers a script regardless of its state (active/inactive) if the script is not listening for the specified hook an error will be returned
0.2.0
- Add
scripting
module, this module provides utilities that improves writing scripts experience - Derive
Copy/Clone
onScriptType
0.1.0
- Initial release