From 5e952bbdc9096334d459763c9c1419698e6f3b55 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Sat, 23 Jan 2021 21:41:31 +0800 Subject: [PATCH] misc fixes --- docs/concepts/services/fetch.md | 9 +++------ docs/more/debugging.md | 5 ++--- examples/boids/README.md | 2 +- examples/crm/README.md | 2 +- examples/router/README.md | 2 +- examples/timer/README.md | 6 +++--- examples/todomvc/README.md | 2 +- packages/yew/Makefile.toml | 2 +- 8 files changed, 13 insertions(+), 17 deletions(-) diff --git a/docs/concepts/services/fetch.md b/docs/concepts/services/fetch.md index 548d09fb033..3ad1136b18a 100644 --- a/docs/concepts/services/fetch.md +++ b/docs/concepts/services/fetch.md @@ -94,11 +94,8 @@ An illustrated example of how to fetch data from an API giving information about // requires the serde and anyhow crates use serde::Deserialize; -use yew::{ - format::{Json, Nothing}, - prelude::*, - services::fetch::{FetchService, FetchTask, Request, Response}, -}; +use yew::{format::{Json, Nothing}, prelude::*}; +use yew_services::fetch::{FetchService, FetchTask, Request, Response}; #[derive(Deserialize, Debug, Clone)] pub struct ISSPosition { @@ -241,7 +238,7 @@ The Rust Wasm Book also contains [useful debugging tips](https://rustwasm.github for Wasm applications. ## Further reading -* [The API documentation](https://docs.rs/yew/0.14.3/yew/services/fetch/index.html) +* [The API documentation](https://docs.rs/yew-services/latest/yew_services/fetch/index.html) * The [dashboard](https://github.com/yewstack/yew/tree/master/examples/dashboard) and [npm_and_rest](https://github.com/yewstack/yew/tree/master/examples/web_sys/npm_and_rest) examples. * [The Rust Wasm Book on debugging Wasm applications](https://rustwasm.github.io/book/reference/debugging.html) diff --git a/docs/more/debugging.md b/docs/more/debugging.md index 5a2709fb892..045be34e27d 100644 --- a/docs/more/debugging.md +++ b/docs/more/debugging.md @@ -32,10 +32,9 @@ fn main() { log::info!("Update: {:?}", msg); ``` -### [`ConsoleService`](https://docs.rs/yew/latest/yew/services/console/struct.ConsoleService.html) +### [`ConsoleService`](https://docs.rs/yew-services/latest/yew_services/struct.ConsoleService.html) -This service is included within Yew and is available when the "services" feature is enabled -(the "services" feature is enabled by default): +This service is included within the [`yew-services`](https://crates.io/crates/yew-services) crate: ```rust // usage diff --git a/examples/boids/README.md b/examples/boids/README.md index 992e274a631..08a54838e7f 100644 --- a/examples/boids/README.md +++ b/examples/boids/README.md @@ -30,4 +30,4 @@ The example uses [`IntervalService`] to drive the game loop. - Resize the boids when "Spacing" is changed. The setting should then also be renamed to something like "Size". -[`intervalservice`]: https://docs.rs/yew/latest/yew/services/struct.IntervalService.html +[`intervalservice`]: https://docs.rs/yew-services/latest/yew_services/struct.IntervalService.html diff --git a/examples/crm/README.md b/examples/crm/README.md index b628490bee2..b669166447d 100644 --- a/examples/crm/README.md +++ b/examples/crm/README.md @@ -14,7 +14,7 @@ For a much more sophisticated approach check out [`yew-router`](https://yew.rs/d One major flaw with the implementation used by this example is that the scenes aren't tied to the URL. Reloading the page always brings the user back to the initial scene. -The example also uses the [`StorageService`](https://docs.rs/yew/latest/yew/services/struct.StorageService.html) +The example also uses the [`StorageService`](https://docs.rs/yew-services/latest/yew_services/struct.StorageService.html) to persist the clients across sessions. ## Improvements diff --git a/examples/router/README.md b/examples/router/README.md index 83da7f5b590..5dc1db091c6 100644 --- a/examples/router/README.md +++ b/examples/router/README.md @@ -44,5 +44,5 @@ Take a look at [`PublicUrlSwitch`](src/switch.rs) for the implementation. - Home (`/`) should include links to the post list and the author introduction - Detect sub-path from `--public-url` value passed to Trunk. See: thedodd/trunk#51 -[`intervalservice`]: https://docs.rs/yew/latest/yew/services/struct.IntervalService.html +[`intervalservice`]: https://docs.rs/yew-services/latest/yew_services/struct.IntervalService.html [`yew-router`]: https://docs.rs/yew-router/latest/yew_router/ diff --git a/examples/timer/README.md b/examples/timer/README.md index f4d230ef97e..5eed9ca0cc4 100644 --- a/examples/timer/README.md +++ b/examples/timer/README.md @@ -13,6 +13,6 @@ but also makes use of some more advanced [`ConsoleService`] features. - Apply the concept to something more fun than just a dry technical demonstration -[`timeoutservice`]: https://docs.rs/yew/latest/yew/services/struct.TimeoutService.html -[`intervalservice`]: https://docs.rs/yew/latest/yew/services/struct.IntervalService.html -[`consoleservice`]: https://docs.rs/yew/latest/yew/services/struct.ConsoleService.html +[`timeoutservice`]: https://docs.rs/yew-services/latest/yew_services/struct.TimeoutService.html +[`intervalservice`]: https://docs.rs/yew-services/latest/yew_services/struct.IntervalService.html +[`consoleservice`]: https://docs.rs/yew-services/latest/yew_services/struct.ConsoleService.html diff --git a/examples/todomvc/README.md b/examples/todomvc/README.md index 9cc23beec75..fea25f68a5c 100644 --- a/examples/todomvc/README.md +++ b/examples/todomvc/README.md @@ -17,5 +17,5 @@ including: all entries, entered text and chosen filter. - Use `yew-router` for the hash based routing - Clean up the code -[`storageservice`]: https://docs.rs/yew/latest/yew/services/struct.StorageService.html +[`storageservice`]: https://docs.rs/yew-services/latest/yew_services/struct.StorageService.html [`refs`]: https://yew.rs/docs/en/concepts/components/refs/ diff --git a/packages/yew/Makefile.toml b/packages/yew/Makefile.toml index b25678662a8..d67aa71e714 100644 --- a/packages/yew/Makefile.toml +++ b/packages/yew/Makefile.toml @@ -31,7 +31,7 @@ args = [ "test", "--doc", "--features", - "doc_test,wasm_test,yaml,msgpack,cbor,toml,std_web,agent,services", + "doc_test,wasm_test,yaml,msgpack,cbor,toml,std_web,agent", "--no-default-features", ]