-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
move examples/ to demo/ #75
Conversation
487950f
to
c1aee6f
Compare
Those failures have anything to do with my changes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those failures don't look related.
cc @svartalf @dignifiedquire Looks like openssl builds are failing on i686 and arm platforms again. Any idea what's up?
@stjepang Docker images which are used by These changes are failing CI now because One possible solution to solve this issue is to stop compiling Yet, I'm personally not sure what are the benefits of whole this change, so it maybe worth just to leave everything as is. Also, I'm not a maintainer here, so it is just my two cents on a situation :) |
Two reasons:
|
@stjepang thank you for clarification! It seems that Regarding the CI failure. Since there is no OpenSSL in the
cargo test --lib --tests --benches
cargo check --bins |
I'm fine with
Cool! That doesn't seem too bad. |
@svartalf How would one run them if |
@svartalf are you able to do those CI changes, because I don't actually understand. |
I just found a better solution to this problem, which does not requires any CI modifications. So, here is a dependencies branch, which causes the compilation problem:
Fortunately to all of us, it is possible to enable diff --git a/demos/Cargo.toml b/demos/Cargo.toml
index c15e8e3..7560ca3 100644
--- a/demos/Cargo.toml
+++ b/demos/Cargo.toml
@@ -16,7 +16,7 @@ timerfd = "1.1.1"
[dependencies]
anyhow = "1.0.28"
async-h1 = "1.1.2"
-async-native-tls = "0.3.3"
+async-native-tls = { version = "0.3.3", features = ["vendored"] }
async-std = "1.5.0"
async-tungstenite = { version = "0.4.2", features = ["async-native-tls"] }
base64 = "0.12.0" |
That build failure happens because the That build failure happens because the examples/ demos/ are now checked in cross compile environments, but 2 of those failed. I just pushed a change that removes that (though that means one would have to navigate into demos/ to run them). |
Pull Request Test Coverage Report for Build 95835664
💛 - Coveralls |
Maybe move the source code for bins to demos/src/bin, then one would no longer need to annotate Cargo.toml each time they add a new one. |
Just a question?? why are you not just using examples as they are supposed to be used? Is it to keep dev-dependencies OUTSIDE of main Cargo.toml? |
I think it was to keep CI builds fast, but am not sure. |
@tshepang There was an issue with an example requiring the |
@Leo-LB would it not be enough to add |
@Leo-LB just checked Cargo book...
|
@tshepang We would need them to be used for examples but not tests, because tests are used for coverage, so it's not solving the issue. |
this is made obsolete by #188 |
Closes #72