-
Notifications
You must be signed in to change notification settings - Fork 19
/
Cargo.toml
50 lines (43 loc) · 1.67 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[package]
name = "rgb"
version = "0.8.39"
authors = ["Kornel Lesiński <kornel@geekhood.net>"]
include = ["src/**/*", "Cargo.toml", "README.md", "examples/*.rs", "LICENSE"]
description = "`struct RGB/RGBA/etc.` for sharing pixels between crates + convenience methods for color manipulation.\nAllows no-copy high-level interoperability. Also adds common convenience methods and implements standard Rust traits to make `RGB`/`RGBA` pixels and slices first-class Rust objects."
documentation = "https://docs.rs/rgb"
repository = "https://github.com/kornelski/rust-rgb"
homepage = "https://lib.rs/crates/rgb"
readme = "README.md"
keywords = ["rgb", "rgba", "bgra", "pixel", "color"]
license = "MIT"
categories = ["graphics", "rust-patterns", "multimedia::images"]
edition = "2021"
[features]
default = ["as-bytes"]
# safe as_bytes() casts require a marker trait for non-padded, non-pointery types.
as-bytes = ["bytemuck"]
argb = []
grb = []
# Enable `checked_add` and `checked_sub` methods on `RGB<u8>`
checked_fns = []
# support for the `defmt` crate
defmt-03 = ["dep:defmt"]
[badges]
travis-ci = { repository = "kornelski/rust-rgb" }
maintenance = { status = "actively-developed" }
[dependencies]
serde = { version = "1.0.130", optional = true, default-features = false, features = ["derive"] }
bytemuck = { version = "1.7.2", optional = true }
defmt = { version = "0.3", optional = true }
[dev-dependencies]
serde_json = "1.0.68"
[[example]]
name = "serde"
required-features = ["serde"]
[[example]]
name = "example"
required-features = ["as-bytes"]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
features = [ "argb", "serde", "as-bytes" ]
rustdoc-args = ["--generate-link-to-definition"]