programatik29 / axum-server

High level server designed to be used with axum framework.
MIT License
168 stars 56 forks source link

native-tls implementation #59

Closed BratSinot closed 1 year ago

BratSinot commented 1 year ago

Greetings!

I want to implement version with native-tls to this crate, but I don't sure which way is right. I can just copy-paste tls_rustls folder and rewrite it to native-tls, but you use tokio-rustls which have tokio-native-tls with same API, and it will be a lot of same code. Or, I can change current implementation through cfg flag.

programatik29 commented 1 year ago

It is a good idea to keep everything separated. Create a new module and copy paste existing implementation if you wish.

hoodie commented 1 year ago

@BratSinot you go through with it? I'd be interested in using it to, maybe we could upstream your work?

BratSinot commented 1 year ago

@BratSinot you go through with it? I'd be interested in using it to, maybe we could upstream your work?

Nope.

programatik29 commented 1 year ago

71 is a good example if anyone wants to implement this.