1 2 3 4 5 6 7 8 9 10
// Tests that #[resource] with invalid timeout produces a compile error. use fastmcp_rust::resource; #[resource(uri = "test://data", timeout = "xyz")] fn my_resource() -> String { "data".to_string() } fn main() {}