Skip to content

Commit

Permalink
Remove serde from Brush and Image for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Nov 29, 2024
1 parent 88fc88c commit c212f6e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 19 deletions.
10 changes: 0 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ default = ["std"]
std = ["color/std", "kurbo/std", "raw_resource_handle/std"]
libm = ["color/libm", "kurbo/libm"]
mint = ["kurbo/mint"]
serde = ["color/serde", "smallvec/serde", "kurbo/serde", "dep:serde_bytes", "dep:serde"]
serde = ["color/serde", "smallvec/serde", "kurbo/serde", "dep:serde"]

[dependencies]
# NOTE: Make sure to keep this in sync with the version badge in README.md
Expand All @@ -48,12 +48,6 @@ optional = true
default-features = false
features = ["alloc", "derive"]

[dependencies.serde_bytes]
version = "0.11.15"
optional = true
default-features = false
features = ["alloc"]

[lints]
rust.unsafe_code = "forbid"

Expand Down
1 change: 0 additions & 1 deletion src/brush.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use color::{AlphaColor, ColorSpace, DynamicColor, OpaqueColor, Srgb};
///
/// See also [`BrushRef`] which can be used to avoid allocations.
#[derive(Clone, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum Brush {
/// Solid color brush.
Solid(Color),
Expand Down
1 change: 0 additions & 1 deletion src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ impl Format {

/// Owned shareable image resource.
#[derive(Clone, PartialEq, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Image {
/// Blob containing the image data.
pub data: Blob<u8>,
Expand Down

0 comments on commit c212f6e

Please sign in to comment.