···11+use shared::advent::challenges::day_three::repo::{ChallengeRecord, manufacture_car};
22+33+#[tokio::main]
44+async fn main() {
55+ let car_bytes = manufacture_car(
66+ "did:plc:somebodyyyy".parse().unwrap(),
77+ "codes.advent.supersecret.verification",
88+ "1337",
99+ ChallengeRecord {
1010+ created_at: "2026-01-01T12:00:00Z".into(),
1111+ verification_code: "ABCDE-FGHIJ".to_string(),
1212+ message: "what did the muffin say to the other muffin?".into(),
1313+ },
1414+ )
1515+ .await
1616+ .expect("failed to build car");
1717+1818+ let path = "local/test.car";
1919+ std::fs::write(path, &car_bytes).expect("failed to write file");
2020+ println!("wrote {} bytes to {path}", car_bytes.len());
2121+}
+3-5
shared/src/advent/challenges/day_three/repo.rs
···40404141 // to the car!
4242 let mut car_bytes = Vec::new();
4343- {
4444- let cursor = Cursor::new(&mut car_bytes); // something CarStore can use
4545- let mut car = CarStore::create_with_roots(cursor, [repo.root()]).await?;
4646- repo.export_into(&mut car).await?;
4747- }
4343+ let cursor = Cursor::new(&mut car_bytes); // something CarStore can use
4444+ let mut car = CarStore::create_with_roots(cursor, [repo.root()]).await?;
4545+ repo.export_into(&mut car).await?;
48464947 Ok(car_bytes)
5048}