use bloom_web::prelude::*;
fn test_crate_accessibility() {
let _serialize_test: fn(&str) -> Result<String, serde_json::Error> = serde_json::to_string;
let _web_test = web::Path::<i32>::extract;
let _response_test = HttpResponse::Ok();
let _pool_test: Option<MySqlPool> = None;
let _from_row_test: fn() = || { let _: Box<dyn FromRow<'_, sqlx::mysql::MySqlRow>> = todo!(); };
let _result_test: anyhow::Result<()> = Ok(());
let _time_test = chrono::Utc::now();
let _schema_test: fn() = || { let _: Box<dyn ToSchema> = todo!(); };
let _runtime_test = tokio::runtime::Runtime::new();
println!("All crate accessibility tests passed!");
}
#[derive(Entity, Debug, Clone, Serialize, Deserialize, FromRow)]
#[table("test_users")]
pub struct TestUser {
#[id]
pub id: i32,
pub name: String,
pub email: String,
}
#[repository(TestUser)]
pub struct TestUserRepository;
#[get_mapping("/test")]
async fn test_endpoint() -> HttpResponse {
HttpResponse::Ok().json("Test successful")
}
fn main() {
test_crate_accessibility();
println!("All bloom_web dependencies are properly accessible!");
}