-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Describe the bug
Hi, I'm trying to use this package to generate rust files from https://github.com/stellar/js-stellar-base but it crashes while doing so.
The error output is:
thread 'main' panicked at 'unsuccessful parse: Error { variant: ParsingError { positives: [], negatives: [TYPE] }, location: Pos(344), line_col: Pos((10, 57)), path: None, line: "union LiquidityPoolParameters switch (LiquidityPoolType type)␊", continued_line: None }', src/ast/mod.rs:375:10
XDR files are in xdr/ folder of the JS Stellar base repo
Steps to reproduce the behavior:
I used cargo run xdr/Stellar-transaction.x --language rust, I also used other files and xdr/* to select all files but the result is the same.
Expected behavior
I want to generate rust files from stellar-base xdr files.
I'm using:
cargo 1.59.0 (49d8809dc 2022-02-10)
rustc 1.59.0 (9d1b2106e 2022-02-23)
Linux 5.13.0-51-generic #58~20.04.1-Ubuntu Tue Jun 14 11:29:12 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Metadata
Metadata
Assignees
Labels
No labels