rust-s3 icon indicating copy to clipboard operation
rust-s3 copied to clipboard

fix: rustls causing openssl to be built

Open TroyKomodo opened this issue 1 year ago • 2 comments
trafficstars

This commit fixes rustls feature being dependant on native-tls and binding to libcrypto.

fixes: #369

TroyKomodo avatar Dec 17 '23 16:12 TroyKomodo

working on this feature made me realize the structure of this crate is not rust 2021 and also uses some strange tactics like a compile feature to toggle ssl verify. Perhaps we could create a feature branch and get a 1.0 version fixing these mistakes. I do not mind putting in the work to fix and refactor them.

TroyKomodo avatar Dec 17 '23 16:12 TroyKomodo

I am particularly referring to using feature flags to change interface. How rust feature flags work is if any dependency in the compile tree enables the flag the feature is enabled for all users of the dep. Meaning if I use a dep which uses rust-s3 sync and I use rust-s3 with Tokio it won't work. Fortunately this has not happened but ideally we should have a better mechanism for handling this.

TroyKomodo avatar Dec 17 '23 17:12 TroyKomodo

@TroyKomodo very nice, thank you!

I hear you on the design choices, this is a pretty old codebase and it shows, if you'd like to come up with a set of changes you'd like to see for 1.0, I'd be happy to look them through, figure out timelines...

durch avatar Jun 14 '24 20:06 durch

Hi @durch

This issue with openssl being compiled when using the rustls backend is breaking cross compilation upstream. Do you have plans to release a 0.34 point release including this fix or should we wait for 0.35?

Thanks!

mdecimus avatar Jun 22 '24 15:06 mdecimus