-
Notifications
You must be signed in to change notification settings - Fork 526
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
codegen: Update ureq to support v3.x #697
Comments
Hey @ashitaprasad let me know if you want me to work on this issue and make a PR solving it. |
it worked fine in github codespace..
I used this for installation.. |
Thanks for the suggestion, but this issue is unrelated to the Rust installation. The error occurs because the into_string() method was removed in ureq 3.x, and the code generator needs to be updated. The Rust toolchain itself is working correctly. |
You can send across a PR. |
But, @Udhay-Adithya it is high time I will recommend you to send a PR aligned to a project instead of working on side items right now. |
@Udhay-Adithya Apologies for the oversight! I just realized that in my Cargo.toml, the ureq dependency was set to version 2.9. Also,,I primarily use VS Code extensions for only two languages, since I work with multiple languages regularly. Thanks to the documentation you shared I've updated the codegen accordingly and will open a PR after I finish updating the tests. |
Describe the bug/problem
The current ureq code generator produces code using response.into_string(), which is not compatible with ureq 3.x. This method was removed in the major rewrite, leading to compilation errors.
ureq 3.0.0-rc1 release notes
ureq 2.12.1 docs
ureq 3.0.0 docs
In the 2.12.1 docs the method
into_string()
is used but in the next version(3.0.0) the methodinto_string()
is not used.Steps to Reproduce the bug/problem
Expected behavior
The code should compile and run without any issues.
Image: uses
ureq-2.12.1
Device Info (The device where you encountered this issue)
Flutter Doctor
The text was updated successfully, but these errors were encountered: