I'm no C++ or Rust guru, but as far as I know C++ bindings are far harder
to generate than simple C ones. One advantage you do have is that Rust uses
LLVM, so maybe you'll have luck using a Clang stack to build a shared
Ledger library with sensible bindings? The Graal project on the JVM also
has some interesting pieces for polyglot LLVM bytecode interpretation.

On Sun, Apr 29, 2018, 08:45 <[email protected]> wrote:

> I am trying to create a rust GTK ledger desktop app. I love ledger
> simplicity and flexibility, and the fact that everything is stored in a
> simple, readable text file. But I want to keep some reports and operations
> handy, and I think a GTK desktop app will be perfect for that.
>
> I want to practise with Rust so I think this is a good opportunity for me.
> The GTK rust app is progressing, but I haven't been successful on calling
> ledger-cli from rust, since I want to use the original ledger-cli project
> for maximum compatibility. People working with rust told me it would be
> very difficult to create good bindings with a C++ app, and the only
> alternative I have then is to embed the compiled ledger binary and call it
> directly, but I wouldn't like to do that.
>
> Is there any good ledger-cli port to Rust? Or some good ledger-cli
> bindings for Rust? I haven't been able to find any of those.
>
> Any advice on how to achieve this? Thanks a lot.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to