-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
try fit wasm partially #225
Conversation
not(target_arch = "wasm32") test pass on my machine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Temporarily remove the logic related to request_with_form_data involving files; I will implement a replacement for this later.
This comment raised some questions but I think it only targets wasm and is not affecting the existing features for unix/windows targets?
I have not looked into this that much so far, only glanced over it to give an initial feedback. I hope it doesn't feel too rushed.
Thank you for reviewing my work. Here are some details regarding this commit: This commit was somewhat rushed as it is intended for my bot project, which required a quick turnaround. All modifications are focused on the WebAssembly (WASM) target and its features. I will carefully consider your suggestions and work on developing an alternative method for attaching files in the request_with_form_data function. |
Personally I am fine with a PR not including file support for WASM as long as it stays intact for existing users. Having WASM without file support is more than having no WASM support ;) |
I've just updated some of the work by incorporating most of your suggestions. However, I believe there's still significant room for improvement. Could you provide further feedback? |
Thank you for your valuable feedback on my pull request. I appreciate the insights and suggestions you've provided, many of which I hadn't considered and are definitely worth adopting. Due to my current involvement in other projects, it might take some time before I can continue with the next set of changes for this PR. I'll keep you updated on my progress. @EdJoPaTo |
@xlfish233 I should be able to push to your branch (Edits by maintainers are allowed). For other things I would like your input and wait for you when you have the time.
Likewise! Working together on this seems working well to get this integrated! |
most recent commit i try only use target_arch = "wasm32" to difference it. now,it work's well at existing and can run with --target wasm32-unknown-unknown --no-default-features --features async-http-client |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! I added a CI task to test the Wasm support which also works. ✨
I am getting into nitpicking with my review so its in a good shape already! Additionally to the new comments, please check the past review comments which I haven't marked as resolved yet. :)
add some statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another nitpick. Other than that it seems like a good thing to add to frankenstein. @ayrat555 what are your thoughts on this?
accept suggestion Co-authored-by: EdJoPaTo <[email protected]>
Im not sure why the CI is failing… 👀 |
Seem caused by wasm target has some unreachable codes |
wasm target has many warning unreachable pattern. may be it can be fixed by adding many cfg target something,but it's may not a good idea. |
what do you think @EdJoPaTo |
Seem it caused by other matters,not from this changes. |
yeah, its also failing for the |
sorry for a late reply. I think a found the problem |
Add the wasm feature, ensuring it functions correctly with worker-rs.
Temporarily remove the logic related to request_with_form_data involving files; I will implement a replacement for this later.
Note that multipart may not function with the wasm feature; I will look for an alternative solution in the future.
#224