mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
<!-- Please read the "Making a PR" section of [`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/CONTRIBUTING.md) before opening a Pull Request! * Keep your PR:s small and focused. * The PR title is what ends up in the changelog, so make it descriptive! * If applicable, add a screenshot or gif. * If it is a non-trivial addition, consider adding a demo for it to `egui_demo_lib`, or a new example. * Do NOT open PR:s from your `master` branch, as that makes it hard for maintainers to add commits to your PR. * Remember to run `cargo fmt` and `cargo cranky`. * Open the PR as a draft until you have self-reviewed it and run `./scripts/check.sh`. * When you have addressed a PR comment, mark it as resolved. Please be patient! I will review your PR, but my time is limited! --> I had to make a couple types not Copy because closures, but it should'nt be a massive deal. I tried my best to make the API change as non breaking as possible. Anywhere a PathStroke is used, you can just use a normal Stroke instead. As mentioned above, the bezier paths couldn't be copy anymore, but IMO that's a minor caveat. --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
50 lines
1.4 KiB
TOML
50 lines
1.4 KiB
TOML
[package]
|
|
name = "ecolor"
|
|
version.workspace = true
|
|
authors = [
|
|
"Emil Ernerfeldt <emil.ernerfeldt@gmail.com>",
|
|
"Andreas Reich <reichandreas@gmx.de>",
|
|
]
|
|
description = "Color structs and color conversion utilities"
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
homepage = "https://github.com/emilk/egui"
|
|
license.workspace = true
|
|
readme = "README.md"
|
|
repository = "https://github.com/emilk/egui"
|
|
categories = ["mathematics", "encoding"]
|
|
keywords = ["gui", "color", "conversion", "gamedev", "images"]
|
|
include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
|
|
[lib]
|
|
|
|
|
|
[features]
|
|
default = []
|
|
|
|
## Enable additional checks if debug assertions are enabled (debug builds).
|
|
extra_debug_asserts = []
|
|
## Always enable additional checks.
|
|
extra_asserts = []
|
|
|
|
[dependencies]
|
|
#! ### Optional dependencies
|
|
|
|
## [`bytemuck`](https://docs.rs/bytemuck) enables you to cast `ecolor` types to `&[u8]`.
|
|
bytemuck = { version = "1.7.2", optional = true, features = ["derive"] }
|
|
|
|
## [`cint`](https://docs.rs/cint) enables interoperability with other color libraries.
|
|
cint = { version = "0.3.1", optional = true }
|
|
|
|
## Enable the [`hex_color`] macro.
|
|
color-hex = { version = "0.2.0", optional = true }
|
|
|
|
## Enable this when generating docs.
|
|
document-features = { workspace = true, optional = true }
|
|
|
|
## Allow serialization using [`serde`](https://docs.rs/serde).
|
|
serde = { version = "1", optional = true, features = ["derive"] }
|