Rust 1.60.0 + refactor cargo features (#1467)
* Update to rust 1.60.0 * Rename the feature `convert_bytemuck` to `bytemuck` * Rename the feature `serialize` to `serde`. * Make use of the "weak dependency" cargo feature * Set rust-version = "1.60" for all crates * egui_glow: clipboard, links, persistence & winit are now opt-in features
This commit is contained in:
+4
-4
@@ -4,7 +4,7 @@ version = "0.17.0"
|
||||
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
|
||||
description = "An easy-to-use immediate mode GUI that runs on both web and native"
|
||||
edition = "2021"
|
||||
rust-version = "1.56"
|
||||
rust-version = "1.60"
|
||||
homepage = "https://github.com/emilk/egui"
|
||||
license = "MIT OR Apache-2.0"
|
||||
readme = "../README.md"
|
||||
@@ -26,7 +26,7 @@ default = ["default_fonts"]
|
||||
cint = ["epaint/cint"]
|
||||
|
||||
# implement bytemuck on most types.
|
||||
convert_bytemuck = ["epaint/convert_bytemuck"]
|
||||
bytemuck = ["epaint/bytemuck"]
|
||||
|
||||
# If set, egui will use `include_bytes!` to bundle some fonts.
|
||||
# If you plan on specifying your own fonts you may disable this feature.
|
||||
@@ -41,10 +41,10 @@ extra_asserts = ["epaint/extra_asserts"]
|
||||
mint = ["epaint/mint"]
|
||||
|
||||
# enable persistence of memory (window positions etc).
|
||||
persistence = ["serde", "epaint/serialize", "ron"]
|
||||
persistence = ["serde", "epaint/serde", "ron"]
|
||||
|
||||
# implement serde on most types.
|
||||
serialize = ["serde", "epaint/serialize"]
|
||||
serde = ["dep:serde", "epaint/serde"]
|
||||
|
||||
|
||||
[dependencies]
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
//! Try the live web demo: <https://www.egui.rs/#demo>. Read more about egui at <https://github.com/emilk/egui>.
|
||||
//!
|
||||
//! `egui` is in heavy development, with each new version having breaking changes.
|
||||
//! You need to have rust 1.56.0 or later to use `egui`.
|
||||
//! You need to have rust 1.60.0 or later to use `egui`.
|
||||
//!
|
||||
//! To quickly get started with egui, you can take a look at [`eframe_template`](https://github.com/emilk/eframe_template)
|
||||
//! which uses [`eframe`](https://docs.rs/eframe).
|
||||
|
||||
Reference in New Issue
Block a user