If you are good at developing and testing with a smaller data set, you can use conditional compilation. Here is a simple example:
#[cfg(debug_assertions)]
const VALUE: u32 = 0;
#[cfg(not(debug_assertions))]
const VALUE: u32 = 1;
fn main() {
println!("value: {}", VALUE);
}
If you compile it without optimization ("debug" mode), then it debug_assertionswill be true, but it VALUEwill be 0, but if you compile it with optimization ("release" mode), then it debug_assertionswill be false, and it VALUEwill be 1.
Cargo (cargo build cargo build --release), .
, . , bincode rustc_serialize:: json serde_json. , , , - .