Skip to content

Conversation

@PineappleIOnic
Copy link
Contributor

This PR has Template files and Tests for a Appwrite Rust SDK,
I have also written the foo bar 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.

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.

Thanks for reviewing the PR,
IOnicisere

PineappleIOnic and others added 2 commits March 16, 2021 10:53
Fix Licence Name in cargo.toml and Indentation in the twig templates
@eldadfux eldadfux requested a review from lohanidamodar March 18, 2021 05:58
@@ -0,0 +1,18 @@
[package]
name = "appwrite"
Copy link
Member

Choose a reason for hiding this comment

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

@eldadfux this should not be hardcoded right? we need to get packageName?

//

use std::path::PathBuf;
use appwrite;
Copy link
Member

Choose a reason for hiding this comment

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

No hard coding appwrite


```toml
[dependencies]
appwrite = "1"
Copy link
Member

Choose a reason for hiding this comment

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

same here, hardcoded

@eldadfux eldadfux requested a review from lohanidamodar March 20, 2021 06:25
Copy link
Member

@lohanidamodar lohanidamodar left a comment

Choose a reason for hiding this comment

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

Simple change, everything else looks in order.

Also, Is it possible to have example too? Example seems empty.

To install via [Crates.io](https://www.crates.io/) add the following to your Cargo.toml under dependencies:

```toml
appwrite = "1"
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove this hardcoded appwrite too?

@PineappleIOnic
Copy link
Contributor Author

I have been working on a playground which will show a bit more of how it works, also rust's documentation tool generates a few examples which will be shown on the crate's doc.rs page once its been uploaded

@TorstenDittmann
Copy link
Contributor

I have been working on a playground which will show a bit more of how it works, also rust's documentation tool generates a few examples which will be shown on the crate's doc.rs page once its been uploaded

The examples we generate are used on the official Appwrite documentation 👍🏻

+ Added Example Generation
+ Changed example in README.md to use variable package name
@PineappleIOnic
Copy link
Contributor Author

I have added template generation aswell as fixing the README.md package name

Copy link
Member

@lohanidamodar lohanidamodar left a comment

Choose a reason for hiding this comment

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

Small change, rest looks good.


'web' => [
'class' => 'Appwrite\SDK\Language\Web',
'build' => [
Copy link
Member

Choose a reason for hiding this comment

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

@PineappleIOnic you should remove the extra white spaces here

@christyjacob4 christyjacob4 requested a review from eldadfux June 8, 2021 09:10
[package]
name = "{{ language.params.packageName }}"
version = "{{ sdk.version }}"
authors = ["Bradley Schofield <ionicisere@gmail.com>"]
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to be updated to be Appwrite official 😉

Comment on lines 2 to 3
// WARNING! DO NOT RUN THIS TEST IF YOU ARE NOT USING THE APPWRITE SDK-GENERATOR TESTING STACK
// IT WILL FAIL!
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of this test file - can we just locally consume the package and use a test script that will not be part of this repo?

@@ -0,0 +1 @@
Deny from all No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't know where this var/ directory comes from?

@PineappleIOnic
Copy link
Contributor Author

Closing this PR as the Response Model PR is closer to the final SDK.

@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.

4 participants