document wgpu feature flags
This commit is contained in:
parent
fd064ff990
commit
5198f8e3e4
|
@ -25,6 +25,8 @@
|
||||||
#![deny(unused_results)]
|
#![deny(unused_results)]
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
#![forbid(rust_2018_idioms)]
|
#![forbid(rust_2018_idioms)]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
pub mod defaults;
|
pub mod defaults;
|
||||||
pub mod settings;
|
pub mod settings;
|
||||||
pub mod triangle;
|
pub mod triangle;
|
||||||
|
|
|
@ -37,6 +37,7 @@ pub use slider::Slider;
|
||||||
pub use text_input::TextInput;
|
pub use text_input::TextInput;
|
||||||
|
|
||||||
#[cfg(feature = "canvas")]
|
#[cfg(feature = "canvas")]
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "canvas")))]
|
||||||
pub mod canvas;
|
pub mod canvas;
|
||||||
|
|
||||||
#[cfg(feature = "canvas")]
|
#[cfg(feature = "canvas")]
|
||||||
|
|
|
@ -172,6 +172,7 @@ impl Frame {
|
||||||
///
|
///
|
||||||
/// [`Text`]: struct.Text.html
|
/// [`Text`]: struct.Text.html
|
||||||
/// [`Frame`]: struct.Frame.html
|
/// [`Frame`]: struct.Frame.html
|
||||||
|
/// [`Canvas`]: struct.Canvas.html
|
||||||
pub fn fill_text(&mut self, text: Text) {
|
pub fn fill_text(&mut self, text: Text) {
|
||||||
use std::f32;
|
use std::f32;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue