document wgpu feature flags

This commit is contained in:
Rob Ede 2020-04-04 02:14:02 +01:00
parent fd064ff990
commit 5198f8e3e4
No known key found for this signature in database
GPG Key ID: C2A3B36E841A91E6
3 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,8 @@
#![deny(unused_results)]
#![forbid(unsafe_code)]
#![forbid(rust_2018_idioms)]
#![cfg_attr(docsrs, feature(doc_cfg))]
pub mod defaults;
pub mod settings;
pub mod triangle;

View File

@ -37,6 +37,7 @@ pub use slider::Slider;
pub use text_input::TextInput;
#[cfg(feature = "canvas")]
#[cfg_attr(docsrs, doc(cfg(feature = "canvas")))]
pub mod canvas;
#[cfg(feature = "canvas")]

View File

@ -172,6 +172,7 @@ impl Frame {
///
/// [`Text`]: struct.Text.html
/// [`Frame`]: struct.Frame.html
/// [`Canvas`]: struct.Canvas.html
pub fn fill_text(&mut self, text: Text) {
use std::f32;