binius_utils/
examples.rs

1// Copyright 2024-2025 Irreducible Inc.
2
3// Get log trace size from the environment variable.
4// Panics if the environment variable is not a valid integer.
5pub fn get_log_trace_size() -> Option<usize> {
6	match std::env::var("BINIUS_LOG_TRACE") {
7		Ok(val) => Some(
8			val.parse::<usize>()
9				.expect("BINIUS_LOG_TRACE must be a valid integer"),
10		),
11		Err(_) => None,
12	}
13}