Tienisto / rhttp

Make HTTP requests using Rust from Flutter.
https://pub.dev/packages/rhttp
MIT License
95 stars 10 forks source link

Precompiled Binaries #20

Open atrope opened 2 months ago

atrope commented 2 months ago

Hi there!
How can we enable precompiled_binaries so that we don't need to build from scratch every time locally? I also noticed you've set it to always rebuild in release mode, but it should be possible to use precompiled binaries to speed up the testing process.

Thanks!

image

felipecastrosales commented 2 months ago

hey @Tienisto I'm facing this same problem. can you see this or suggest anything?

Tienisto commented 2 months ago

I don't think that compiling in debug mode provides a significant reduction in compile time. I've changed it to release mode because it was slow in debug mode compared to Dart.

I am thinking of providing binaries to download but I don't have a solution yet.

atrope commented 2 months ago

@Tienisto can't we have a way to use already precompiled binaries? So the first time it would build but if it exists we could use them instead of compiling each build

Tienisto commented 2 months ago

It should already cache the binaries between builds as far as I've seen

atrope commented 2 months ago

It is building in every new build overwriting what already was built