Skip to content
This repository has been archived by the owner on Jul 19, 2020. It is now read-only.

Add a feature gate for service #204

Merged
merged 11 commits into from
Dec 17, 2019
Prev Previous commit
Next Next commit
add todo to remove unit_state
  • Loading branch information
hgzimmerman committed Dec 17, 2019
commit 2d634cfadd812b6766a354a88b0de111f1a96fd1
12 changes: 7 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ repository = "https://github.com/yewstack/yew_router"
[features]
default = ["core", "unit_alias"]

core = ["router", "components"]
core = ["router", "components"] # Most everything

# TODO remove this
unit_alias = []

router = ["agent"]
components = ["agent" ]
agent = ["service"]
service = ["stdweb", "yew"]
router = ["agent"] # The Router component
components = ["agent" ] # The button and anchor
agent = ["service"] # The RouteAgent
service = ["stdweb", "yew"] # The RouteService


[dependencies]
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ pub mod components;
#[cfg(feature = "router")]
pub mod router;

/// TODO remove this
/// Contains aliases and functions for working with this library using a state of type `()`.
#[cfg(feature = "unit_alias")]
pub mod unit_state {
Expand Down