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

Configure Feed

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

Fix generated `mod` property in erlang application

The generated output was just `{mod, 'my_module'}`. But I'm pretty sure
this needs to include the arguments as well? This PR updates it to
produce: `{mod, {'my_module', []}}`. In my local testing, this worked
as expected.

+4 -2
+3 -1
CHANGELOG.md
··· 4 4 5 5 ### Compiler 6 6 7 - - Fix [RUSTSEC-2021-0145](https://rustsec.org/advisories/RUSTSEC-2021-0145) by 7 + - Fixed [RUSTSEC-2021-0145](https://rustsec.org/advisories/RUSTSEC-2021-0145) by 8 8 using Rust's `std::io::IsTerminal` instead of the `atty` library. 9 + - Fixed the generated `mod` property in the Erlang application file when using 10 + the `application_start_module` property in `gleam.toml` 9 11 10 12 ## v1.1.0 - 2024-04-16 11 13
+1 -1
compiler-core/src/codegen.rs
··· 102 102 .erlang 103 103 .application_start_module 104 104 .as_ref() 105 - .map(|module| tuple("mod", &format!("'{}'", module.replace("/", "@")))) 105 + .map(|module| tuple("mod", &format!("{{'{}', []}}", module.replace("/", "@")))) 106 106 .unwrap_or_default(); 107 107 108 108 let modules = modules