Update the documentation to reflect web support (#1183)
* Update the documentation to reflect web support Indicate which methods have platform-specific web behavior * cargo fmt
This commit is contained in:
parent
28a50817af
commit
8cea3e262b
8 changed files with 53 additions and 8 deletions
|
|
@ -7,6 +7,7 @@
|
|||
//! - `macos`
|
||||
//! - `unix`
|
||||
//! - `windows`
|
||||
//! - `web`
|
||||
//!
|
||||
//! And the following platform-specific module:
|
||||
//!
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
#![cfg(target_arch = "wasm32")]
|
||||
|
||||
//! The web target does not automatically insert the canvas element object into the web page, to
|
||||
//! allow end users to determine how the page should be laid out. Use the `WindowExtStdweb` or
|
||||
//! `WindowExtWebSys` traits (depending on your web backend) to retrieve the canvas from the
|
||||
//! Window.
|
||||
|
||||
#[cfg(feature = "stdweb")]
|
||||
use stdweb::web::html_element::CanvasElement;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue