Replace lexical Rust fragments with real modules

This commit is contained in:
ms2k 2026-07-19 05:12:57 +09:00
commit 247819250b
2 changed files with 3302 additions and 2671 deletions

View file

@ -307,7 +307,11 @@ struct TestTree {
impl TestTree {
fn new() -> Self {
let path = std::env::temp_dir().join(format!(
let parent = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("../../target/test-artifacts/state-anchor-authority");
fs::create_dir_all(&parent).unwrap();
let parent = parent.canonicalize().unwrap();
let path = parent.join(format!(
"lazaret-state-anchor-authority-{}-{}",
std::process::id(),
SEQUENCE.fetch_add(1, Ordering::Relaxed)

View file

@ -397,7 +397,11 @@ struct TestTree {
impl TestTree {
fn new() -> io::Result<Self> {
let path = std::env::temp_dir().join(format!(
let parent = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("../../target/test-artifacts/state-anchor-lifecycle");
fs::create_dir_all(&parent)?;
let parent = parent.canonicalize()?;
let path = parent.join(format!(
"lazaret state-anchor,:{}-{}",
std::process::id(),
SEQUENCE.fetch_add(1, Ordering::Relaxed)