Skip to content

Commit

Permalink
Include futures as full dependency for documentation only
Browse files Browse the repository at this point in the history
Signed-off-by: onalante-msft <[email protected]>
  • Loading branch information
onalante-msft committed May 10, 2022
1 parent fedc2c4 commit 8a79c27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fmt:
rustfmt +nightly --edition 2021 $$(find . -type f -iname *.rs)

doc:
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --lib --workspace --features=derive,ws,oauth,jsonpatch,client,derive,runtime,admission,k8s-openapi/v1_23 --open
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --lib --workspace --features=__for_docs_only_do_not_use,derive,ws,oauth,jsonpatch,client,derive,runtime,admission,k8s-openapi/v1_23 --open

test:
cargo test --lib --all
Expand Down
5 changes: 5 additions & 0 deletions kube-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ features = ["k8s-openapi/v1_23"]
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
futures = { version = "0.3.17", optional = true }
futures-channel = { version = "0.3.17", features = ["sink"] }
futures-util = { version = "0.3.17", features = ["sink"] }
kube-client = { path = "../kube-client", version = "=0.71.0", default-features = false, features = ["jsonpatch", "client"] }
Expand Down Expand Up @@ -53,3 +54,7 @@ schemars = "0.8.6"
version = "0.14.0"
default-features = false
features = ["v1_23"]

[features]
# Switch to "dep:futures" if/when rust-version >= 1.60
__for_docs_only_do_not_use = ["futures"]

0 comments on commit 8a79c27

Please sign in to comment.