binius_utils/
examples.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2024 Irreducible Inc.

// Get log trace size from the environment variable.
// Panics if the environment variable is not a valid integer.
pub fn get_log_trace_size() -> Option<usize> {
	match std::env::var("BINIUS_LOG_TRACE") {
		Ok(val) => Some(
			val.parse::<usize>()
				.expect("BINIUS_LOG_TRACE must be a valid integer"),
		),
		Err(_) => None,
	}
}