How to disable dead code warnings at the crate level in Rust?
Hi everyone! I'm new to Rust and working on my first small project. I have a library crate where I've defined several helper functions and structs. The problem is that many of them are not yet used in the main code — I've just started development and am writing functionality gradually.
The Rust compiler constantly gives warnings like: `warning: function is never used: 'helper_func'`. For example:
```rust
// lib.rs
pub fn helper_func(x: i32) -> i32 {
x * 2
}
fn internal_helper(x: i32) -> i32 {
x + 1
}
pub struct Config {
pub timeout: u32,
pub retries: u32,
}
```
`helper_func` and `internal_helper` are not called yet, and `Config` is not used. I have to suppress each warning with `#[allow(dead_code)]` above every function