// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#![expect(
missing_docs,
missing_debug_implementations,
clippy::empty_structs_with_brackets,
reason ="Unit tests")]// Assume these are random dependencies we want to create and inject.
pubstructLogger{}pubstructDatabase{}// Our "DI" container. Adding `fundle::bundle` adds a `::builder()` method
// to construct this.
#[fundle::bundle]pubstructAppState{logger: Logger,
database: Database,
}fnmain(){// Create a new instance of `AppState`.
let_=AppState::builder().logger(|_|Logger {}).database(|_|Database {}).build();}