WolframResearch / wolfram-library-link-rs

Safe, efficient, and ergonomic bindings to Wolfram LibraryLink and the Wolfram Language
Apache License 2.0
52 stars 5 forks source link

How to raise a message on rust side? #37

Closed oovm closed 2 years ago

oovm commented 2 years ago

For example how to call

Message[f::argx, 1, 2]

I mean, displayed during calculation, not as calculation result

ConnorGray commented 2 years ago

Thank you for raising this issue.

I've added a new piece of 'How To' documentation that covers the general question of how to perform Wolfram evaluations from within Rust LibraryLink code, and specifically answers the question of how to generate a Message[..].

How To: Evaluate Wolfram code from Rust

Please let me know if this information is helpful to you, or if you have any further questions or suggestions.