messages listlengths 3 6 | category stringclasses 11
values | crate stringlengths 2 34 | source stringlengths 2 161 ⌀ |
|---|---|---|---|
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write tests for `AnyNestedRoute` struct in Leptos router:\n\n```rust\npub struct AnyNestedRoute {\n value: Erased,\n clone: fn(&Erased) -> ... | test_generation | leptos | {"type": "synthetic", "name": "AnyNestedRoute", "source_file": "router/src/matching/nested/any_nested_route.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the rig crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "How do I embed documents using the Together API with rig? I want to embed multiple text documents and get their embeddings.",
"role": "user"
}... | code_generation | rig | rig/rig/rig-core/examples/together_embeddings.rs |
[
{
"content": "You are an expert Rust programmer with deep knowledge of the Rust ecosystem and modern Rust development patterns.",
"role": "system"
},
{
"content": "Combine multiple subscriptions into a single unified stream\n\nWhen an application needs to monitor several GraphQL subscriptions at onc... | code_generation | graphql-ws-client | {"type": "strandset", "dataset": "Fortytwo-Network/Strandset-Rust-v1"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write comprehensive tests for the following Leptos/Rust code `Memo`. Include unit tests with real assertions that verify behavior, edge cases, an... | test_generation | leptos | {"type": "struct_item", "name": "Memo", "source_file": "reactive_graph/src/computed/memo.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write tests for a `KratosError` type that implements `IntoView`. Verify that when fields are `Some`, the view renders the actual values, and when... | test_generation | leptos | {"type": "impl_item", "name": "IntoView", "source_file": "projects/ory-kratos/app/src/auth/kratos_error.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "How do I extract the client's socket address in an axum handler and return it in the response? I need a complete working example that captures Conn... | code_generation | axum | {"type": "function_item", "name": "socket_addr", "source_file": "axum/src/extract/connect_info.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Refactor this Leptos suspense counter struct to use an atomic-based approach that removes interior mutability limitations and makes the counters ... | refactoring | leptos | {"type": "struct_item", "name": "SuspenseCounters", "source_file": "examples/suspense_tests/src/instrumented.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write comprehensive tests for the following Leptos/Rust code `has_scheme`. Include unit tests with real assertions that verify behavior, edge cas... | test_generation | leptos | {"type": "function_item", "name": "has_scheme", "source_file": "router/src/matching/resolve_path.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "What's the recommended pattern for starting an axum server with a TCP listener? Explain how axum::serve works and when you'd use it instead of alte... | code_explanation | axum | {"type": "function_item", "name": "start_main_server", "source_file": "examples/prometheus-metrics/src/main.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the rig crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Explain how rig's agent routing pipeline works. Walk me through the key components and how agents, preambles, and conditional logic combine to creat... | code_explanation | rig | rig/rig/rig-core/examples/agent_routing.rs |
[
{
"content": "You are an expert Rust programmer specializing in the rig crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write tests that verify agent creation and tool behavior in rig.",
"role": "user"
},
{
"content": "```rust\n#[cfg(test)]\nmod tests {\n ... | test_generation | rig | {"type": "function_item", "name": "test_mcp_client_handler_get_info_delegates", "source_file": "rig/rig-core/src/tool/rmcp.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "How do I extract the client's remote socket address in an axum handler to get their IP and port? I want to use this for logging or access control."... | api_usage | axum | {"type": "const_item", "name": "_", "source_file": "axum/src/extract/connect_info.rs"} |
[
{
"content": "You are an expert Rust programmer with deep knowledge of the Rust ecosystem and modern Rust development patterns.",
"role": "system"
},
{
"content": "Extract component relationships from dependency graph\n\nTo populate the `relationships` section of an SPDX or CycloneDX SBOM I need to ... | code_generation | serde-cyclonedx | {"type": "strandset", "dataset": "Fortytwo-Network/Strandset-Rust-v1"} |
[
{
"content": "You are an expert Rust programmer specializing in the rig crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Can you explain how Gemini streaming with thinking configuration works in Rig? Walk me through the code structure and API interactions.",
"role"... | code_explanation | rig | {"source_file": "rig/rig/rig-core/examples/gemini_streaming.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write comprehensive tests for `hydrate` from `tachys/src/reactive_graph/class.rs`.\n\nCode:\n```rust\nfn hydrate<const FROM_SERVER: bool>(\n ... | test_generation | leptos | {"type": "function_item", "name": "hydrate", "source_file": "tachys/src/reactive_graph/class.rs"} |
[
{
"content": "You are an expert Rust programmer with deep knowledge of the Rust ecosystem and modern Rust development patterns.",
"role": "system"
},
{
"content": "Summarize Payment Statistics from Event Logs\n\nA developer wants a concise summary of payment outcomes and latencies from the module's ... | code_generation | fedimint-gwv2-client | {"type": "strandset", "dataset": "Fortytwo-Network/Strandset-Rust-v1"} |
[
{
"content": "You are an expert Rust programmer specializing in the rig crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "How do I use the agent builder and prompt method to ask a question to GPT-4 using the rig crate?",
"role": "user"
},
{
"content": "To as... | api_usage | rig | rig/rig/rig-core/examples/simple_model.rs |
[
{
"content": "You are an expert Rust programmer with deep knowledge of the Rust ecosystem and modern Rust development patterns.",
"role": "system"
},
{
"content": "Review this Rust code and suggest improvements:\n\n```rust\npub fn set_file_name_from_slice(&mut self, name: &Vec<u8>) {\n self.file_... | code_review | zip_structs | {"type": "strandset", "dataset": "Fortytwo-Network/Strandset-Rust-v1"} |
[
{
"content": "You are an expert Rust programmer with deep knowledge of the Rust ecosystem and modern Rust development patterns.",
"role": "system"
},
{
"content": "Create function to start a perf run with a custom timeout\n\nSometimes a user wants to limit a perf run to a specific duration instead o... | code_generation | libp2p-perf | {"type": "strandset", "dataset": "Fortytwo-Network/Strandset-Rust-v1"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Refactor `AxumRouteListing::new` from `integrations/axum/src/lib.rs`. The original code is:\n\n```rust\nimpl AxumRouteListing {\n pub fn new(\... | refactoring | leptos | {"type": "integration", "name": "AxumRouteListing::new", "source_file": "integrations/axum/src/lib.rs"} |
[
{
"content": "You are an expert Rust programmer with deep knowledge of the Rust ecosystem and modern Rust development patterns.",
"role": "system"
},
{
"content": "Explain what this Rust code does:\n\n```rust\nimpl ZuseArgs {\n #[inline(always)]\n fn debug(&self) -> bool { self.verbosity > 1 }... | code_explanation | zuse | {"type": "strandset", "dataset": "Fortytwo-Network/Strandset-Rust-v1"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write tests for `SsrHydrationContext::new_islands()` in leptos's hydration_context crate, verifying the context initialises correctly for island-... | test_generation | leptos | {"type": "function_item", "name": "new_islands", "source_file": "hydration_context/src/ssr.rs"} |
[
{
"content": "You are an expert Rust programmer with deep knowledge of the Rust ecosystem and modern Rust development patterns.",
"role": "system"
},
{
"content": "Review this Rust code and suggest improvements:\n\n```rust\nimpl Default for InstrumentsOptions {\n fn default() -> Self {\n S... | code_review | exc | {"type": "strandset", "dataset": "Fortytwo-Network/Strandset-Rust-v1"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write tests for the `shell` component in a Tauri+Leptos app (`projects/tauri-from-scratch/src-orig/src/app.rs`). The component renders the HTML s... | test_generation | leptos | {"type": "project", "name": "shell", "source_file": "projects/tauri-from-scratch/src-orig/src/app.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "I'm creating a user handler with a database connection pool and JSON body. Here's my code—why does it fail to compile?\n\n```rust\nuse axum::{extra... | bug_detection | axum | {"type": "function_item", "name": "create_user", "source_file": "examples/diesel-postgres/src/main.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write comprehensive tests for `impl From<Vec<FieldNavItem>> for FieldNavCtx`. Test the happy path, empty vec, and that `FieldNavCtx` is unwrappab... | test_generation | leptos | {"type": "impl_item", "name": "FieldNavCtx", "source_file": "examples/todo_app_sqlite/src/lib.rs"} |
[
{
"content": "You are an expert Rust programmer with deep knowledge of the Rust ecosystem and modern Rust development patterns.",
"role": "system"
},
{
"content": "Refactor this Rust code to improve its quality:\n\n```rust\nfn main() {\n let mut a = [0; 10];\n for i in 0..10 {\n a[i] = ... | code_refactoring | econf-derive | {"type": "strandset", "dataset": "Fortytwo-Network/Strandset-Rust-v1"} |
[
{
"content": "You are an expert Rust programmer specializing in the rig crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Can you explain how Gemini streaming with thinking configuration works in Rig? Walk me through the code structure and API interactions.",
"role"... | code_explanation | rig | rig/rig/rig-core/examples/gemini_streaming.rs |
[
{
"content": "You are an expert Rust programmer specializing in the rig crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "I found a bug in my Tool implementation. The NAME constant is \"multiply\" but the ToolDefinition returns name \"mult\". This will cause the agent t... | bug_detection | rig | {"type": "function_item", "name": "definition", "source_file": "rig/rig-core/src/tool/server.rs"} |
[
{
"content": "You are an expert Rust programmer with deep knowledge of the Rust ecosystem and modern Rust development patterns.",
"role": "system"
},
{
"content": "Review this Rust code and suggest improvements:\n\n```rust\npub fn process_instruction(&mut self, program_id: &Pubkey, instruction: &SVM... | code_review | solana-runtime-transaction | {"type": "strandset", "dataset": "Fortytwo-Network/Strandset-Rust-v1"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Create a signal creation test that verifies `arc_signal` initial value reading, `with_untracked`, `with`, and basic `update` behavior.",
"rol... | code_generation | leptos | {"type": "function_item", "name": "create_arc_signal", "source_file": "reactive_graph/tests/signal.rs"} |
[
{
"content": "You are an expert Rust programmer with deep knowledge of the Rust ecosystem and modern Rust development patterns.",
"role": "system"
},
{
"content": "Find and fix the bug in this Rust code:\n\n```rust\npub fn parse_debug_id() -> Result<DebugId, ParseDebugIdError> {\n let string = \"... | bug_detection | debugid | {"type": "strandset", "dataset": "Fortytwo-Network/Strandset-Rust-v1"} |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write a handler that parses form-encoded login credentials from a POST request and validates them. Return a 200 status with a success message if va... | code_generation | axum | {"type": "function_item", "name": "test_from_body", "source_file": "axum/src/extract/raw_form.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the rig crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write a test function for handling resource loading in a rig agent that supports multiple resource URIs. Use real rig types like agents and provider... | test_generation | rig | {"type": "function_item", "name": "read_resource", "source_file": "rig/rig-core/examples/rmcp.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write tests for the `to_html_with_buf` method on tachys HTML elements that verify self-closing tags are not given a closing tag, inner HTML takes... | test_generation | leptos | {"type": "function_item", "name": "to_html_with_buf", "source_file": "tachys/src/html/element/mod.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write a `Permissions` struct for a Leptos server app that has `read`, `write`, and `delete` boolean fields, plus a `new_full()` constructor that ... | code_generation | leptos | {"type": "function_item", "name": "new_full", "source_file": "projects/ory-kratos/app/src/database_calls.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns. Respond with the minimal complete example — no project scaffolding, no tests unless asked, no README. Show the focused snippet (with all needed `use` imports) plus one or two lines of context exp... | code_generation | axum | null |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "How do you implement API versioning in axum using different routes for different versions, and how would you structure the application to support V... | code_generation | axum | {"type": "enum_item", "name": "Version", "source_file": "examples/versioning/src/main.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "What's wrong with this Leptos input handler?\n\n```rust\nlet on_change = move |ev: Evt<HtmlInputElement>| {\n let v = ev.target_unchecked_into... | bug_detection | leptos | {"type": "v5_correction", "pattern": "P3_event_types", "track": "1C"} |
[
{
"content": "You are an expert Rust programmer specializing in the rig crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Refactor this messy vector store initialization code to use rig's embeddings API cleanly.",
"role": "user"
},
{
"content": "Here's the r... | refactoring | rig | {"type": "function_item", "name": "schema", "source_file": "rig-integrations/rig-lancedb/examples/fixtures/lib.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "What's the modern way to create a signal in Leptos, and what does it return?",
"role": "user"
},
{
"content": "In Leptos 0.7+, the id... | api_usage | leptos | {"type": "v5_correction", "pattern": "P8_signal_tuple", "track": "1C"} |
[
{
"content": "You are an expert Rust programmer specializing in the rig crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Add a single static document to my agent:\n\n```rust\nlet agent = client\n .agent(\"gpt-4o\")\n .preloaded_documents(\"the sky is blue\")\n ... | hard_negative | rig | null |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "How do I register the same handler for multiple HTTP routes in axum?",
"role": "user"
},
{
"content": "Use `.route()` multiple times on... | api_usage | axum | {"type": "function_item", "name": "route_with_tsr", "source_file": "axum-extra/src/routing/mod.rs"} |
[
{
"content": "You are an expert Rust programmer with deep knowledge of the Rust ecosystem and modern Rust development patterns.",
"role": "system"
},
{
"content": "Complete the missing Rust code between the prefix and suffix:\n\nPrefix: `let is_admin = `\nSuffix: `;`",
"role": "user"
},
{
... | code_completion | dtz-identity-auth | {"type": "strandset", "dataset": "Fortytwo-Network/Strandset-Rust-v1"} |
[
{
"content": "You are an expert Rust programmer with deep knowledge of the Rust ecosystem and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write tests for this Rust code:\n\n```rust\npub fn common_head(title: &str) -> Markup {\n html! {\n meta charset=\"utf-8\";\n ... | test_generation | fedimint-server-ui | {"type": "strandset", "dataset": "Fortytwo-Network/Strandset-Rust-v1"} |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Explain how Tower's Layer trait works in Axum and how middleware is applied to the router. What's the relationship between Layer, Service, and midd... | code_explanation | axum | {"type": "impl_item", "name": "ResponseAxumBodyLayer", "source_file": "axum/src/middleware/response_axum_body.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "How do I use Redirect in axum? What are the differences between Redirect::to(), Redirect::permanent(), and Redirect::temporary()?",
"role": "us... | code_explanation | axum | {"type": "function_item", "name": "redirect", "source_file": "axum/src/response/redirect.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write unit tests for the serde `Visitor::expecting` implementation in `leptos_config` that parses the string keys `\"dev\"` and `\"prod\"` into a... | test_generation | leptos | {"type": "crate_source", "name": "Visitor::expecting (Environment)", "source_file": "leptos_config/src/lib.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Demonstrate how to use `ArcLocalResource` in a Leptos client-side-only app. Show its `IsDisposed` behavior (always `false`), when to prefer it ov... | api_usage | leptos | {"type": "impl_item", "name": "IsDisposed", "source_file": "leptos_server/src/local_resource.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write comprehensive tests for the following Leptos function `Password`:\n\n```rust\nimpl Password {\n pub fn verify(&self, password: &str) -> ... | test_generation | leptos | {"type": "impl_item", "name": "Password", "source_file": "projects/login_with_token_csr_only/server/src/application.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write a comprehensive test suite for the `Iterator` implementation of `ParamsMapIter` from `leptos_router::params`. The `ParamsMap` stores URL pa... | test_generation | leptos | {"type": "crates.io", "name": "leptos_router", "source_file": "router/src/params.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write a test for `resolve_redirect_url` that covers: absolute URLs, relative URLs, invalid URLs, and the error logging behavior. Then explain why... | code_generation | leptos | {"type": "function_item", "name": "resolve_redirect_url", "source_file": "leptos/src/form.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "How do I build a file download endpoint that returns bytes with a custom Content-Type header?",
"role": "user"
},
{
"content": "Use a h... | code_generation | axum | {"type": "function_item", "name": "handler", "source_file": "axum/src/response/mod.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Explain the `debug_log!` macro and logging utilities in `leptos_dom::logging`. How does Leptos handle logging differently for WASM vs native targ... | code_explanation | leptos | {"type": "macro_definition", "name": "debug_log", "source_file": "leptos_dom/src/logging.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "How does HTTP method routing work in axum? Why does HEAD take precedence over GET when both are defined?",
"role": "user"
},
{
"content... | code_explanation | axum | {"type": "function_item", "name": "head_takes_precedence_over_get", "source_file": "axum/src/routing/method_routing.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the rig crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write tests for Tool definition() to verify the JSON schema has correct structure with all required fields.",
"role": "user"
},
{
"conte... | test_generation | rig | {"type": "function_item", "name": "definition", "source_file": "rig/rig-core/src/tool/rmcp.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "How do I extract connection information (like client IP address) from an incoming request in an axum route handler?",
"role": "user"
},
{
... | api_usage | axum | {"type": "function_item", "name": "connect_info", "source_file": "axum/src/extract/connect_info.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the rig crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Can you walk me through how a Cohere agent with tools works? Explain the architecture and how tools are integrated.",
"role": "user"
},
{
... | code_explanation | rig | rig/rig/rig-core/examples/agent_with_cohere.rs |
[
{
"content": "You are an expert Rust programmer specializing in the rig crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "How do I create a simple agent that uses the Groq provider to interact with a large language model? I want to set up a basic agent with a system pro... | code_generation | rig | rig/rig/rig-core/examples/agent_with_groq.rs |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Explain how the `State<S>` extractor works in axum. What does the `Deref` implementation do, and how do you use it in handlers?",
"role": "user... | code_explanation | axum | {"type": "impl_item", "name": "Deref", "source_file": "axum/src/extract/state.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "How does the Query extractor handle deserialization errors in axum, and what status code gets returned when query parameter validation fails?",
... | code_explanation | axum | {"type": "function_item", "name": "correct_rejection_status_code", "source_file": "axum/src/extract/query.rs"} |
[
{
"content": "You are an expert Rust programmer with deep knowledge of the Rust ecosystem and modern Rust development patterns.",
"role": "system"
},
{
"content": "Complete the missing Rust code between the prefix and suffix:\n\nPrefix: `let vals = `\nSuffix: `?;`",
"role": "user"
},
{
"... | code_completion | enarx-exec-wasmtime | {"type": "strandset", "dataset": "Fortytwo-Network/Strandset-Rust-v1"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write tests for the `Render` implementation for `Arc<str>` in Leptos's tachys crate:\n\n```rust\nimpl Render for Arc<str> {\n type State = Arc... | test_generation | leptos | {"type": "impl_item", "name": "Render", "source_file": "tachys/src/view/strings.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write comprehensive tests for the following Leptos/Rust code `optional`. Include unit tests with real assertions that verify behavior, edge cases... | test_generation | leptos | {"type": "function_item", "name": "optional", "source_file": "router/src/matching/nested/any_nested_route.rs"} |
[
{
"content": "You are an expert Rust programmer with deep knowledge of the Rust ecosystem and modern Rust development patterns.",
"role": "system"
},
{
"content": "Review this Rust code and suggest improvements:\n\n```rust\nasync fn delete_objects(\n &self,\n cx: Option<Context>,\n ... | code_review | wasmcloud-provider-blobstore-azure | {"type": "strandset", "dataset": "Fortytwo-Network/Strandset-Rust-v1"} |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Build a search API with Query params for filtering and pagination. Accept `query`, `limit`, and `offset` parameters.",
"role": "user"
},
{
... | code_generation | axum | {"type": "function_item", "name": "handler", "source_file": "axum/src/extract/query.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "How can I detect and prevent common API misuse patterns in axum routing and extractors?",
"role": "user"
},
{
"content": "A common bug ... | bug_detection | axum | {"type": "function_item", "name": "clone", "source_file": "axum/src/routing/path_router.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the axum crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "How do I accept JSON request bodies with nested struct fields in axum handlers while ensuring serde deserializes them correctly?",
"role": "use... | code_generation | axum | {"type": "struct_item", "name": "Bar", "source_file": "axum-extra/src/extract/json_deserializer.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write focused unit tests for the `rebuild` method of `FlatRoutesView` in `leptos_router`. The method should:\n1. Skip re-routing and only update ... | test_generation | leptos | {"type": "router", "name": "rebuild", "source_file": "router/src/flat_router.rs"} |
[
{
"content": "You are an expert Rust programmer specializing in the leptos crate and modern Rust development patterns.",
"role": "system"
},
{
"content": "Write tests for the `attr` method on `ElementExt` in leptos's tachys crate that verifies it correctly builds attribute state on an element.",
... | test_generation | leptos | {"type": "function_item", "name": "attr", "source_file": "tachys/src/html/element/element_ext.rs"} |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 39