Cargo Features

Sketchbook has no features set by default.

[dependencies]
sketchbook = { version = "0.0.2", features = ["aspect-update", "aspect-keyboard", "aspect-mouse", "aspect-draw", "ream-concurrent", "ream-parallel", "ream-single", "env-aspect-test", "env-minimal", "std", "alloc", "derive", "color", "serde", "libm", "document-features"] }
default

No features are enabled by default.

aspect-update

### Optional Components
#### Aspects

Aspect that periodically updates a sketch.

Affects aspects::update

aspect-keyboard

Aspect for keyboard input.

Affects aspects::keyboard

aspect-mouse

Aspect for mouse input.

Affects aspects::mouse

aspect-draw

Aspect for drawing onto the environment's page.

Affects aspects::draw

ream-concurrent = alloc

#### Reams

Ream that runs multiple sketches without threads.

ream-parallel = std

Ream that runs multiple sketches on independant threads.

ream-single

Ream that runs a single sketch.

env-aspect-test

#### Environments

Macro for generating environments to test aspects.

env-minimal

Minimal environment that implements no aspects.

Affects env::minimal

std ream-parallel? = alloc

### Optional Dependencies

Support for using the standard library.

Affects update::UpdateUsingInstant

alloc ream-concurrent? std?

Support for using allocation.

derive

Re-export macro_rules_attribute for better macro syntax.

Enables macro_rules_attribute ^0.1

color

Support for palette based colors.

Enables palette ^0.6

serde

Support for serde.

Enables serde, serializing of optional palette ^0.6

Features from optional dependencies

libm implicit feature

Enables libm

libm:

libm in pure Rust

document-features implicit feature

Enables document-features

document-features:

Extract documentation for the feature flags from comments in Cargo.toml