Merge pull request #610 from hecrj/improvement/update-dependencies
Update dependencies
This commit is contained in:
commit
73811c394a
12 changed files with 45 additions and 47 deletions
|
|
@ -12,11 +12,14 @@ font-icons = []
|
|||
opengl = []
|
||||
|
||||
[dependencies]
|
||||
bytemuck = "1.2"
|
||||
glam = "0.9"
|
||||
glam = "0.10"
|
||||
raw-window-handle = "0.3"
|
||||
thiserror = "1.0"
|
||||
|
||||
[dependencies.bytemuck]
|
||||
version = "1.4"
|
||||
features = ["derive"]
|
||||
|
||||
[dependencies.iced_native]
|
||||
version = "0.2"
|
||||
path = "../native"
|
||||
|
|
@ -26,11 +29,11 @@ version = "0.1"
|
|||
path = "../style"
|
||||
|
||||
[dependencies.lyon]
|
||||
version = "0.15"
|
||||
version = "0.16"
|
||||
optional = true
|
||||
|
||||
[dependencies.font-kit]
|
||||
version = "0.6"
|
||||
version = "0.8"
|
||||
optional = true
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
//! Draw geometry using meshes of triangles.
|
||||
use bytemuck::{Pod, Zeroable};
|
||||
|
||||
/// A set of [`Vertex2D`] and indices representing a list of triangles.
|
||||
///
|
||||
|
|
@ -16,7 +17,7 @@ pub struct Mesh2D {
|
|||
}
|
||||
|
||||
/// A two-dimensional vertex with some color in __linear__ RGBA.
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
#[derive(Copy, Clone, Debug, Zeroable, Pod)]
|
||||
#[repr(C)]
|
||||
pub struct Vertex2D {
|
||||
/// The vertex position
|
||||
|
|
@ -24,9 +25,3 @@ pub struct Vertex2D {
|
|||
/// The vertex color in __linear__ RGBA.
|
||||
pub color: [f32; 4],
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
unsafe impl bytemuck::Zeroable for Vertex2D {}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
unsafe impl bytemuck::Pod for Vertex2D {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue