Replies: 3 comments 1 reply
-
Hello @v3xro I'm glad to see more integration and development of KCL Rust. I think these improvements are very helpful. 👍 Feel free to raise more issues or PRs, and we can further make more changes. ❤️ |
Beta Was this translation helpful? Give feedback.
0 replies
-
Do you have a good example of how to register a plugin in Rust? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've opened a PR and give the initial impl and example: #1599 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to use KCL as the configuration language for my application written in Rust. I think the following features would be nice to have:
Deserialize
support fromValueRef
-> native rust struct/enum (I have a prototype version that I might share once it's better tested)fn my_plugin_function(a: String, b: i64) -> Option<String>
that then converts this toextern "C" my_plugin_function(ctx: *mut kclvm_context_t, ...)
Happy to expand on all of these - am currently trying to integrate KCL in such a way and doubtless these ideas will evolve and I will have some working code to demonstrate how to do this currently.
Beta Was this translation helpful? Give feedback.
All reactions