static — global, fixed address. const — compile-time constant.
static:
const:
1// const: compile-time2const MAX_SIZE: usize = 1024;34// static: runtime5static APP_NAME: &str = "MyApp";6static mut COUNTER: i32 = 0; // unsafe
Key: const for compile-time, static for global state.