kurtbuilds / ormlite

An ORM in Rust for developers that love SQL.
https://crates.io/crates/ormlite
MIT License
216 stars 11 forks source link

docs.rs fails to build documentation #2

Closed heroin-moose closed 2 years ago

heroin-moose commented 2 years ago
[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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

It's working!

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