Skip to content

WIP: Use SyncA to generate [a]sync APIs #246

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

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft

Conversation

martin-g
Copy link
Member

@martin-g martin-g commented Jul 28, 2025

This PR should be reviewed with whitespaces ignored - https://github.com/apache/avro-rs/pull/246/files?w=1

martin-g added 15 commits August 8, 2025 09:48
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Convert more methods to async

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
items

We need to avoid using `syn::UseRename` because it may cause issues
after `synca` replacements

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Now `clear && cargo expand --no-default-features --features xyz 2>&1 >
generated_xyz.rs` works for both xyz=sync and xyz=tokio in non-test code

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
… --features tokio`

The `sync` feature build fails due to the new `Box::pin(...)` wrappers
for all recursive calls

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
This way we could use .await without extra troubles

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
TODO: examples, doc tests and IT tests

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
It is not finished - somehow two lines of code lead rustc to run forever

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
This way we need more cloning but otherwise Rustc complains that it
cannot resolve whether &schema::tokio::Schema is Send

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
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.

1 participant