A Dark Age of Camelot Template Solver built with Dioxus and Clingo.
This project uses clingo as the solver. To bundle clingo into the application, we use a build.rs script that compiles clingo from source and links it to the Rust code.
The libraries are compiled depending on the profile (debug or release). This means
cargo build --features bundle-clingoand
cargo build --release --features bundle-clingowill produce debug and release builds of clingo respectively.
For styling, we use Tailwind CSS. The tailwind.css file contains the Tailwind directives, and we compile it to assets/tailwind.css for use in the application.
To compile tailwind, run
npx tailwindcss -i ./tailwind.css -o ./assets/tailwind.css --watchTo run the app with hot reloading, use
dx serve --hot-reload trueTo run with rust hot patching
dx serve --hotpatch