Comments (4)
Thanks for the report! Right now the intention of the backend
module is to mirror that of std::os
, which is to say that it provides backend-specific extension traits for the types defined in the futures-tls
crate. The intention here is that if you're configuring OpenSSL then you'd also link to the openssl crate itself.
Along those lines, you'd so somethiing like:
extern crate openssl;
extern crate futures_tls;
use futures_tls::backend::openssl::ClientContextExt;
use openssl::x509::X509FileType;
// ...
Does that make sense? Let me know if that doesn't work out!
from futures-rs.
Ahhh. I tried that before, Got this error and gave up too soon
native library `openssl` is being linked to by more than one package, and can only be linked to by one package
openssl-sys v0.7.14
openssl-sys v0.7.14 (https://github.com/alexcrichton/rust-openssl?branch=tmp#8b988494)
Fixed this by using your fork of openssl now
openssl = {git = "https://github.com/alexcrichton/rust-openssl", branch = "tmp"}
I suppose your changes are going to be merged upstream. Will use your branch till then. Thanks.
from futures-rs.
Ah yes indeed! Right now actually I've got no extra changes to rust-openssl, there's just a bug in Cargo on stable if a git repository has a workspace Cargo.toml it doesn't work as a dependency. My "fork" just deletes the workspace Cargo.toml so this project can compile on stable Rust.
Note though I'd much prefer to use a crates.io version of rust-openssl, and @sfackler has indicated that a new version is coming soon! As soon as that's out I'll update this so the dependencies are much easier to write down (e.g. everything uses crates.io)
from futures-rs.
By soon I mean tonight, btw.
from futures-rs.
Related Issues (20)
- Error on OSX by futures-executir HOT 1
- Consider removing ArcWake, re-export std::task::Wake HOT 3
- Fine-tune the Ordering for num_senders
- Feature Request: make FuturesUnordered splitable.
- `FuturesUnordered` guaranties
- Unbounded memory use of `futures::channel::mpsc` with `SinkExt::feed`
- Question: futures-rs::channels implement Send trait HOT 1
- Non-send future produced by chaining `Stream` combinators HOT 1
- Behavior of any() / all() / try_any() / try_all() is not documented for empty stream
- Feature request: add `StreamExt::eq` like `Iterator::eq`
- Reusing `AbortRegistration`
- ConcurrentStream usage with tokio leads to ACCESS_VIOLATION HOT 3
- [Discussion] `Shared` seems to wake up the same waker that was polling it HOT 1
- Add `StreamExt::map_while`
- io: impl AsyncWrite for Empty
- Stream & Sink Error types could benefit from core::fmt::Debug bound HOT 1
- implement OwnedMappedMutexGuard
- `StreamExt::scan` lacks a non-Option version
- returning a future from a function with an `impl Trait` argument references that argument even if not used in the future, causing lifetime errors HOT 2
- `Lines::poll_next` panics if the reader returns an error after returning data
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 futures-rs.