Skip to content

Commit

Permalink
fix(docs): made documentation work fully for #[cfg(client)] items
Browse files Browse the repository at this point in the history
Also discovered a really weird bug in `rustdoc`...
  • Loading branch information
arctic-hen7 committed Jan 11, 2023
1 parent bfe34c5 commit f22f05d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/perseus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ urlencoding = "2.1"
chrono = "0.4"
minify-html-onepass = "0.10.1"

[target.'cfg(client)'.dependencies]
# These dependencies will also be available in documentation
[target.'cfg(any(client, clientdoc))'.dependencies]
rexie = { version = "0.2", optional = true }
js-sys = { version = "0.3", optional = true }
# Note that this is not needed in production, but that can't be specified, so it will just be compiled away to nothing
Expand Down

0 comments on commit f22f05d

Please sign in to comment.