pin-project | A crate for safe and ergonomic pin-projection
kandi X-RAY | pin-project Summary
kandi X-RAY | pin-project Summary
A crate for safe and ergonomic pin-projection.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pin-project
pin-project Key Features
pin-project Examples and Code Snippets
Community Discussions
Trending Discussions on pin-project
QUESTION
I'm facing the error failed to run custom build command for openssl-sys v0.9.60
while trying to build my rust program. Here are the main.rs
and the Cargo.toml
files.
main.rs
...ANSWER
Answered 2021-Jan-03 at 21:11I have no experience with installing this myself but may be able to give some pointers.
First of all about your effort to install OpenSSL. After cloning the repository, you do not select any particular branch before configuring and making. This means that you are building the master
branch, which is an evolving version of OpenSSL 3.0.0. This is not a supported version according to the crate's documentation. In order to build a supported version of OpenSSL, you will have to switch to some 1.1.1 branch or tag. Alternatively, you can download the 1.1.1 version from OpenSSL's download page.
That said, it does not seem necessary to install OpenSSL from source. Under the section Automatic, the documentation explains that the crate can deal with all kinds of typical OpenSSL installations. It may be easier for you to follow that, if possible in your case. If so, then you should unset the OPENSSL_DIR
environment variable otherwise that will (continue to) override the crate's automatic mechanisms to find the OpenSSL installation.
If you still want to stick with the Manual configuration, then indeed you should use environment variables, and OPENSSL_DIR
seems a convenient one. However, it does not mean the same thing as the openssldir
parameter that you used in your configure command ./config --openssldir=/usr/local/ssl
. To get the details, check out the meaning of that configuration parameter. In fact, the crate's meaning of OPENSSL_DIR
corresponds to the --prefix
setting (which you did not configure).
The problem you are running into now is that your OPENSSL_DIR
variable points to your directory for OpenSSL configuration files, whereas the crate expects it to point to the top of the actual OpenSSL installation directory tree (which in your case seems to reside at /usr/local
).
QUESTION
I'm calling an async fn()
in Future::poll()
but the .await
statement and the code behind it is not executed at the time of execution.
ANSWER
Answered 2021-Jan-11 at 15:18Every time your Person
future is polled, you create a brand new fn1
future:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pin-project
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page