Skip to content
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

docs.rs fails to build documentation #2

Closed
heroin-moose opened this issue Jan 17, 2022 · 3 comments
Closed

docs.rs fails to build documentation #2

heroin-moose opened this issue Jan 17, 2022 · 3 comments

Comments

@heroin-moose
Copy link

[INFO] [stderr]    Compiling sqlx-rt v0.5.10
[INFO] [stderr]    Compiling dotenv v0.15.0
[INFO] [stderr]     Checking slab v0.4.5
[INFO] [stderr] error: one of the features ['runtime-actix-native-tls', 'runtime-async-std-native-tls', 'runtime-tokio-native-tls', 'runtime-actix-rustls', 'runtime-async-std-rustls', 'runtime-tokio-rustls'] must be enabled
[INFO] [stderr]   --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/sqlx-rt-0.5.10/src/lib.rs:9:1
[INFO] [stderr]    |
[INFO] [stderr] 9  | / compile_error!(
[INFO] [stderr] 10 | |     "one of the features ['runtime-actix-native-tls', 'runtime-async-std-native-tls', \
[INFO] [stderr] 11 | |      'runtime-tokio-native-tls', 'runtime-actix-rustls', 'runtime-async-std-rustls', \
[INFO] [stderr] 12 | |      'runtime-tokio-rustls'] must be enabled"
[INFO] [stderr] 13 | | );
[INFO] [stderr]    | |_^
[INFO] [stderr] 
[INFO] [stderr] error: could not compile `sqlx-rt` due to previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: build failed
@kurtbuilds
Copy link
Owner

Leaving this for my personal notes:

I think what this is missing is something like:

[package.metadata.docs.rs]
default-features = [...]

Based on these docs: https://docs.rs/about/builds

I'll try to set this up later today and see if it works.

@kurtbuilds
Copy link
Owner

cargo doc works locally now (specifically, cargo doc --features runtime-tokio-rustls,sqlite), and I believe docs.rs should as well, though it seems like it takes time for it to propagate.

I'll leave this ticket open until I can confirm docs.rs is now working.

@kurtbuilds
Copy link
Owner

It's working!

https://docs.rs/ormlite/latest/ormlite/

franklx pushed a commit to franklx/ormlite that referenced this issue Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants