message: Only include /bin, /lib and /include
diff: @@ -156,35 +156,17 @@ fn run_wasi_works() -> anyhow::Result<()> {
  #[cfg(feature = "webc_runner")]
  fn package_directory(in_dir: &PathBuf, out: &PathBuf) {
  - #[cfg(unix)]
  - {
  - let mut o = std::process::Command::new("tar");
  - o.arg("-czvf");
  - o.arg(out);
  - o.arg("-C");
  - o.arg(in_dir);
  - o.arg("lib");
  - o.arg("bin");
  - o.arg("include");
  -
  - println!("tar: {o:?}");
  -
  - let o = o.output().unwrap();
  -
  - assert!(o.status.success());
  - }
  - #[cfg(not(unix))]
  - {
  use flate2::write::GzEncoder;
  use flate2::Compression;
  use std::fs::File;
  let tar = File::create(out).unwrap();
  let enc = GzEncoder::new(tar, Compression::none());
  let mut a = tar::Builder::new(enc);
  - a.append_dir_all("", in_dir).unwrap();
  + a.append_dir_all("bin", in_dir.join("bin")).unwrap();
  + a.append_dir_all("lib", in_dir.join("lib")).unwrap();
  + a.append_dir_all("include", in_dir.join("include")).unwrap();
  a.finish().unwrap();
  }
  -}
  #[allow(dead_code)]
  #[cfg(test)]
  