message: Read CARGO_MANIFEST_DIR at runtime instead of compile-time
diff: @@ -155,11 +155,13 @@ impl Filesystem {
  // Cargo manifest dir!
  #[cfg(feature = "cargo-resource-root")]
  {
  - let mut path = path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));
  + if let Ok(manifest_dir) = env::var("CARGO_MANIFEST_DIR") {
  + let mut path = path::PathBuf::from(manifest_dir);
  path.push("resources");
  let physfs = vfs::PhysicalFS::new(&path, false);
  overlay.push_back(Box::new(physfs));
  }
  + }
  let fs = Filesystem {
  vfs: overlay,
  