immediate-mode/Cargo.toml
Gwen Lofman f37fe456cd
Create default test-utils feature
The feature enables a test_utils module.  The module contains the
code used to generate the SVG examples.  Separated the feature so
that doctests can still run without the `render-svg` feature enabled
and so that quick-xml is no longer necessary as a dev-dependency.

Allows me to also create functions to remove repeated code from
examples without litering the code base with code only used for
examples, such as the SOFT_RED color constants.
2022-10-17 22:37:05 -04:00

39 lines
940 B
TOML

[package]
name = "immediate-mode"
version = "0.0.1"
edition = "2021"
authors = ["Gwen Lofman <git@glfmn.io>"]
keywords = ["immediate mode", "gui", "graphics", "gamedev"]
categories = ["gui", "graphics"]
license = "MPL-2.0"
resolver = "2"
[dependencies]
rusttype = "0.8"
bytemuck = { version="1.7", features=["derive"] }
quick-xml = { version = "0.25", optional = true }
[dev-dependencies]
# Add dev dependencies to ./dev
#
# Adding them here will require compilation of heavy dependencies
# just for running simple tests on the core library
[features]
default = [ "test-utils" ]
render-svg = [ "quick-xml" ]
## Utilities for testing UI
test-utils = [ "render-svg" ]
[package.metadata.docs.rs]
# document all features
all-features = true
# defines the configuration attribute `docs_rs` to enable feature requirements
# See https://stackoverflow.com/questions/61417452
rustdoc-args = ["--cfg", "docs_rs"]
[workspace]
members = ["dev"]