You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lib.rs
    path of file: ./repos/kellnr/crates/appstate/src
    
    the code of the file until where you have to start completion: use axum::extract::FromRef;
use axum_extra::extract::cookie::Key;
use common::cratesio_prefe
    
pub async fn test_state() -> AppStateData {
    let db = Arc::new(db::mock::MockDb::new());
    let signing_key = Key::generate();
    let settings = Arc::new(Settings::default());
    let crate_storage = Arc::new(KellnrCrateStorage::new(&settings).await.unwrap());
    let crateio_storage = Arc::new(CratesIoCrateStorage::new(&settings).await.unwrap());
    let (cratesio_prefetch_sender, _) = flume::unbounded();
    AppStateData {
        db,
        signing_key,
        settings,
        crate_storage,
        cratesio_storage: crateio_storage,
        cratesio_prefetch_sender: Arc::new(cratesio_prefetch_sender),
    }
}