Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

Fix binary files

+9
+7
compiler-core/src/io/memory.rs
··· 385 385 let contents = Rc::try_unwrap(buffer) 386 386 .expect("InMemoryFile::into_content called with multiple references") 387 387 .into_inner(); 388 + 389 + // All null bytes are usually from when a binary file is empty, and 390 + // aren't particularly useful as text, so we treat them as binary. 391 + if contents.iter().all(|byte| *byte == 0) { 392 + return Some(Content::Binary(contents)); 393 + } 394 + 388 395 match String::from_utf8(contents) { 389 396 Ok(s) => Some(Content::Text(s)), 390 397 Err(e) => Some(Content::Binary(e.into_bytes())),
+2
test-helpers-rs/src/lib.rs
··· 35 35 buffer.push('\n'); 36 36 37 37 let extension = path.extension(); 38 + dbg!(extension, &content); 39 + 38 40 match content { 39 41 _ if extension == Some("cache") => buffer.push_str("<.cache binary>"), 40 42 Content::Binary(data) => write!(buffer, "<{} byte binary>", data.len()).unwrap(),
test-package-compiler/src/snapshots/test_package_compiler__generated_tests__erlang_app_generation.snap

This is a binary file and will not be displayed.

test-package-compiler/src/snapshots/test_package_compiler__generated_tests__erlang_empty.snap

This is a binary file and will not be displayed.

test-package-compiler/src/snapshots/test_package_compiler__generated_tests__javascript_d_ts.snap

This is a binary file and will not be displayed.

test-package-compiler/src/snapshots/test_package_compiler__generated_tests__javascript_empty.snap

This is a binary file and will not be displayed.

test-package-compiler/src/snapshots/test_package_compiler__generated_tests__javascript_import.snap

This is a binary file and will not be displayed.

test-package-compiler/src/snapshots/test_package_compiler__generated_tests__not_overwriting_erlang_module.snap

This is a binary file and will not be displayed.