Skip to content

Commit 55861ac

Browse files
committed
fix(docs.rs): added proper metadata config for docs.rs
This should fix build failures when the next version is released.
1 parent 1784909 commit 55861ac

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

packages/perseus-actix-web/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ futures = "0.3"
2222
[features]
2323
# Enables the default server configuration, which provides a convenience function if you're not adding any extra routes
2424
dflt-server = []
25+
26+
[package.metadata.docs-rs]
27+
rustc-args = ["--cfg=engine"]
28+
rustdoc-args = ["--cfg=engine"]

packages/perseus-axum/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ tower-http = { version = "0.3", features = [ "fs" ] }
2121
[features]
2222
# Enables the default server configuration, which provides a convenience function if you're not adding any extra routes
2323
dflt-server = []
24+
25+
[package.metadata.docs-rs]
26+
rustc-args = ["--cfg=engine"]
27+
rustdoc-args = ["--cfg=engine"]

packages/perseus-warp/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ warp = { package = "warp-fix-171", version = "0.3" } # Temporary until Warp #171
2020
[features]
2121
# Enables the default server configuration, which provides a convenience function if you're not adding any extra routes
2222
dflt-server = []
23+
24+
[package.metadata.docs-rs]
25+
rustc-args = ["--cfg=engine"]
26+
rustdoc-args = ["--cfg=engine"]

packages/perseus/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,7 @@ live-reload = [ "js-sys", "web-sys/WebSocket", "web-sys/MessageEvent", "web-sys/
8888
hsr = [ "live-reload", "idb-freezing" ]
8989
# Enables reactive versions of common Rust collections, like `Vec<T>` and `HashMap<K, V>`. (Note that `RxResult` is always present, as it's needed for suspended state.)
9090
rx-collections = []
91+
92+
[package.metadata.docs-rs]
93+
rustc-args = ["--cfg=engine"]
94+
rustdoc-args = ["--cfg=engine"]

0 commit comments

Comments
 (0)