Skip to content

Conversation

iamnamananand996
Copy link
Contributor

@iamnamananand996 iamnamananand996 commented Aug 18, 2025

The PR is an extension of this PR: #8822
closes: #8828

Description

Enhanced the Rust SDK generator with comprehensive file handling capabilities, including file uploads, downloads, streaming support, and multi-part form data handling. Additionally, reorganized the template structure to use a "core" folder for better organization.

Changes Made

  • Added file upload/download support: Implemented File struct with data and optional filename metadata for file uploads (generators/rust/base/src/asIs/file.rs)

  • Added download capabilities: Created download_file function that converts HTTP response to bytes for file downloads (generators/rust/base/src/asIs/stream.rs)

  • Added multi-part form data support: Implemented form data handling with functions to create multipart forms, add text fields, and add file fields with automatic content type detection based on file extensions (generators/rust/base/src/asIs/form_data.rs)

  • Enhanced HTTP client: Extended HTTP client with file handling capabilities for upload/download operations
    (generators/rust/base/src/asIs/http_client.rs)

  • Updated project structure: Organized template files in "core" folder across all seed projects for better code organization

    Testing

    • Manual testing completed

@iamnamananand996 iamnamananand996 changed the title feat(rust): Add file upload/download, streaming, and multi-part form support feat(rust): Add file upload/download and multi-part form support Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Rust SDK: Add file upload/download, streaming, and multi-part form support to Rust SDK generator
1 participant