I'm trying to integrate the bevy asset loader with a third party crate that generalises over file system access, and to do this I need to be able to get the raw bytes of a file (it handles actual processing of data of various kinds, some overlap with the file types bevy will greedily process). I'm aiming to target both web and native platforms, so I can't just bodge it and use "normal" file loading for the file system access without duplicating some of the work the bevy asset system is doing.
What I'm looking for is something that looks like AssetServer::load_with(PathBuf, Fn(Bytes) -> T) -> Result<T, ...>. Best I can find is that this kind of functionality has been removed, but I'd be interested in hearing if there's a workaround or supplanted method of any kind.