bynk.package.unsupported_in_dependency
Error A dependency declares an asset or an embed, which would resolve against the consuming project's assets/ or embeds/; a per-package namespace for either isn't designed yet.
A dependency may not declare an asset or an embed, because the path would be resolved against the project that consumes it, whose assets/ or embeds/ folder is not the package's. Move the file into your own project, and have the package take its content as an argument.
Example
commons board // in the package `acme/lib`
asset style = "assets/board.css" // ✗ a dependency cannot declare onefn sheet() -> String { style.url }
commons board
fn sheet(url: String) -> String { url } // ✓ the project supplies the URLIn the Book
See also
- Every code in its category, Packages, on the diagnostic index.
bynk explain bynk.package.unsupported_in_dependencyshows the same from the installed toolchain, without a network.