You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for asking "noob" questions - they identify where I should improve the documentation!
To build:
It'll be automatically built when you do a cargo run, but to just build it:
cargo build
You might want to do a release build, in which case
cargo build --release
but to be honest there's not much speed difference compared to the debug version.
The executable will then be at target/debug/galette or target/release/galette, as appropriate.
To run:
As you wrote, cargo run ./example.pld works. You can also run it directly with ./target/debug/galette ./example.pld.
To run the release version, you can use cargo run --release -- ./example.pld or ./target/release/galette ./example.pld.
If you want to use the --help flag, try cargo run -- --help or ./target/debug/galette --help. The -- is needed when doing cargo run, because cargo itself takes flags, and the -- tells it "From here on out, pass the flags to the thing we're running (galette). Cargo shouldn't try to interpret them."
Next steps:
I hope this is helpful to you. Much of it is standard "How to build and run Rust programs", but if you're not used to Rust and just want to get your PLD working, I imagine this is frustrating!
If it's ok with you, please keep the issue open until README.md is better, containing the information you need.
Hi,
sorry for asking a very noob question:
how do i compile galette? Or get somehing like "galette --help" to run?
Can you give me a hint on where to start looking?
This works for me:
$ cp testcases/success/GAL16V8_combinatorial.pld ./example.pld
$ cargo run ./example.pld
Kind Regards
Bernd
The text was updated successfully, but these errors were encountered: