The Rust data source is one of the integration methods available on the Kuika platform that allows you to develop custom functions and business logic. Using Rust, you can define custom operations within your application, create functions that accept parameters, and use these functions in application workflows.
With the Rust data source, you can write custom code to address needs beyond the built-in actions, customize data processing workflows, and create reusable functions.
You may need to have an appropriate subscription plan to use the Rust data source feature. You can upgrade your subscription to access more advanced development tools.
Add a Data Source Connection to Your App with Rust
Log in to the Kuika platform and open the project you’ll be working on from the Apps screen.
Open the Data Sources module.
Here, you can view existing data sources and add a new one.
In the left panel, click the + icon next to the Sources heading.
On the Add a new Datasource screen that opens, select the Rust option under the Development category.
Enter a name for your data source.
Click the CREATE button to complete the process.
Anatomy of the Rust Action Modal
A. Top Menu
Title (Rust Action): The modal’s title indicates that the created data source is a Rust-based action.
CREATE Button: Used to save the Rust data source you’ve created.
Close Button (X): Used to close the screen and exit the process.
B. Top Settings Area
Name: A field where you can enter a description of what your function does. This helps other developers—or even you in the future—remember the purpose of the code.
External Libraries (BETA): This section allows you to add external crates (dependencies) to use in your Rust code. It is currently labeled BETA.
Generate with AI: This option is used to automatically generate Rust code with AI support. When enabled, you can receive code suggestions from the system.
If you enable the “Generate with AI” feature, you can create code automatically by writing a description.
Example command:
Create a function that converts the entered text to uppercase.
Using External Libraries (BETA)
Through the External Libraries section, you can include additional crates in your project beyond the standard Rust libraries (std). This feature is currently in the BETA phase.
After completing and testing your code, you can save the Rust data source by clicking the CREATE button. The saved data source becomes available for use within the application.
Expected Output / Result
Once these steps are complete:
The Rust data source is added to the Sources list.
The defined functions become available for use in the system.