Giter Site home page Giter Site logo

Comments (4)

alexcrichton avatar alexcrichton commented on June 12, 2024

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.

tekjar avatar tekjar commented on June 12, 2024

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.

alexcrichton avatar alexcrichton commented on June 12, 2024

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.

sfackler avatar sfackler commented on June 12, 2024

By soon I mean tonight, btw.

from futures-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.