Skip to content

Commit

Permalink
Remove dev-dependency cty
Browse files Browse the repository at this point in the history
This can be replaced with using `std::ffi` instead. This was added
in Rust 1.64, but doesn't impact our MSRV as the examples use winit
and glam, which have MSRVS of 1.65 and 1.68.2 respectively for the
versions used at the time of this commit.
  • Loading branch information
waywardmonkeys authored and kvark committed Sep 26, 2024
1 parent 9bbe74b commit 02b4375
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ version = "0.2.4"

[dev-dependencies]
cocoa = "0.25.0"
cty = "0.2.1"
winit = "0.29"
sema = "0.1.4"
png = "0.17"
Expand Down
4 changes: 2 additions & 2 deletions examples/circle/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ use std::mem;
// based on C++
#[repr(C)]
#[derive(Debug)]
pub struct position(cty::c_float, cty::c_float);
pub struct position(std::ffi::c_float, std::ffi::c_float);
#[repr(C)]
#[derive(Debug)]
pub struct color(cty::c_float, cty::c_float, cty::c_float);
pub struct color(std::ffi::c_float, std::ffi::c_float, std::ffi::c_float);
#[repr(C)]
#[derive(Debug)]
pub struct AAPLVertex {
Expand Down

0 comments on commit 02b4375

Please sign in to comment.