Dioxus assets in workspace root?

⚓ Rust    📅 2026-06-16    👤 surdeus    👁️ 1      

surdeus

I'm having trouble finding the right documentation for this.

I have the following structure for a workspace

  • crates
    • my_library <-- has tests that depend on fonts
    • my_library_dioxus <-- a dioxus web demo for my library
  • fonts <-- some otfs with their own individual licenses
  • Cargo.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

Read full topic

🏷️ Rust_feed