Skip to content

chore: Disable the build of TestLogger for WASM32 - #426

Merged
martin-g merged 1 commit into
mainfrom
disable-testlogger-for-wasm32
Jan 23, 2026
Merged

martin-g merged 1 commit into
mainfrom
disable-testlogger-for-wasm32

Conversation

@martin-g

Copy link
Copy Markdown
Member

Until now only the install() function was not compiled for WASM32 and this led to the following warning at build time:

warning: struct `TestLogger` is never constructed
  --> avro_test_helper/src/logger.rs:22:8
   |
22 | struct TestLogger {
   |        ^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: function `test_logger` is never used
  --> avro_test_helper/src/logger.rs:43:4
   |
43 | fn test_logger() -> &'static TestLogger {
   |    ^^^^^^^^^^^

warning: `apache-avro-test-helper` (lib) generated 2 warnings

Until now only the install() function was not compiled for WASM32 and
this led to the following warning at build time:

```
warning: struct `TestLogger` is never constructed
  --> avro_test_helper/src/logger.rs:22:8
   |
22 | struct TestLogger {
   |        ^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: function `test_logger` is never used
  --> avro_test_helper/src/logger.rs:43:4
   |
43 | fn test_logger() -> &'static TestLogger {
   |    ^^^^^^^^^^^

warning: `apache-avro-test-helper` (lib) generated 2 warnings
```
@martin-g martin-g added this to the 0.22.0 milestone Jan 23, 2026
@martin-g
martin-g merged commit 2f5f1e9 into main Jan 23, 2026
@martin-g
martin-g deleted the disable-testlogger-for-wasm32 branch January 23, 2026 11:48
@Kriskras99 Kriskras99 mentioned this pull request Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants