Comments (6)
the current version does not use the async-std runtime, it only uses some primitives of it, so it should be runtime agnostic already. I havenโt tested it though
from async-native-tls.
The problem is that it (non-optionally) depends on async-std and brings in a lot of unneeded code (and compile-time) if using it with a different async runtime. Ideally instead of async-std, it would only use whatever is available from the futures crate.
Is there anything used here that is only available in async-std?
from async-native-tls.
Is there anything used here that is only available in async-std?
yes: https://github.com/async-email/async-native-tls/blob/master/src/acceptor.rs#L60-L61
from async-native-tls.
I see. That makes it rather tricky to make the whole things runtime-independent as you actually depend on async-std :)
from async-native-tls.
Yeah, I guess it could be behind a default feature flag, and the exposed API that is runtime independent could be smaller
from async-native-tls.
Maybe that solves it? #14
from async-native-tls.
Related Issues (16)
- Add support for rusttls
- malloc_consolidate(): invalid chunk size HOT 1
- convert from url::Url on connect / accept
- tests are not compiling HOT 2
- pass through AsyncBufRead HOT 2
- how to use openssl with async-std? HOT 1
- Connection randomly gives WouldBlock HOT 5
- Allow compiling against OpenSSL on macOS HOT 1
- Update to Tokio 1.0 HOT 4
- Proposal: A shared trait for tls acceptors that are implemented by both async-tls and async-native-tls HOT 1
- Publish a new release to crates.io? HOT 2
- RFC 9266: Channel Bindings for TLS 1.3 support HOT 1
- Make a new release 0.5.0 HOT 3
- Align API with origin native-tls
- acceptor API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from async-native-tls.