WASIX Preparation

This commit extracts changes to core libraries made in the WASIX branch.

It is not reasonable to extract the partial commit history, so this is
just a batch commit.

The history will make a bit more sense again if we decide to merge the
WASIX branch with full commit history.
This commit is contained in:
Christoph Herzog
2022-12-15 12:14:21 +01:00
parent 47200450b3
commit 5109a407c4
81 changed files with 2008 additions and 500 deletions

View File

@@ -109,7 +109,7 @@ pub struct RemoveTestsOnDrop {}
impl Drop for RemoveTestsOnDrop {
fn drop(&mut self) {
let manifest_dir = env!("CARGO_MANIFEST_DIR");
for entry in std::fs::read_dir(&manifest_dir).unwrap() {
for entry in std::fs::read_dir(manifest_dir).unwrap() {
let entry = entry.unwrap();
let path = entry.path();
let extension = path.extension().and_then(|s| s.to_str());
@@ -119,7 +119,7 @@ impl Drop for RemoveTestsOnDrop {
}
}
if let Some(parent) = std::path::Path::new(&manifest_dir).parent() {
for entry in std::fs::read_dir(&parent).unwrap() {
for entry in std::fs::read_dir(parent).unwrap() {
let entry = entry.unwrap();
let path = entry.path();
let extension = path.extension().and_then(|s| s.to_str());