id
int64
0
5k
task_category
stringclasses
1 value
messages
listlengths
3
3
2,947
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a function that processes error messages related to shell commands. The function should take an error object...
3,385
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a game of life simulation using Rust. The game of life is a cellular automaton devised by the British ma...
4,710
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a data structure to manage a stack of boolean expressions. Each boolean expression is associated with a ...
629
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust function that generates code for validating floating-point numbers based on certain options. The func...
4,759
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a generic processing configuration for a problem-solving system. The system is designed to handle variou...
3,543
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple adapter pattern in Rust. The adapter pattern is a structural design pattern that allows the int...
2,125
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are given a simple implementation of an iterator in Rust. The `Item` type is defined as a reference to a boxed `usize`, and the `next...
3,687
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function to calculate the median of a list of integers. The median is the middle value in a sorted lis...
2,540
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing an asynchronous caching system for user data in a web application. The system involves managing user dat...
1,512
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function that formats a given positive integer as a hexadecimal string. Additionally, you need to crea...
2,223
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are given two strings, `a` and `b`. Your task is to implement a function or method to find the length of the longest common subsequen...
3,892
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function that processes and retrieves identifiers from a given crate data. The crate data is represent...
812
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple ray tracer in Rust. Your goal is to create a function that calculates the color of a ray after ...
471
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple game character movement system in Rust. The provided code snippet is a part of a PlayerCharacte...
1,220
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple message handling system in Rust. The provided code snippet includes some initial imports and a ...
4,298
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a module in Rust that handles various types of geometric shapes. The module should provide a set of type...
2,258
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function to validate user nicknames based on the following criteria:\n1. The nickname must be at least...
4,475
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function that processes a collection of test results and generates a summary report. Each test result ...
194
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a trait for a bitmap font in Rust. The trait, `ToBitmapFont`, has three methods: `bitmap_height`, `bitma...
4,723
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a program to find all prime numbers up to a given limit using the Sieve of Eratosthenes algorithm. The S...
2,041
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a module for handling quoted strings in a programming language. The module should provide functionality ...
3,697
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple ball simulation in a 2D space. The `ball` module provides a `Ball` struct and associated functi...
3,082
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function to run a target in linearly-increasing round sizes and record the results for analysis. The f...
4,749
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a flow control algorithm for a high-speed data processing system. The system, named \"Jetstream,\" proce...
2,859
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function to parse a specific XML file format containing trackpoint data. The XML file contains a serie...
4,474
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are given a code snippet that involves the usage of a custom data type `Fp` and its extension `Fp2`. The code snippet also includes a...
1,568
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function that processes binary data to populate a nested HashMap structure in Rust. The function is ex...
3,789
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple expression conversion system in Rust. The system should allow converting an `Address` type into...
4,154
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a program that simulates a simple text-based game. The game involves a character navigating through a series...
331
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a data structure to manage the activation state of multiple hardware threads (harts) in a system. The pr...
3,066
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust module structure for a service that handles various operations. The given code snippet shows a partia...
4,419
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simplified version of a characteristic system for a home automation platform. The platform uses charac...
2,594
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust function that processes and sends internal metrics. The function receives a `ticker` that generates e...
1,806
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a hash function that takes a string as input and produces a 64-bit hash value. The hash function should ...
2,639
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simplified version of a protocol handshake mechanism using asynchronous tasks in Rust. The code snippe...
262
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust program that utilizes the `url` crate to parse and manipulate URLs. Your program should take a URL as...
755
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple model in Rust for a car rental system. The provided code snippet includes a module declaration ...
725
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function that handles errors in a data processing application. The function is responsible for saving ...
1,078
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are given a Rust function `solve_part2` that takes a reference to a vector of `Move` objects and returns an `isize` value. The `Move`...
795
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a simple program that interacts with a MySQL database using the `sqlx` library in Rust. Your goal is to impl...
3,843
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function to decrypt a wallet record using a set of keys. The function takes in a reference to a set of...
246
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function that processes a given input string and extracts specific substrings based on certain conditi...
1,199
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a custom error type for handling encoding errors in a text processing application. The error type, `Enco...
1,745
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a custom string type in Rust that allows for efficient manipulation and conversion of strings with diffe...
4,114
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simplified job scheduler in Rust. The job scheduler should support adding jobs, executing them in a sp...
1,545
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a simple web server using Rust. The server will handle requests to retrieve and manipulate data from a datab...
3,828
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust library for controlling General Purpose Input/Output (GPIO) pins on a microcontroller. The library sh...
432
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a feature toggle mechanism in a Rust application. Feature toggles are used to control the availability o...
2,188
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a trait for a custom type in Rust. The trait, `MemoryInputStreamExt`, extends the functionality of the `...
3,311
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a parser for a simple expression language. The language supports literals, parentheses, symbol invocatio...
3,194
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function that performs a safe conversion between two different types of pointers in Rust. The function...
3,012
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple header management system in Rust. The `Headers` struct is designed to store a collection of hea...
1,151
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are working on a programming language interpreter that supports lazy namespace creation and usage. The code snippet provided is a par...
2,710
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a CRC32 checksum function for quad words (64 bits) using the ARM AArch64 instruction set. The provided c...
3,049
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a command processing system for managing agents in a simulation environment. The system receives a serie...
4,735
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a macro in Rust that emulates the behavior of the `format!` macro. The `format!` macro in Rust is used t...
1,995
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a function that finds the closest display mode for a given display index and a specified display mode. In th...
4,399
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a simple to-do list application using Rust and GTK. The application should allow users to add, remove, and v...
582
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple black box testing framework in Rust. The framework should allow users to define test cases and ...
4,878
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function that converts a given time in seconds to its English representation. The function should take...
4,014
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a custom iterator in Rust that iterates over a sequence of HTML tags and their corresponding classes. Th...
792
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function to analyze installation information for a software application. The function `get_installatio...
4,731
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple HTTP server that handles CORS (Cross-Origin Resource Sharing) requests. CORS is a security feat...
3,629
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a custom error handling mechanism for a UEFI (Unified Extensible Firmware Interface) library in Rust. Th...
1,905
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a custom error handling system for a cryptocurrency wallet application. The application needs to handle vari...
4,907
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust program that processes JSON data representing exit statuses of various processes. The program should ...
1,838
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust program to process and analyze trade orders from a financial exchange. The program needs to implement...
2,894
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a custom error handling system for a command-line application. The system should define specific error t...
4,366
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple distributed key-value store using the Paxos consensus algorithm. The key-value store will be re...
3,721
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust function that handles various errors related to making HTTP requests and deserializing JSON responses...
1,567
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust macro that selects the appropriate version of a software based on the target operating system and spe...
3,521
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple synchronous read-write pipe in Rust. A synchronous pipe allows communication between two thread...
3,333
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust module that handles the construction of various types of buildings. The module should be able to inte...
2,760
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple command parser for a key-value store. The parser should take a command as input and return the ...
4,797
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function to process a string of URL parameters and return a sorted map of key-value pairs. The input s...
2,861
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a custom error type and associated conversion traits in Rust. Your goal is to create a custom error type...
4,953
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with designing a Rust application for managing repositories in a version control system. The application will involve defi...
3,217
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a temperature monitoring system for a greenhouse. The system will utilize a temperature sensor to capture th...
14
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust library that provides a unified interface for querying system information on various Linux distributi...
409
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are given a Rust code snippet that contains a partial implementation of a binary search tree (BST) data structure. Your task is to co...
3,826
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a struct to calculate the estimated reading time of a given text based on its word count and other facto...
2,048
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a validation function for a decentralized application (dApp) using the Holochain framework. Holochain is a p...
3,278
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a timer module in Rust. The timer should be able to start and measure the elapsed time since its start. ...
2,238
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a dependency resolution algorithm for a package manager. The package manager maintains a list of depende...
4,853
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a custom asynchronous task scheduler in Rust. The scheduler will manage a set of tasks and execute them ...
4,955
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are working on a project that involves processing audio data using a custom pipeline. As part of this pipeline, you need to implement...
2,454
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a file reading utility in Rust that can asynchronously read a file from a given path with an initial off...
4,296
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a custom error type for handling errors related to parent-child relationships in a family tree applicati...
3,052
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a hotel management system in Rust. The system should include functionality for managing time-related ope...
1,058
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple content management system for a blog. The system should have a `Post` struct with three fields:...
4,279
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are given a matrix A of size r x c, where r and c are randomly generated integers between 1 and 20. Each cell of the matrix contains ...
390
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a function that determines the script (writing system) of a given Unicode character. The script can be one o...
1,428
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a custom macro for generating a hash map in Rust. The macro should take a list of key-value pairs and pr...
3,362
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a function that calculates the total price of resources based on their types and factors. The function t...
17
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a custom error handling mechanism for a portfolio management system. The system encounters various error...
2,321
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust build script that dynamically generates a file based on the contents of a directory. Your task is to ...
1,947
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a simple reference-counted smart pointer in Rust. Reference counting is a technique used to track the nu...
4,552
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a Rust program that involves parsing and processing JSON data using the Serde library. Your goal is to defin...
3,440
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with implementing a Rust module loader that can handle both sequential and parallel iteration over modules. The given code...
1,651
oss_instruct
[ { "role": "system", "content": "You are an expert assistant who solves Rust programming problems and generates correct code." }, { "role": "user", "content": "You are tasked with creating a simple web server using Rust and the `warp` framework. Your goal is to implement an endpoint that serves a...