From b8c5081aa908ea519d01e6c763cedc078269b2b1 Mon Sep 17 00:00:00 2001 From: Jonathan Schwender Date: Tue, 27 Aug 2024 14:52:30 +0800 Subject: [PATCH] Bump bitflags to v2.6 This matches the version servo requires. Changelog for 2.0: https://github.com/bitflags/bitflags/releases/tag/2.0.0 Affecting us: - less traits are autoderived. We manually add the derives we need. Signed-off-by: Jonathan Schwender --- Cargo.toml | 2 +- src/context.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 1ab02a8d..4228b42a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ sm-raw-window-handle-05 = ["dep:rwh_05"] sm-raw-window-handle-06 = ["dep:rwh_06"] [dependencies] -bitflags = "1.1" +bitflags = "2.6" euclid = "0.22" fnv = { version = "1.0", optional = true } lazy_static = "1" diff --git a/src/context.rs b/src/context.rs index ab8cba3a..5bdf0f06 100644 --- a/src/context.rs +++ b/src/context.rs @@ -32,6 +32,7 @@ bitflags! { /// https://www.khronos.org/registry/webgl/specs/latest/1.0/#WEBGLCONTEXTATTRIBUTES /// /// There are some extra `surfman`-specific flags as well. + #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct ContextAttributeFlags: u8 { /// Surfaces created for this context will have an alpha channel (RGBA or BGRA; i.e. 4 /// channels, 32 bits per pixel, 8 bits per channel). If this is not present, surfaces will