Skip to content

Commit

Permalink
client: Add docs.rs metadata to enable features
Browse files Browse the repository at this point in the history
This makes the documentation show feature-controlled functionality.
  • Loading branch information
joshtriplett committed Sep 7, 2024
1 parent 6fbc512 commit 185b8de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ readme = "../README.md"
keywords = ["trillium", "framework", "async"]
categories = ["web-programming", "web-programming::http-client"]

[package.metadata.docs.rs]
features = ["json", "websockets"]

[features]
websockets = ["dep:trillium-websockets", "dep:thiserror"]
json = ["dep:serde_json", "dep:serde", "dep:thiserror"]
Expand Down

0 comments on commit 185b8de

Please sign in to comment.