Allow relative assets in rust > 1.88 (#4658)

* Allow relative assets in rust > 1.88 and assets outside of the crate in
binary crates

* undo changes to assets outside of the crate

* don't use relative assets in examples
This commit is contained in:
Evan Almloff authored and GitHub committed 2025-09-15 10:43:30 -07:00
1 parent 707bde2986
commit 5104644b34
10 files changed
+28 -14

No files matched your search

@@ -45,7 +45,7 @@ impl Parse for AssetParser {
fn parse(input: ParseStream) -> syn::Result<Self> {
// And then parse the options
let (MacroString(src), path_expr) = input.call(crate::parse_with_tokens)?;
let asset = resolve_path(&src);
let asset = resolve_path(&src, path_expr.span());
let _comma = input.parse::<Token![,]>();
let options = input.parse()?;