yewstack / docs

https://yew.rs
Creative Commons Zero v1.0 Universal
45 stars 46 forks source link

[doc] toml config make an error. #36

Closed WanderHuang closed 4 years ago

WanderHuang commented 4 years ago
[package]
name = "yew-app"
version = "0.1.0"
authors = ["Yew App Developer <name@example.com>"]
edition = "2018"

[dependencies]
yew = { version = "0.13.0", features = "std_web" }

yew = { version = "0.13.0", features = "std_web" } should be replace as yew = { version = "0.13.0", features = ["std_web"] }.

if use features = "std_web", I got error below in linux(deepin):

Caused by:
  invalid type: string "std_web", expected a sequence for key `dependencies.yew.features`

this will work instead

[package]
name = "yew-app"
version = "0.1.0"
authors = ["Yew App Developer <name@example.com>"]
edition = "2018"

[dependencies]
yew = { version = "0.13.0", features = ["std_web"] }
jstarry commented 4 years ago

Fixed thanks!