Skip to content

Conversation

@PineappleIOnic
Copy link
Contributor

This PR has Template files and Tests for an Appwrite Rust SDK,
I have also written the foobar tests and ran them myself to confirm that this SDK works correctly, This SDK Conforms as closely as it can with the Rust Language's Standards so it shouldn't compile with any warnings apart from unused imports which can't be avoided due to how the templates work.

Currently, the API is blocking I/O but I plan to add async support in the future behind a feature in the crate which I'm quite excited to do considering I'm not very good with async rust.

This PR also has full compatibility with Appwrite's response models making it as easy as possible for users to use the SDK. A Playground has already been written and tested and a PR is being prepared.

PineappleIOnic and others added 30 commits March 8, 2021 20:55
Fix Licence Name in cargo.toml and Indentation in the twig templates
+ Allow package name to be changed in the sdk-generator for rust
+ Added Example Generation
+ Changed example in README.md to use variable package name
Added first implementation of Exceptions into the Rust SDK
Add add_self_signed function to Client in SDK and Remove Cookies
Copy link
Contributor

@wess wess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only suggestion is working on reducing clone (which we have already talked about). Thanks for this!

@CEbbinghaus
Copy link
Contributor

Love to see it. I was thinking of creating a Rust SDK however I have no experience with it and it's a lot of work. Thank you for all that you have done

@PineappleIOnic
Copy link
Contributor Author

Note: All Rust tests are passing in above commit, non-rust tests are failing.

@stnguyen90 stnguyen90 linked an issue Oct 28, 2022 that may be closed by this pull request
@ZanzyTHEbar
Copy link

How is this going? Would love to see a Rust SDK for server-side ;)


![License](https://img.shields.io/github/license/{{ sdk.gitUserName|url_encode }}/{{ sdk.gitRepoName|url_encode }}.svg?v=1)
![Version](https://img.shields.io/badge/api%20version-{{ spec.version|url_encode }}-blue.svg?v=1)
{% if sdk.warning %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice if these if/endif blocks could be consistent with whitespace. I prefer:

{if}
thing..
{endif}```
without the whitespace between if & thing. 

@hugofpsilva
Copy link

@PineappleIOnic any news on this? Can I help out in any way?

@ae2rs
Copy link

ae2rs commented Dec 28, 2024

@PineappleIOnic is this branch dead? Seems like PR was never reviewed

@PineappleIOnic
Copy link
Contributor Author

@LcsH0s Yeah unfortunately this branch is currently dead, it is very old and Rust, Appwrite and the ways we generate SDK's have changed quite drastically, so we'll need to possibly rewrite this from the ground up

@ae2rs
Copy link

ae2rs commented Dec 30, 2024

@PineappleIOnic thank you for all the work you did at least
I guess this is going on the long list of OSS contributions I need to make lol

@ItzNotABug ItzNotABug mentioned this pull request Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Rust Templates to the SDK Generator

7 participants