Dioxus assets in workspace root?
⚓ Rust 📅 2026-06-16 👤 surdeus 👁️ 1I'm having trouble finding the right documentation for this.
I have the following structure for a workspace
cratesmy_library<-- has tests that depend on fontsmy_library_dioxus<-- a dioxus web demo for my library
fonts<-- someotfs with their own individual licensesCargo.toml
I'm trying to declare asset!s within my_library_dioxus to include the fonts from the workspace, but assert! (which is anchored on the crate root) doesn't seem to allow references to ../../fonts/*. Is there a way to have it reference the contents of fonts? Or does it require duplicating the fonts/ directory within the my_library_dioxus crate?
1 post - 1 participant
🏷️ Rust_feed