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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
|
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2021"
rust-version = "1.63"
name = "rgb"
version = "0.8.50"
authors = [
"Kornel LesiĆski <kornel@geekhood.net>",
"James Forster <james.forsterer@gmail.com>",
]
build = false
include = [
"src/**/*",
"Cargo.toml",
"README.md",
"examples/*.rs",
"LICENSE",
]
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
`struct RGB/RGBA/etc.` for sharing pixels between crates + convenience methods for color manipulation.
Allows 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."""
homepage = "https://lib.rs/crates/rgb"
documentation = "https://docs.rs/rgb"
readme = "README.md"
keywords = [
"rgb",
"rgba",
"bgra",
"pixel",
"color",
]
categories = [
"graphics",
"rust-patterns",
"multimedia::images",
]
license = "MIT"
repository = "https://github.com/kornelski/rust-rgb"
[package.metadata.docs.rs]
features = [
"as-bytes",
"serde",
]
rustdoc-args = ["--generate-link-to-definition"]
targets = ["x86_64-unknown-linux-gnu"]
[lib]
name = "rgb"
path = "src/lib.rs"
[[example]]
name = "example"
path = "examples/example.rs"
required-features = ["as-bytes"]
[[example]]
name = "serde"
path = "examples/serde.rs"
required-features = ["serde"]
[dependencies.bytemuck]
version = "1.16"
optional = true
[dependencies.defmt]
version = "0.3.8"
optional = true
[dependencies.serde]
version = "1.0.200"
features = ["derive"]
optional = true
default-features = false
[dev-dependencies.serde_json]
version = "1.0.100"
[features]
argb = []
as-bytes = ["bytemuck"]
bytemuck = ["dep:bytemuck"]
checked_fns = []
default = [
"as-bytes",
"argb",
"grb",
]
defmt-03 = ["dep:defmt"]
grb = []
serde = ["dep:serde"]
unstable-experimental = []
[badges.maintenance]
status = "actively-developed"
|