Skip to content

Commit

Permalink
Bump bitflags to v2.6
Browse files Browse the repository at this point in the history
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 <jonathan.schwender@huawei.com>
  • Loading branch information
jschwe committed Aug 27, 2024
1 parent 4a3cd70 commit b8c5081
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8c5081

Please sign in to comment.